Skip to content

Instantly share code, notes, and snippets.

@pdp7
Last active May 20, 2023 22:39
Show Gist options
  • Save pdp7/afe78604f477c9e3a3cf0241bcdffcdb to your computer and use it in GitHub Desktop.
Save pdp7/afe78604f477c9e3a3cf0241bcdffcdb to your computer and use it in GitHub Desktop.
linux-riscv reference: boot failed with 'Oops - store (or AMO) access fault' for 3335068f8721 ("riscv: Use PUD/P4D/PGD pages for the linear mapping")
OpenSBI v1.2
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : Generic
Platform Features : medeleg
Platform HART Count : 1
Platform IPI Device : aclint-mswi
Platform Timer Device : aclint-mtimer @ 9330000Hz
Platform Console Device : uart8250
Platform HSM Device : ---
Platform PMU Device : ---
Platform Reboot Device : ---
Platform Shutdown Device : ---
Firmware Base : 0x8000000000
Firmware Size : 212 KB
Runtime SBI Version : 1.0
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*
Domain0 Region00 : 0x0000000002080000-0x00000000020bffff M: (I,R,W) S/U: ()
Domain0 Region01 : 0x0000008000000000-0x000000800003ffff M: (R,W,X) S/U: ()
Domain0 Region02 : 0x0000000002000000-0x000000000207ffff M: (I,R,W) S/U: ()
Domain0 Region03 : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X)
Domain0 Next Address : 0x0000008000200000
Domain0 Next Arg1 : 0x0000008002200000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART Priv Version : v1.11
Boot HART Base ISA : rv64imafdc
Boot HART ISA Extensions : none
Boot HART PMP Count : 8
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 38
Boot HART MHPM Count : 29
Boot HART MIDELEG : 0x0000000000000222
Boot HART MEDELEG : 0x000000000000b109
[ 0.000000] Linux version 6.3.0-rc1-all-builtin-00003-g3335068f8721-dirty (dfustini@16056fe2c31f) (riscv64-linux-gnu-gcc (Ubuntu 12.2.0-3ubuntu1) 12.2.0, GNU ld (GNU Binutils for Ubuntu) 2.39) #161 SMP Sat May 20 21:09:08 America 2023
[ 0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[ 0.000000] printk: bootconsole [sbi0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Failed to reserve 32 MiB
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000008000000000-0x000000807fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x807e62d180-0x807e62efff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000008000000000-0x000000807fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000008000000000-0x000000807fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000008000000000-0x000000807fffffff]
[ 0.000000] SBI specification v1.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10002
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI HSM extension detected
[ 0.000000] riscv: base ISA extensions acdfim
[ 0.000000] riscv: ELF capabilities acdfim
[ 0.000000] percpu: cpu 0 has no node -1 or node-local memory
[ 0.000000] percpu: Embedded 27 pages/cpu s72208 r8192 d30192 u110592
[ 0.000000] pcpu-alloc: s72208 r8192 d30192 u110592 alloc=27*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000] Policy zone: Normal
[ 0.000000] Kernel command line: root=/dev/ram rw earlycon=sbi console=ttyS0,115200
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:on, heap free:off
[ 0.000000] software IO TLB: area num 1.
[ 0.000000] software IO TLB: swiotlb_memblock_alloc: Failed to allocate 67108864 bytes tlb structure
[ 0.000000] software IO TLB: swiotlb_memblock_alloc: Failed to allocate 33554432 bytes tlb structure
[ 0.000000] software IO TLB: swiotlb_memblock_alloc: Failed to allocate 16777216 bytes tlb structure
[ 0.000000] software IO TLB: swiotlb_memblock_alloc: Failed to allocate 8388608 bytes tlb structure
[ 0.000000] software IO TLB: swiotlb_memblock_alloc: Failed to allocate 4194304 bytes tlb structure
[ 0.000000] software IO TLB: swiotlb_memblock_alloc: Failed to allocate 2097152 bytes tlb structure
[ 0.000000] software IO TLB: swiotlb_memblock_alloc: Failed to allocate 1048576 bytes tlb structure
[ 0.000000] Memory: 1977336K/2097152K available (17675K kernel code, 5599K rwdata, 12288K rodata, 3199K init, 979K bss, 119816K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 57916 entries in 227 pages
[ 0.000000] ftrace: allocated 227 pages with 5 groups
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=1.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 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] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] riscv-intc: 64 local interrupts mapped
[ 0.000000] plic: interrupt-controller@10000000: mapped 31 interrupts with 1 handlers for 2 contexts.
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] riscv-timer: riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x226db4d56, max_idle_ns: 440795202549 ns
[ 0.000002] sched_clock: 64 bits at 9MHz, resolution 107ns, wraps every 2199023255536ns
[ 0.008475] Console: colour dummy device 80x25
[ 0.013204] Calibrating delay loop (skipped), value calculated using timer frequency.. 18.66 BogoMIPS (lpj=37320)
[ 0.023431] pid_max: default: 32768 minimum: 301
[ 0.028537] LSM: initializing lsm=capability,apparmor
[ 0.033907] AppArmor: AppArmor initialized
[ 0.038314] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.045709] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.056596] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.064581] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.071809] cblist_init_generic: Setting shift to 0 and lim to 1.
[ 0.078308] cblist_init_generic: Setting shift to 0 and lim to 1.
[ 0.084602] ASID allocator disabled (0 bits)
[ 0.089075] rcu: Hierarchical SRCU implementation.
[ 0.093818] rcu: Max phase no-delay instances is 1000.
[ 0.100768] EFI services will not be available.
[ 0.106151] smp: Bringing up secondary CPUs ...
[ 0.110674] smp: Brought up 1 node, 1 CPU
[ 0.116746] devtmpfs: initialized
[ 0.122257] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.132091] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.141009] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.147709] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.154805] swapper/0: page allocation failure: order:6, mode:0xcc4(GFP_KERNEL|GFP_DMA32), nodemask=(null),cpuset=/,mems_allowed=0
[ 0.166548] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.3.0-rc1-all-builtin-00003-g3335068f8721-dirty #161
[ 0.176245] Call Trace:
[ 0.178765] [<ffffffff80006398>] dump_backtrace+0x28/0x3a
[ 0.184228] [<ffffffff8112365a>] show_stack+0x38/0x4a
[ 0.189349] [<ffffffff81139bfe>] dump_stack_lvl+0x44/0x62
[ 0.194817] [<ffffffff81139c34>] dump_stack+0x18/0x22
[ 0.199938] [<ffffffff8021e424>] warn_alloc+0xf0/0x174
[ 0.205146] [<ffffffff8021f1f8>] __alloc_pages+0xd50/0xdbc
[ 0.210702] [<ffffffff8023ee20>] alloc_page_interleave+0x1e/0x96
[ 0.216777] [<ffffffff80241780>] alloc_pages+0x134/0x194
[ 0.222159] [<ffffffff800add74>] atomic_pool_expand+0xa4/0x23c
[ 0.228062] [<ffffffff8120df9c>] __dma_atomic_pool_init+0x4e/0xac
[ 0.234224] [<ffffffff8120e09a>] dma_atomic_pool_init+0xa0/0x130
[ 0.240300] [<ffffffff80002862>] do_one_initcall+0x5c/0x1dc
[ 0.245942] [<ffffffff812017d6>] kernel_init_freeable+0x262/0x2d4
[ 0.252105] [<ffffffff8113ade4>] kernel_init+0x2a/0x166
[ 0.257400] [<ffffffff80003f18>] ret_from_exception+0x0/0x16
[ 0.263156] Mem-Info:
[ 0.265479] active_anon:0 inactive_anon:0 isolated_anon:0
[ 0.265479] active_file:0 inactive_file:0 isolated_file:0
[ 0.265479] unevictable:0 dirty:0 writeback:0
[ 0.265479] slab_reclaimable:17 slab_unreclaimable:290
[ 0.265479] mapped:0 shmem:0 pagetables:2
[ 0.265479] sec_pagetables:0 bounce:0
[ 0.265479] kernel_misc_reclaimable:0
[ 0.265479] free:493337 free_pcp:0 free_cma:0
[ 0.302645] 0 total pagecache pages
[ 0.306183] 0 pages in swap cache
[ 0.309581] Free swap = 0kB
[ 0.312518] Total swap = 0kB
[ 0.315483] 524288 pages RAM
[ 0.318420] 0 pages HighMem/MovableOnly
[ 0.322339] 29954 pages reserved
[ 0.325625] 0 pages cma reserved
[ 0.328950] DMA: failed to allocate 240 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocation
[ 0.337482] audit: initializing netlink subsys (disabled)
[ 0.344382] cpuidle: using governor ladder
[ 0.348500] audit: type=2000 audit(0.124:1): state=initialized audit_enabled=0 res=1
[ 0.356305] cpuidle: using governor menu
[ 0.377091] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.383869] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[ 0.390531] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.397383] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.419532] cryptd: max_cpu_qlen set to 1000
[ 0.492000] raid6: int64x8 gen() 1211 MB/s
[ 0.564350] raid6: int64x4 gen() 1969 MB/s
[ 0.636663] raid6: int64x2 gen() 2013 MB/s
[ 0.708970] raid6: int64x1 gen() 1802 MB/s
[ 0.713171] raid6: using algorithm int64x2 gen() 2013 MB/s
[ 0.786826] raid6: .... xor() 1021 MB/s, rmw enabled
[ 0.791721] raid6: using intx1 recovery algorithm
[ 0.798289] SCSI subsystem initialized
[ 0.802196] libata version 3.00 loaded.
[ 0.808407] NET: Registered PF_ATMPVC protocol family
[ 0.813474] NET: Registered PF_ATMSVC protocol family
[ 0.818671] NetLabel: Initializing
[ 0.821998] NetLabel: domain hash size = 128
[ 0.826446] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.832271] NetLabel: unlabeled traffic allowed by default
[ 0.838328] vgaarb: loaded
[ 0.841259] clocksource: Switched to clocksource riscv_clocksource
[ 0.854601] VFS: Disk quotas dquot_6.6.0
[ 0.861575] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.877801] FS-Cache: Loaded
[ 0.885438] CacheFiles: Loaded
[ 0.893639] AppArmor: AppArmor Filesystem Enabled
[ 0.931989] NET: Registered PF_INET protocol family
[ 0.942120] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.965030] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.973990] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.982122] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.990850] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 0.999085] TCP: Hash tables configured (established 16384 bind 16384)
[ 1.006468] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, linear)
[ 1.014119] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 1.020892] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 1.028502] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 1.034300] NET: Registered PF_XDP protocol family
[ 1.039077] PCI: CLS 0 bytes, default 64
[ 1.043631] Trying to unpack rootfs image as initramfs...
[ 1.049183] kvm [1]: hypervisor extension not available
[ 1.062831] Initialise system trusted keyrings
[ 1.073535] Key type blacklist registered
[ 1.082148] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[ 1.093942] zbud: loaded
[ 1.103367] DLM installed
[ 1.106992] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.122072] ntfs: driver 2.1.32 [Flags: R/O].
[ 1.133701] ntfs3: Max link count 4000
[ 1.137481] ntfs3: Enabled Linux POSIX ACLs support
[ 1.142382] ntfs3: Read-only LZX/Xpress compression included
[ 1.161872] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[ 1.174123] fuse: init (API version 7.38)
[ 1.253593] NET: Registered PF_ALG protocol family
[ 1.265408] xor: measuring software checksum speed
[ 1.272827] 8regs : 3725 MB/sec
[ 1.279813] 8regs_prefetch : 3726 MB/sec
[ 1.286768] 32regs : 3725 MB/sec
[ 1.293717] 32regs_prefetch : 3726 MB/sec
[ 1.298011] xor: using function: 32regs_prefetch (3726 MB/sec)
[ 1.341456] async_tx: api initialized (async)
[ 1.349540] Key type asymmetric registered
[ 1.357309] Asymmetric key parser 'x509' registered
[ 1.369360] Asymmetric key parser 'pkcs8' registered
[ 1.381717] Key type pkcs7_test registered
[ 1.386098] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 1.402261] io scheduler mq-deadline registered
[ 1.406802] io scheduler kyber registered
[ 1.421703] io scheduler bfq registered
[ 1.431395] xz_dec_test: module loaded
[ 1.435286] xz_dec_test: Create a device node with 'mknod xz_dec_test c 250 0' and write .xz files to it.
[ 1.458369] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 1.484837] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 1.524167] printk: console [ttyS0] disabled
[ 1.533723] 12007000.serial: ttyS0 at MMIO 0x12007000 (irq = 1, base_baud = 1510156) is a 16550A
[ 1.553750] printk: console [ttyS0] enabled
[ 1.553750] printk: console [ttyS0] enabled
[ 1.562142] printk: bootconsole [sbi0] disabled
[ 1.562142] printk: bootconsole [sbi0] disabled
[ 1.591261] 12002000.serial: ttyS1 at MMIO 0x12002000 (irq = 2, base_baud = 1510156) is a 16550A
[ 1.619407] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 1.670575] brd: module loaded
[ 1.710839] loop: module loaded
[ 1.714410] mtip32xx Version 1.3.1
[ 1.723059] zram: Added device: zram0
[ 1.736618] null_blk: disk nullb0 created
[ 1.740820] null_blk: module loaded
[ 1.757581] dummy-irq: no IRQ given. Use irq=N
[ 1.765600] Phantom Linux Driver, version n0.9.8, init OK
[ 1.779008] Loading iSCSI transport class v2.0-870.
[ 1.793924] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[ 1.806121] SCSI Media Changer driver v0.25
[ 1.844999] eql: Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)
[ 1.863798] MACsec IEEE 802.1AE
[ 1.875828] tun: Universal TUN/TAP device driver, 1.6
[ 1.890170] e100: Intel(R) PRO/100 Network Driver
[ 1.895036] e100: Copyright(c) 1999-2006 Intel Corporation
[ 1.913677] e1000: Intel(R) PRO/1000 Network Driver
[ 1.918686] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.933585] e1000e: Intel(R) PRO/1000 Network Driver
[ 1.938669] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.957730] igb: Intel(R) Gigabit Ethernet Network Driver
[ 1.963238] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.981612] Intel(R) 2.5G Ethernet Linux Driver
[ 1.986238] Copyright(c) 2018 Intel Corporation.
[ 2.001614] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 2.007968] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 2.025825] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver
[ 2.031999] ixgbe: Copyright (c) 1999-2016 Intel Corporation.
[ 2.050257] ixgbevf: Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver
[ 2.058102] ixgbevf: Copyright (c) 2009 - 2018 Intel Corporation.
[ 2.081605] i40e: Intel(R) Ethernet Connection XL710 Network Driver
[ 2.087983] i40e: Copyright (c) 2013 - 2019 Intel Corporation.
[ 2.106228] iavf: Intel(R) Ethernet Adaptive Virtual Function Network Driver
[ 2.113412] Copyright (c) 2013 - 2018 Intel Corporation.
[ 2.133964] Intel(R) Ethernet Switch Host Interface Driver
[ 2.139590] Copyright(c) 2013 - 2019 Intel Corporation.
[ 2.157718] ice: Intel(R) Ethernet Connection E800 Series Linux Driver
[ 2.164330] ice: Copyright (c) 2018, Intel Corporation.
[ 2.186566] mousedev: PS/2 mouse device common for all mice
[ 2.202225] md-cluster: support raid1 and raid10 (limited support)
[ 2.208495] Registering Cluster MD functions
[ 2.226644] device-mapper: uevent: version 1.0.3
[ 2.238204] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[ 2.257999] device-mapper: multipath round-robin: version 1.2.0 loaded
[ 2.269584] device-mapper: multipath queue-length: version 0.2.0 loaded
[ 2.281390] device-mapper: multipath service-time: version 0.3.0 loaded
[ 2.297329] device-mapper: multipath historical-service-time: version 0.1.1 loaded
[ 2.313506] device-mapper: dm-log-userspace: version 1.3.0 loaded
[ 2.325729] device-mapper: raid: Loading target version 1.15.1
[ 2.338362] sdhci: Secure Digital Host Controller Interface driver
[ 2.344639] sdhci: Copyright(c) Pierre Ossman
[ 2.361561] Synopsys Designware Multimedia Card Interface Driver
[ 2.373728] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.386008] sdhci-dwcmshc soc: invalid resource
[ 2.390635] sdhci-dwcmshc soc: sdhci_pltfm_init failed -22
[ 2.396157] sdhci-dwcmshc: probe of soc failed with error -22
[ 2.441795] mmc0: SDHCI controller on 18080000.mmc [18080000.mmc] using PIO
[ 2.497663] mmc0: Tuning failed, falling back to fixed sampling clock
[ 2.509712] mmc0: new HS200 MMC card at address 0001
[ 2.523492] mmcblk0: mmc0:0001 TX2964 58.3 GiB
[ 2.550518] GPT:Primary header thinks Alt. header is not at the end of the disk.
[ 2.558018] GPT:8388607 != 122241023
[ 2.561624] GPT:Alternate GPT header not at the end of the disk.
[ 2.567656] GPT:8388607 != 122241023
[ 2.571256] GPT: Use GNU Parted to correct GPT errors.
[ 2.576474] mmcblk0: p1 p2
[ 2.608123] mmcblk0boot0: mmc0:0001 TX2964 4.00 MiB
[ 2.632105] mmcblk0boot1: mmc0:0001 TX2964 4.00 MiB
[ 2.649634] mmcblk0rpmb: mmc0:0001 TX2964 4.00 MiB, chardev (511:0)
[ 9.269833] Freeing initrd memory: 26400K
[ 9.319807] riscv-pmu-sbi: SBI PMU extension is available
[ 9.325602] riscv-pmu-sbi: 16 firmware and 31 hardware counters
[ 9.331619] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[ 9.341718] pktgen: Packet Generator for packet performance testing. Version: 2.75
[ 9.349835] drop_monitor: Initializing network drop monitor service
[ 9.356501] NET: Registered PF_LLC protocol family
[ 9.361412] GACT probability on
[ 9.364582] Mirror/redirect action on
[ 9.368385] Simple TC action Loaded
[ 9.373207] netem: version 1.3
[ 9.376429] u32 classifier
[ 9.379172] input device check on
[ 9.382860] Actions configured
[ 9.390578] xt_time: kernel timezone is -0000
[ 9.395181] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP)
[ 9.401367] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[ 9.409084] IPVS: ipvs loaded.
[ 9.412214] IPVS: [rr] scheduler registered.
[ 9.416523] IPVS: [wrr] scheduler registered.
[ 9.420908] IPVS: [lc] scheduler registered.
[ 9.425205] IPVS: [wlc] scheduler registered.
[ 9.429587] IPVS: [fo] scheduler registered.
[ 9.433884] IPVS: [ovf] scheduler registered.
[ 9.438279] IPVS: [lblc] scheduler registered.
[ 9.442764] IPVS: [lblcr] scheduler registered.
[ 9.447334] IPVS: [dh] scheduler registered.
[ 9.451637] IPVS: [sh] scheduler registered.
[ 9.455936] IPVS: [mh] scheduler registered.
[ 9.460324] IPVS: [sed] scheduler registered.
[ 9.464718] IPVS: [nq] scheduler registered.
[ 9.469035] IPVS: [sip] pe registered.
[ 9.473003] ipip: IPv4 and MPLS over IPv4 tunneling driver
[ 9.479605] gre: GRE over IPv4 demultiplexor driver
[ 9.484576] ip_gre: GRE over IPv4 tunneling driver
[ 9.491666] IPv4 over IPsec tunneling driver
[ 9.497637] Initializing XFRM netlink socket
[ 9.502075] IPsec XFRM device driver
[ 9.506062] NET: Registered PF_INET6 protocol family
[ 9.542994] Segment Routing with IPv6
[ 9.547180] In-situ OAM (IOAM) with IPv6
[ 9.551577] mip6: Mobile IPv6
[ 9.556425] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 9.564789] ip6_gre: GRE over IPv6 tunneling driver
[ 9.574893] bpfilter: Loaded bpfilter_umh pid 91
[ 9.581835] NET: Registered PF_PACKET protocol family
[ 9.587053] NET: Registered PF_KEY protocol family
[ 9.592124] Bridge firewalling registered
[ 9.596294] NET: Registered PF_APPLETALK protocol family
[ 9.601756] NET: Registered PF_X25 protocol family
[ 9.606634] X25: Linux Version 0.2
[ 9.610637] NET: Registered PF_KCM protocol family
[ 9.615929] lec:lane_module_init: lec.c: initialized
[ 9.620992] mpoa:atm_mpoa_init: mpc.c: initialized
[ 9.625911] l2tp_core: L2TP core driver, V2.0
[ 9.630316] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[ 9.635953] l2tp_netlink: L2TP netlink interface
[ 9.640778] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[ 9.646819] l2tp_debugfs: L2TP debugfs support
[ 9.651301] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[ 9.657921] NET: Registered PF_PHONET protocol family
[ 9.663192] 8021q: 802.1Q VLAN Support v1.8
[ 9.684575] DCCP: Activated CCID 2 (TCP-like)
[ 9.689705] sctp: Hash tables configured (bind 256/256)
[ 9.696061] NET: Registered PF_RDS protocol family
[ 9.701355] Registered RDS/tcp transport
[ 9.705342] tipc: Activated (version 2.0.0)
[ 9.709934] NET: Registered PF_TIPC protocol family
[ 9.715222] tipc: Started in single node mode
[ 9.719742] 9pnet: Installing 9P2000 support
[ 9.762829] NET: Registered PF_IEEE802154 protocol family
[ 9.776540] Key type dns_resolver registered
[ 9.782041] NET: Registered PF_VSOCK protocol family
[ 9.787337] mpls_gso: MPLS GSO support
[ 9.808645] registered taskstats version 1
[ 9.813408] Loading compiled-in X.509 certificates
[ 9.819005] zswap: loaded using pool lzo/zbud
[ 9.835505] Key type .fscrypt registered
[ 9.839533] Key type fscrypt-provisioning registered
[ 9.858696] Key type encrypted registered
[ 9.863112] AppArmor: AppArmor sha1 policy hashing enabled
[ 9.869709] printk: console [netcon0] enabled
[ 9.874215] netconsole: network logging started
[ 9.891955] Freeing unused kernel image (initmem) memory: 3196K
[ 9.898110] Run /init as init process
[ 9.901822] with arguments:
[ 9.904802] /init
[ 9.907130] with environment:
[ 9.910305] HOME=/
[ 9.912671] TERM=linux
############################################
brw------- 1 root root 179, 1 Jan 1 00:00 /dev/mmcblk0p1
############################################
[ 10.262378] EXT4-fs (mmcblk0p2): recovery complete
[ 10.267450] EXT4-fs (mmcblk0p2): mounted filesystem 93f3fb7e-1728-4406-8db9-a0c57cf77a0a with ordered data mode. Quota mode: none.
total 2808
drwxr-xr-x 19 root root 4096 Mar 20 2023 .
drwxr-xr-x 20 root root 0 Jan 1 00:00 ..
lrwxrwxrwx 1 root root 7 Apr 17 2023 bin -> usr/bin
drwxr-xr-x 4 root root 4096 May 6 2023 boot
-rw------- 1 root root 3096576 Mar 20 2023 core
drwxr-xr-x 7 root root 3740 Jan 1 00:00 dev
drwxr-xr-x 84 root root 4096 May 6 2023 etc
drwxr-xr-x 3 root root 4096 May 6 2023 home
lrwxrwxrwx 1 root root 7 Apr 17 2023 lib -> usr/lib
drwx------ 2 root root 16384 May 6 2023 lost+found
drwxr-xr-x 2 root root 4096 Apr 17 2023 media
drwxr-xr-x 2 root root 4096 Apr 17 2023 mnt
drwxr-xr-x 3 root root 4096 May 6 2023 opt
dr-xr-xr-x 142 root root 0 Jan 1 00:00 proc
drwx------ 4 root root 4096 May 7 2023 root
drwxrwxrwt 2 root root 40 Jan 1 00:00 run
lrwxrwxrwx 1 root root 8 Apr 17 2023 sbin -> usr/sbin
drwxr-xr-x 2 root root 4096 May 6 2023 snap
drwxr-xr-x 2 root root 4096 Apr 17 2023 srv
dr-xr-xr-x 12 root root 0 Jan 1 00:00 sys
drwxrwxrwt 7 root root 4096 May 8 2023 tmp
drwxr-xr-x 11 root root 4096 Apr 17 2023 usr
drwxr-xr-x 13 root root 4096 Apr 17 2023 var
############################################
SWITCHING ROOT.............
[ 11.223362] Oops - store (or AMO) access fault [#1]
[ 11.228323] Modules linked in:
[ 11.231399] CPU: 0 PID: 1 Comm: systemd Not tainted 6.3.0-rc1-all-builtin-00003-g3335068f8721-dirty #161
[ 11.240890] epc : __memset+0x60/0xfc
[ 11.244501] ra : kernel_init_pages+0x84/0xcc
[ 11.248877] epc : ffffffff81122d6c ra : ffffffff80218504 sp : ffffaf8002e47500
[ 11.256103] gp : ffffffff82695010 tp : ffffaf8002e2ec00 t0 : ffffaf8000000000
[ 11.263328] t1 : 0000000000000080 t2 : 0000000000000001 s0 : ffffaf8002e47550
[ 11.270555] s1 : ffff8d8200000040 a0 : ffffaf8000000000 a1 : 0000000000000000
[ 11.277779] a2 : 0000000000001000 a3 : ffffaf8000001000 a4 : 0000000000000000
[ 11.285003] a5 : 0000020000000000 a6 : 0000000000000981 a7 : 0000000000000000
[ 11.292229] s2 : 0000000000000000 s3 : ffffaf0000000000 s4 : ffbfaf8000000000
[ 11.299454] s5 : ffffffff82694861 s6 : ffffaf7000000000 s7 : ffff8f8000000000
[ 11.306678] s8 : ffff8d8200000040 s9 : ffffaf8002e47720 s10: ffffaf807e62d800
[ 11.313902] s11: ffff8d8200000000 t3 : 0000000000000000 t4 : 0000000000000000
[ 11.321126] t5 : 0000000000000000 t6 : 0000000000000000
[ 11.326441] status: 0000000200000120 badaddr: ffffaf8000000000 cause: 0000000000000007
[ 11.334366] [<ffffffff81122d6c>] __memset+0x60/0xfc
[ 11.339256] [<ffffffff8021d51c>] get_page_from_freelist+0x724/0x10da
[ 11.345621] [<ffffffff8021e58c>] __alloc_pages+0xe4/0xdbc
[ 11.351028] [<ffffffff80241708>] alloc_pages+0xbc/0x194
[ 11.356264] [<ffffffff80241804>] folio_alloc+0x24/0x5a
[ 11.361408] [<ffffffff801ade98>] filemap_alloc_folio+0x128/0x132
[ 11.367427] [<ffffffff801bd620>] page_cache_ra_unbounded+0xcc/0x17c
[ 11.373705] [<ffffffff801bd9aa>] page_cache_ra_order+0x21a/0x2ca
[ 11.379717] [<ffffffff801b1be0>] filemap_fault+0x3ec/0x846
[ 11.385212] [<ffffffff801f5bcc>] __do_fault+0x32/0xf0
[ 11.390273] [<ffffffff801fb63e>] __handle_mm_fault+0xa62/0x1440
[ 11.396200] [<ffffffff801fc160>] handle_mm_fault+0x144/0x242
[ 11.401865] [<ffffffff8000c536>] do_page_fault+0x17c/0x436
[ 11.407362] [<ffffffff80003f18>] ret_from_exception+0x0/0x16
[ 11.413033] [<ffffffff806a1cda>] strncpy_from_user+0xba/0x1f8
[ 11.418792] [<ffffffff8029845e>] getname_flags.part.0+0x56/0x168
[ 11.424815] [<ffffffff80298598>] getname_flags+0x28/0x62
[ 11.430134] [<ffffffff80298d9e>] user_path_at_empty+0x2e/0x6a
[ 11.435890] [<ffffffff80281620>] do_faccessat+0xd6/0x274
[ 11.441211] [<ffffffff80282790>] sys_faccessat+0x1e/0x2c
[ 11.446529] [<ffffffff80003f0a>] ret_from_syscall+0x0/0x2
[ 11.451943] Code: 1007 82b3 40e2 0797 0000 8793 00e7 8305 97ba 8782 (b023) 00b2
[ 11.459491] ---[ end trace 0000000000000000 ]---
[ 11.464263] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 11.471944] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---
@pdp7
Copy link
Author

pdp7 commented May 20, 2023

[   11.223362] Oops - store (or AMO) access fault [#1]
[   11.228323] Modules linked in:
[   11.231399] CPU: 0 PID: 1 Comm: systemd Not tainted 6.3.0-rc1-all-builtin-00003-g3335068f8721-dirty #161
[   11.240890] epc : __memset (/eng/dfustini/gitlab/linux/arch/riscv/lib/memset.S:67) 
[   11.244501] ra : kernel_init_pages (/eng/dfustini/gitlab/linux/mm/page_alloc.c:1392) 
[   11.248877] epc : ffffffff81122d6c ra : ffffffff80218504 sp : ffffaf8002e47500
[   11.256103]  gp : ffffffff82695010 tp : ffffaf8002e2ec00 t0 : ffffaf8000000000
[   11.263328]  t1 : 0000000000000080 t2 : 0000000000000001 s0 : ffffaf8002e47550
[   11.270555]  s1 : ffff8d8200000040 a0 : ffffaf8000000000 a1 : 0000000000000000
[   11.277779]  a2 : 0000000000001000 a3 : ffffaf8000001000 a4 : 0000000000000000
[   11.285003]  a5 : 0000020000000000 a6 : 0000000000000981 a7 : 0000000000000000
[   11.292229]  s2 : 0000000000000000 s3 : ffffaf0000000000 s4 : ffbfaf8000000000
[   11.299454]  s5 : ffffffff82694861 s6 : ffffaf7000000000 s7 : ffff8f8000000000
[   11.306678]  s8 : ffff8d8200000040 s9 : ffffaf8002e47720 s10: ffffaf807e62d800
[   11.313902]  s11: ffff8d8200000000 t3 : 0000000000000000 t4 : 0000000000000000
[   11.321126]  t5 : 0000000000000000 t6 : 0000000000000000
[   11.326441] status: 0000000200000120 badaddr: ffffaf8000000000 cause: 0000000000000007
[   11.334366] __memset (/eng/dfustini/gitlab/linux/arch/riscv/lib/memset.S:67) 
[   11.339256] get_page_from_freelist (/eng/dfustini/gitlab/linux/mm/page_alloc.c:2540 /eng/dfustini/gitlab/linux/mm/page_alloc.c:2552 /eng/dfustini/gitlab/linux/mm/page_alloc.c:4325) 
[   11.345621] __alloc_pages (/eng/dfustini/gitlab/linux/mm/page_alloc.c:5592) 
[   11.351028] alloc_pages (/eng/dfustini/gitlab/linux/mm/mempolicy.c:2288) 
[   11.356264] folio_alloc (/eng/dfustini/gitlab/linux/mm/mempolicy.c:2293) 
[   11.361408] filemap_alloc_folio (/eng/dfustini/gitlab/linux/mm/filemap.c:976) 
[   11.367427] page_cache_ra_unbounded (/eng/dfustini/gitlab/linux/mm/readahead.c:248) 
[   11.373705] page_cache_ra_order (/eng/dfustini/gitlab/linux/mm/readahead.c:561) 
[   11.379717] filemap_fault (/eng/dfustini/gitlab/linux/mm/filemap.c:3281) 
[   11.385212] __do_fault (/eng/dfustini/gitlab/linux/mm/memory.c:4163) 
[   11.390273] __handle_mm_fault (/eng/dfustini/gitlab/linux/mm/memory.c:4493 /eng/dfustini/gitlab/linux/mm/memory.c:4621 /eng/dfustini/gitlab/linux/mm/memory.c:4909 /eng/dfustini/gitlab/linux/mm/memory.c:5051) 
[   11.396200] handle_mm_fault (/eng/dfustini/gitlab/linux/mm/memory.c:5197) 
[   11.401865] do_page_fault (/eng/dfustini/gitlab/linux/./include/linux/sched/signal.h:433 /eng/dfustini/gitlab/linux/arch/riscv/mm/fault.c:329) 
[   11.407362] ret_from_exception (/eng/dfustini/gitlab/linux/arch/riscv/kernel/entry.S:252) 
[   11.413033] strncpy_from_user (/eng/dfustini/gitlab/linux/lib/strncpy_from_user.c:41 /eng/dfustini/gitlab/linux/lib/strncpy_from_user.c:139) 
[   11.418792] getname_flags.part.0 (/eng/dfustini/gitlab/linux/fs/namei.c:151) 
[   11.424815] getname_flags (/eng/dfustini/gitlab/linux/fs/namei.c:206) 
[   11.430134] user_path_at_empty (/eng/dfustini/gitlab/linux/fs/namei.c:2876) 
[   11.435890] do_faccessat (/eng/dfustini/gitlab/linux/fs/open.c:484) 
[   11.441211] sys_faccessat (/eng/dfustini/gitlab/linux/fs/open.c:529) 
[   11.446529] ret_from_syscall (/eng/dfustini/gitlab/linux/arch/riscv/kernel/entry.S:235) 
[ 11.451943] Code: 1007 82b3 40e2 0797 0000 8793 00e7 8305 97ba 8782 (b023) 00b2
All code
========
   0:*	07                   	(bad)		<-- trapping instruction
   1:	10 b3 82 e2 40 97    	adc    %dh,-0x68bf1d7e(%rbx)
   7:	07                   	(bad)
   8:	00 00                	add    %al,(%rax)
   a:	93                   	xchg   %eax,%ebx
   b:	87 e7                	xchg   %esp,%edi
   d:	00 05 83 ba 97 82    	add    %al,-0x7d68457d(%rip)        # 0xffffffff8297ba96
  13:	87 23                	xchg   %esp,(%rbx)
  15:	b0 b2                	mov    $0xb2,%al
	...

Code starting with the faulting instruction
===========================================
   0:	23                   	.byte 0x23
   1:	b0 b2                	mov    $0xb2,%al
	...
[   11.459491] ---[ end trace 0000000000000000 ]---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment