Skip to content

Instantly share code, notes, and snippets.

@luojia65
Created April 15, 2025 07:41
Show Gist options
  • Select an option

  • Save luojia65/e0e14c6bdd775954aef76204d7549ad0 to your computer and use it in GitHub Desktop.

Select an option

Save luojia65/e0e14c6bdd775954aef76204d7549ad0 to your computer and use it in GitHub Desktop.
Error
[RustSBI] INFO  - Hello RustSBI!
[RustSBI] INFO  - RustSBI version 0.4.0
[RustSBI] INFO  - .______ __ __ _______.___________. _______..______ __
[RustSBI] INFO  - | _ \ | | | | / | | / || _ \ | |
[RustSBI] INFO  - | |_) | | | | | | (----`---| |----`| (----`| |_) || |
[RustSBI] INFO  - | / | | | | \ \ | | \ \ | _ < | |
[RustSBI] INFO  - | |\ \----.| `--' |.----) | | | .----) | | |_) || |
[RustSBI] INFO  - | _| `._____| \______/ |_______/ |__| |_______/ |______/ |__|
[RustSBI] INFO  - Initializing RustSBI machine-mode environment.
[RustSBI] INFO  - Platform Name : riscv-virtio,qemu
[RustSBI] INFO  - Platform HART Count : 1
[RustSBI] INFO  - Enabled HARTs : [0]
[RustSBI] INFO  - Platform IPI Extension : SiFiveClint (Base Address: 0x2000000)
[RustSBI] INFO  - Platform Console Extension : Uart16550U8 (Base Address: 0x10000000)
[RustSBI] INFO  - Platform Reset Extension : Available (Base Address: 0x100000)
[RustSBI] INFO  - Platform HSM Extension : Available
[RustSBI] INFO  - Platform RFence Extension : Available
[RustSBI] INFO  - Platform PMU Extension : Available
[RustSBI] INFO  - Memory range : 0x80000000 - 0x88000000
[RustSBI] INFO  - Platform Status : Platform initialization complete and ready.
[RustSBI] INFO  - PMP Configuration
[RustSBI] INFO  - PMP Range Permission Address
[RustSBI] INFO  - PMP 0: OFF NONE 0x00000000
[RustSBI] INFO  - PMP 1-2: TOR RWX/RWX 0x80000000 - 0x80000000
[RustSBI] INFO  - PMP 3-5: TOR NONE/NONE 0x8001a000 - 0x80026000 - 0x80053000
[RustSBI] INFO  - PMP 6: TOR RWX 0x88000000
[RustSBI] INFO  - PMP 7: TOR RWX 0xffffffffffffffff
[RustSBI] INFO  - Boot HART ID : 0
[RustSBI] INFO  - Boot HART Privileged Version: : Version1_12
[RustSBI] INFO  - Boot HART MHPM Mask: : 0x07ffff
[RustSBI] INFO  - Redirecting hart 0 to 0x00000080200000 in Supervisor mode.
[ 0.000000] Linux version 6.12.9 (rustsbi@rustsbi) (riscv64-buildroot-linux-gnu-gcc.br_real (Buildroot -ge38d90b77c) 13.3.0, GNU ld (GNU Binutils) 2.43.1) #1 SMP Tue Apr 15 15:29:05 CST 2025
[ 0.000000] random: crng init done
[ 0.000000] Machine model: riscv-virtio,qemu
[ 0.000000] SBI specification v2.0 detected
[ 0.000000] SBI implementation ID=0x4 Version=0x400
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI SRST extension detected
[ 0.000000] SBI DBCN extension detected
[ 0.000000] efi: UEFI not found.
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080000000-0x0000000087ffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x0000000087ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000087ffffff]
[ 0.000000] SBI HSM extension detected
[ 0.000000] riscv: base ISA extensions acdfhim
[ 0.000000] riscv: ELF capabilities acdfim
[ 0.000000] percpu: Embedded 22 pages/cpu s49576 r8192 d32344 u90112
[ 0.000000] Kernel command line: rootwait root=/dev/vda ro
[ 0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32768
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 0MB
[ 0.000000] software IO TLB: area num 1.
[ 0.000000] software IO TLB: mapped [mem 0x0000000087f67000-0x0000000087fa7000] (0MB)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] fixmap : 0xff1bfffffea00000 - 0xff1bffffff000000 (6144 kB)
[ 0.000000] pci io : 0xff1bffffff000000 - 0xff1c000000000000 ( 16 MB)
[ 0.000000] vmemmap : 0xff1c000000000000 - 0xff20000000000000 (1024 TB)
[ 0.000000] vmalloc : 0xff20000000000000 - 0xff60000000000000 (16384 TB)
[ 0.000000] modules : 0xffffffff01595000 - 0xffffffff80000000 (2026 MB)
[ 0.000000] lowmem : 0xff60000000000000 - 0xff60000008000000 ( 128 MB)
[ 0.000000] kernel : 0xffffffff80000000 - 0xffffffffffffffff (2047 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU debug extended QS entry/exit.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] riscv-intc: 64 local interrupts mapped
[ 0.000000] riscv: providing IPIs using SBI IPI extension
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[ 0.000120] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[ 0.000297] riscv-timer: Timer interrupt in S-mode is available via sstc extension
[ 0.011004] Console: colour dummy device 80x25
[ 0.011517] printk: legacy console [tty0] enabled
[ 0.018174] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
[ 0.018455] pid_max: default: 32768 minimum: 301
[ 0.020793] LSM: initializing lsm=capability
[ 0.025675] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.025803] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.077628] riscv: ELF compat mode supported
[ 0.077990] ASID allocator using 16 bits (65536 entries)
[ 0.080024] rcu: Hierarchical SRCU implementation.
[ 0.080299] rcu: Max phase no-delay instances is 1000.
[ 0.084257] EFI services will not be available.
[ 0.088314] smp: Bringing up secondary CPUs ...
[ 0.090017] smp: Brought up 1 node, 1 CPU
[ 0.094888] Memory: 87952K/131072K available (10062K kernel code, 4982K rwdata, 4096K rodata, 2282K init, 495K bss, 41580K reserved, 0K cma-reserved)
[ 0.106068] devtmpfs: initialized
[ 0.121499] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.121814] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.125844] pinctrl core: initialized pinctrl subsystem
[ 0.132369] DMI not present or invalid.
[ 0.135198] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.147202] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.147626] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.148044] audit: initializing netlink subsys (disabled)
[ 0.154014] thermal_sys: Registered thermal governor 'step_wise'
[ 0.155132] audit: type=2000 audit(0.132:1): state=initialized audit_enabled=0 res=1
[ 0.156013] cpuidle: using governor menu
[ 0.183263] cpu0: Ratio of byte access time to unaligned word access is 7.09, unaligned accesses are fast
[ 0.210083] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.210188] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.216861] ACPI: Interpreter disabled.
[ 0.217827] iommu: Default domain type: Translated
[ 0.217907] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.221009] SCSI subsystem initialized
[ 0.223636] usbcore: registered new interface driver usbfs
[ 0.224182] usbcore: registered new interface driver hub
[ 0.224405] usbcore: registered new device driver usb
[ 0.227930] Advanced Linux Sound Architecture Driver Initialized.
[ 0.244919] vgaarb: loaded
[ 0.250904] clocksource: Switched to clocksource riscv_clocksource
[ 0.255318] pnp: PnP ACPI: disabled
[ 0.287312] NET: Registered PF_INET protocol family
[ 0.288621] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.296107] tcp_listen_portaddr_hash hash table entries: 128 (order: 0, 4096 bytes, linear)
[ 0.296282] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.296415] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.296618] TCP bind hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.296921] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.298221] UDP hash table entries: 256 (order: 2, 24576 bytes, linear)
[ 0.298587] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes, linear)
[ 0.300254] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.304410] RPC: Registered named UNIX socket transport module.
[ 0.304519] RPC: Registered udp transport module.
[ 0.304557] RPC: Registered tcp transport module.
[ 0.304591] RPC: Registered tcp-with-tls transport module.
[ 0.304624] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.304881] PCI: CLS 0 bytes, default 64
[ 0.316443] workingset: timestamp_bits=46 max_order=15 bucket_order=0
[ 0.323520] NFS: Registering the id_resolver key type
[ 0.324970] Key type id_resolver registered
[ 0.325043] Key type id_legacy registered
[ 0.325686] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.325831] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.326935] 9p: Installing v9fs 9p2000 file system support
[ 0.329213] NET: Registered PF_ALG protocol family
[ 0.330046] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.330929] io scheduler mq-deadline registered
[ 0.331102] io scheduler kyber registered
[ 0.331598] io scheduler bfq registered
[ 0.336741] riscv-plic: plic@c000000: mapped 95 interrupts with 1 handlers for 2 contexts.
[ 0.341962] pci-host-generic 30000000.pci: host bridge /soc/pci@30000000 ranges:
[ 0.342996] pci-host-generic 30000000.pci: IO 0x0003000000..0x000300ffff -> 0x0000000000
[ 0.343598] pci-host-generic 30000000.pci: MEM 0x0040000000..0x007fffffff -> 0x0040000000
[ 0.343716] pci-host-generic 30000000.pci: MEM 0x0400000000..0x07ffffffff -> 0x0400000000
[ 0.344466] pci-host-generic 30000000.pci: Memory resource size exceeds max for 32 bits
[ 0.345055] pci-host-generic 30000000.pci: ECAM at [mem 0x30000000-0x3fffffff] for [bus 00-ff]
[ 0.347171] pci-host-generic 30000000.pci: PCI host bridge to bus 0000:00
[ 0.347632] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.347843] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.347942] pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff]
[ 0.347981] pci_bus 0000:00: root bus resource [mem 0x400000000-0x7ffffffff]
[ 0.350116] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000 conventional PCI endpoint
[ 0.355177] pci 0000:00:01.0: [1af4:1001] type 00 class 0x010000 conventional PCI endpoint
[ 0.355495] pci 0000:00:01.0: BAR 0 [io 0x0000-0x007f]
[ 0.355590] pci 0000:00:01.0: BAR 1 [mem 0x00000000-0x00000fff]
[ 0.355707] pci 0000:00:01.0: BAR 4 [mem 0x00000000-0x00003fff 64bit pref]
[ 0.358585] pci 0000:00:01.0: BAR 4 [mem 0x400000000-0x400003fff 64bit pref]: assigned
[ 0.358981] pci 0000:00:01.0: BAR 1 [mem 0x40000000-0x40000fff]: assigned
[ 0.359061] pci 0000:00:01.0: BAR 0 [io 0x0080-0x00ff]: assigned
[ 0.359442] pci_bus 0000:00: resource 4 [io 0x0000-0xffff]
[ 0.359512] pci_bus 0000:00: resource 5 [mem 0x40000000-0x7fffffff]
[ 0.359552] pci_bus 0000:00: resource 6 [mem 0x400000000-0x7ffffffff]
[ 0.367131] SBI CPPC extension NOT detected!!
[ 0.379468] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003)
[ 0.504224] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.525857] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 13, base_baud = 230400) is a 16550A
[ 0.528068] printk: legacy console [ttyS0] enabled
[ 0.587662] loop: module loaded
[ 0.589268] virtio_blk virtio1: 1/0/0 default/read/poll queues
[ 0.595055] virtio_blk virtio1: [vda] 122880 512-byte logical blocks (62.9 MB/60.0 MiB)
[ 0.632205] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.632504] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.635925] usbcore: registered new interface driver uas
[ 0.636357] usbcore: registered new interface driver usb-storage
[ 0.638050] mousedev: PS/2 mouse device common for all mice
[ 0.642395] goldfish_rtc 101000.rtc: registered as rtc0
[ 0.646328] goldfish_rtc 101000.rtc: setting system clock to 2025-04-15T07:39:02 UTC (1744702742)
[ 0.653113] sdhci: Secure Digital Host Controller Interface driver
[ 0.653646] sdhci: Copyright(c) Pierre Ossman
[ 0.654045] Synopsys Designware Multimedia Card Interface Driver
[ 0.654826] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.656104] usbcore: registered new interface driver usbhid
[ 0.656354] usbhid: USB HID core driver
[ 0.657560] riscv-pmu-sbi: SBI PMU extension is available
[ 0.659510] riscv-pmu-sbi: 16 firmware and 19 hardware counters
[ 0.659894] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[ 0.671326] NET: Registered PF_INET6 protocol family
[ 0.681241] Segment Routing with IPv6
[ 0.682013] In-situ OAM (IOAM) with IPv6
[ 0.682710] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.686717] NET: Registered PF_PACKET protocol family
[ 0.689079] 9pnet: Installing 9P2000 support
[ 0.689836] Key type dns_resolver registered
[ 0.740351] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers
[ 0.753436] clk: Disabling unused clocks
[ 0.754310] PM: genpd: Disabling unused power domains
[ 0.754795] ALSA device list:
[ 0.755107] No soundcards found.
[ 0.784632] EXT4-fs (vda): mounting ext2 file system using the ext4 subsystem
[ 0.800597] EXT4-fs (vda): mounted filesystem 18750d28-8d18-4251-9ce3-523f34563b54 ro without journal. Quota mode: disabled.
[ 0.801562] VFS: Mounted root (ext2 filesystem) readonly on device 254:0.
[ 0.805790] devtmpfs: mounted
[ 0.860037] Freeing unused kernel image (initmem) memory: 2280K
[ 0.860970] Run /sbin/init as init process
[ 1.198135] EXT4-fs (vda): warning: mounting unchecked fs, running e2fsck is recommended
[ 1.202988] EXT4-fs (vda): re-mounted 18750d28-8d18-4251-9ce3-523f34563b54 r/w. Quota mode: disabled.
[ 1.404155] EXT4-fs error (device vda): mb_free_blocks:1945: group 4, inode 7681: block 33251:freeing already freed block (bit 482); block bitmap corrupt.
[ 1.407170] EXT4-fs error (device vda): ext4_free_inode:354: comm seedrng: bit already cleared for inode 7681
Seeding 256 bits without crediting
Saving 256 bits of creditable seed for next boot
[ 1.428952] EXT4-fs error (device vda): __ext4_new_inode:1276: comm seedrng: failed to insert inode 5761: doubly allocated?
seedrng: can't open 'seed.no-credit': Input/output error
Starting syslogd: OK
Starting klogd: OK
Running sysctl: [ 1.611070] Oops - store (or AMO) access fault [#1]
[ 1.611488] Modules linked in:
[ 1.611870] CPU: 0 UID: 0 PID: 70 Comm: xargs Not tainted 6.12.9 #1
[ 1.612006] Hardware name: riscv-virtio,qemu (DT)
[ 1.612128] epc : __memcpy+0x60/0xf8
[ 1.612699] ra : do_wp_page+0x432/0xf32
[ 1.612782] epc : ffffffff809bd9e4 ra : ffffffff8018624c sp : ff200000001ebc90
[ 1.612808] gp : ffffffff815168e0 tp : ff60000002344b00 t0 : 0000000000000000
[ 1.612827] t1 : 0000000000000000 t2 : 0000000000000000 s0 : ff200000001ebd40
[ 1.612846] s1 : ff200000001ebd48 a0 : ff60000000000000 a1 : ff60000000e19000
[ 1.612864] a2 : 0000000000001000 a3 : ff60000000e1a000 a4 : 0000000000000000
[ 1.612885] a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000
[ 1.612905] s2 : 0000000000080e19 s3 : 0000000000000000 s4 : ff1c000000000000
[ 1.612924] s5 : ff1c000000038640 s6 : ff6000000253a130 s7 : ff600000024a6280
[ 1.612942] s8 : 0000000000001a55 s9 : ff6000000253a130 s10: 0000555592429000
[ 1.612960] s11: 00007fffa4a9e838 t3 : 0000000000000000 t4 : 0000000000000000
[ 1.612976] t5 : 0000000000000000 t6 : ff60000000000000
[ 1.612993] status: 0000000200000120 badaddr: ff60000000000000 cause: 0000000000000007
[ 1.613134] [<ffffffff809bd9e4>] __memcpy+0x60/0xf8
[ 1.613274] [<ffffffff8018902a>] __handle_mm_fault+0x5ce/0xd88
[ 1.613292] [<ffffffff80189918>] handle_mm_fault+0x134/0x1da
[ 1.613305] [<ffffffff8000c7f8>] handle_page_fault+0xb8/0x430
[ 1.613320] [<ffffffff809cc062>] do_page_fault+0x1e/0x36
[ 1.613333] [<ffffffff809d584a>] _new_vmalloc_restore_context_a0+0xc2/0xce
[ 1.613573] Code: b303 0285 b383 0305 be03 0385 be83 0405 bf03 0485 (b023) 00ef
[ 1.613999] ---[ end trace 0000000000000000 ]---
[ 1.614302] Kernel panic - not syncing: Fatal exception in interrupt
[ 1.620206] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
QEMU: Terminated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment