* Crashes with CONFIG_SLAB_FREELIST_RANDOM @ 2020-05-04 11:30 Andreas Schwab 2020-05-04 14:47 ` David Abdurachmanov 0 siblings, 1 reply; 8+ messages in thread From: Andreas Schwab @ 2020-05-04 11:30 UTC (permalink / raw) To: linux-riscv When enabling CONFIG_SLAB_FREELIST_RANDOM, the kernel frequently crashes pretty early: [ 0.165922] Unable to handle kernel paging request at virtual address 00000016e1694827 [ 0.173081] Oops [#1] [ 0.175308] Modules linked in: [ 0.178353] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.6.6-212-default #1 openSUSE Tumbleweed (unreleased) [ 0.188074] epc: ffffffe00016f40a ra : ffffffe00016f44c sp : ffffffe1f6ae9c90 [ 0.195193] gp : ffffffe0009ae600 tp : ffffffe1f6ae3480 t0 : ffffffe1f6c19c80 [ 0.202398] t1 : 0000000000000000 t2 : 000000000000f8b7 s0 : ffffffe1f6ae9cd0 [ 0.209605] s1 : ffffffe1f6a036c0 a0 : 0000000000000000 a1 : 00000000000002e1 [ 0.216811] a2 : ffffffe000a08c18 a3 : 7fda5816e1694827 a4 : 00000001f7d06000 [ 0.224017] a5 : 00000001f7d06000 a6 : ffffffe1f6c19c00 a7 : 0000000000ff0000 [ 0.231224] s2 : 0000000000000cc0 s3 : ffffffe00043262a s4 : 7fda5816e1694827 [ 0.238429] s5 : ffffffe1f6a1a800 s6 : 0000000000000000 s7 : 0000000000000038 [ 0.245636] s8 : ffffffe00018a674 s9 : ffffffe00018ab60 s10: ffffffe1f6c19c00 [ 0.252842] s11: 000000000000000a t3 : ff633e17173e647f t4 : 000000f600000000 [ 0.260047] t5 : 000000ff00000000 t6 : ffffffe1f6c34258 [ 0.265344] status: 0000000200000120 badaddr: 00000016e1694827 cause: 000000000000000d [ 0.273289] ---[ end trace 703a116d0e920a95 ]--- I think that means there is a use-after-free somewhere. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Crashes with CONFIG_SLAB_FREELIST_RANDOM 2020-05-04 11:30 Crashes with CONFIG_SLAB_FREELIST_RANDOM Andreas Schwab @ 2020-05-04 14:47 ` David Abdurachmanov 2020-05-06 21:21 ` Palmer Dabbelt 0 siblings, 1 reply; 8+ messages in thread From: David Abdurachmanov @ 2020-05-04 14:47 UTC (permalink / raw) To: Andreas Schwab; +Cc: linux-riscv On Mon, May 4, 2020 at 2:30 PM Andreas Schwab <schwab@suse.de> wrote: > > When enabling CONFIG_SLAB_FREELIST_RANDOM, the kernel frequently crashes > pretty early: > > [ 0.165922] Unable to handle kernel paging request at virtual address 00000016e1694827 > [ 0.173081] Oops [#1] > [ 0.175308] Modules linked in: > [ 0.178353] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.6.6-212-default #1 openSUSE Tumbleweed (unreleased) > [ 0.188074] epc: ffffffe00016f40a ra : ffffffe00016f44c sp : ffffffe1f6ae9c90 > [ 0.195193] gp : ffffffe0009ae600 tp : ffffffe1f6ae3480 t0 : ffffffe1f6c19c80 > [ 0.202398] t1 : 0000000000000000 t2 : 000000000000f8b7 s0 : ffffffe1f6ae9cd0 > [ 0.209605] s1 : ffffffe1f6a036c0 a0 : 0000000000000000 a1 : 00000000000002e1 > [ 0.216811] a2 : ffffffe000a08c18 a3 : 7fda5816e1694827 a4 : 00000001f7d06000 > [ 0.224017] a5 : 00000001f7d06000 a6 : ffffffe1f6c19c00 a7 : 0000000000ff0000 > [ 0.231224] s2 : 0000000000000cc0 s3 : ffffffe00043262a s4 : 7fda5816e1694827 > [ 0.238429] s5 : ffffffe1f6a1a800 s6 : 0000000000000000 s7 : 0000000000000038 > [ 0.245636] s8 : ffffffe00018a674 s9 : ffffffe00018ab60 s10: ffffffe1f6c19c00 > [ 0.252842] s11: 000000000000000a t3 : ff633e17173e647f t4 : 000000f600000000 > [ 0.260047] t5 : 000000ff00000000 t6 : ffffffe1f6c34258 > [ 0.265344] status: 0000000200000120 badaddr: 00000016e1694827 cause: 000000000000000d > [ 0.273289] ---[ end trace 703a116d0e920a95 ]--- > > I think that means there is a use-after-free somewhere. I completely forgot about it, but I had the same issue on Fedora/RISCV side. With it enabled (which is typically the default) Fedora/RISCV fails to boot with the same the same or similar messages produced on console output. I believe the kernel at a time was v5.4.2. It seems that on Fedora/RISCV side I disabled it ~4 months ago. david > > Andreas. > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different." > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Crashes with CONFIG_SLAB_FREELIST_RANDOM 2020-05-04 14:47 ` David Abdurachmanov @ 2020-05-06 21:21 ` Palmer Dabbelt 2020-05-06 21:59 ` Andreas Schwab 0 siblings, 1 reply; 8+ messages in thread From: Palmer Dabbelt @ 2020-05-06 21:21 UTC (permalink / raw) To: david.abdurachmanov; +Cc: schwab, linux-riscv On Mon, 04 May 2020 07:47:40 PDT (-0700), david.abdurachmanov@gmail.com wrote: > On Mon, May 4, 2020 at 2:30 PM Andreas Schwab <schwab@suse.de> wrote: >> >> When enabling CONFIG_SLAB_FREELIST_RANDOM, the kernel frequently crashes >> pretty early: >> >> [ 0.165922] Unable to handle kernel paging request at virtual address 00000016e1694827 >> [ 0.173081] Oops [#1] >> [ 0.175308] Modules linked in: >> [ 0.178353] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.6.6-212-default #1 openSUSE Tumbleweed (unreleased) >> [ 0.188074] epc: ffffffe00016f40a ra : ffffffe00016f44c sp : ffffffe1f6ae9c90 >> [ 0.195193] gp : ffffffe0009ae600 tp : ffffffe1f6ae3480 t0 : ffffffe1f6c19c80 >> [ 0.202398] t1 : 0000000000000000 t2 : 000000000000f8b7 s0 : ffffffe1f6ae9cd0 >> [ 0.209605] s1 : ffffffe1f6a036c0 a0 : 0000000000000000 a1 : 00000000000002e1 >> [ 0.216811] a2 : ffffffe000a08c18 a3 : 7fda5816e1694827 a4 : 00000001f7d06000 >> [ 0.224017] a5 : 00000001f7d06000 a6 : ffffffe1f6c19c00 a7 : 0000000000ff0000 >> [ 0.231224] s2 : 0000000000000cc0 s3 : ffffffe00043262a s4 : 7fda5816e1694827 >> [ 0.238429] s5 : ffffffe1f6a1a800 s6 : 0000000000000000 s7 : 0000000000000038 >> [ 0.245636] s8 : ffffffe00018a674 s9 : ffffffe00018ab60 s10: ffffffe1f6c19c00 >> [ 0.252842] s11: 000000000000000a t3 : ff633e17173e647f t4 : 000000f600000000 >> [ 0.260047] t5 : 000000ff00000000 t6 : ffffffe1f6c34258 >> [ 0.265344] status: 0000000200000120 badaddr: 00000016e1694827 cause: 000000000000000d >> [ 0.273289] ---[ end trace 703a116d0e920a95 ]--- >> >> I think that means there is a use-after-free somewhere. > > I completely forgot about it, but I had the same issue on Fedora/RISCV > side. With it enabled (which is typically the default) Fedora/RISCV > fails to boot with the same the same or similar messages produced on > console output. > > I believe the kernel at a time was v5.4.2. > > It seems that on Fedora/RISCV side I disabled it ~4 months ago. This isn't reproducing for me on QEMU's virt board (-smp 4) and just CONFIG_{SLAB,SLAB_FREELIST_RANDOM}. Do either of you have a pointer to a full config that I could look at? I'm using the current fixes (essentially 5.7-rc4, as nothing we have right now is relevant). > > david > >> >> Andreas. >> >> -- >> Andreas Schwab, SUSE Labs, schwab@suse.de >> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 >> "And now for something completely different." >> ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Crashes with CONFIG_SLAB_FREELIST_RANDOM 2020-05-06 21:21 ` Palmer Dabbelt @ 2020-05-06 21:59 ` Andreas Schwab 2020-05-15 18:57 ` Palmer Dabbelt 0 siblings, 1 reply; 8+ messages in thread From: Andreas Schwab @ 2020-05-06 21:59 UTC (permalink / raw) To: Palmer Dabbelt; +Cc: linux-riscv, david.abdurachmanov Here is a full log: [ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [ 0.000000] Linux version 5.6.6-212-default (geeko@buildhost) (gcc version 9.3.1 20200406 [revision 6db837a5288ee3ca5ec504fbd5a765817e556ac2] (SUSE Linux)) #1 SMP Sat Apr 25 18:51:44 UTC 2020 (09cfe02) [ 0.000000] earlycon: sifive0 at MMIO 0x0000000010010000 (options '') [ 0.000000] printk: bootconsole [sifive0] enabled [ 0.000000] printk: debug: ignoring loglevel setting. [ 0.000000] Initial ramdisk at: 0x(____ptrval____) (16745124 bytes) [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Normal [mem 0x0000000100000000-0x000000027fffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080200000-0x000000027fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000027fffffff] [ 0.000000] On node 0 totalpages: 2096640 [ 0.000000] DMA32 zone: 8184 pages used for memmap [ 0.000000] DMA32 zone: 0 pages reserved [ 0.000000] DMA32 zone: 523776 pages, LIFO batch:63 [ 0.000000] Normal zone: 24576 pages used for memmap [ 0.000000] Normal zone: 1572864 pages, LIFO batch:63 [ 0.000000] software IO TLB: mapped [mem 0xfbfff000-0xfffff000] (64MB) [ 0.000000] CPU with hartid=0 is not available [ 0.000000] CPU with hartid=0 is not available [ 0.000000] elf_hwcap is 0x112d [ 0.000000] percpu: Embedded 18 pages/cpu s34648 r8192 d30888 u73728 [ 0.000000] pcpu-alloc: s34648 r8192 d30888 u73728 alloc=18*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2063880 [ 0.000000] Kernel command line: earlycon=sifive,0x10010000 console=ttySIF0 ignore_loglevel root=10.160.4.0:/daten/root/hifive rw [ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear) [ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.000000] Sorting __ex_table... [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 8149964K/8386560K available (6274K kernel code, 508K rwdata, 2854K rodata, 277K init, 640K bss, 236596K reserved, 0K cma-reserved) [ 0.000000] random: get_random_u64 called from kmem_cache_open+0x28/0x370 with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4. [ 0.000000] Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0 [ 0.000000] plic: mapped 53 interrupts with 4 handlers for 9 contexts. [ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [2] [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns [ 0.000006] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns [ 0.008534] Console: colour dummy device 80x25 [ 0.012819] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000) [ 0.022946] pid_max: default: 32768 minimum: 301 [ 0.027709] LSM: Security Framework initializing [ 0.032335] AppArmor: AppArmor initialized [ 0.036621] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.044087] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.054341] rcu: Hierarchical SRCU implementation. [ 0.060322] smp: Bringing up secondary CPUs ... [ 0.066382] smp: Brought up 1 node, 4 CPUs [ 0.071881] devtmpfs: initialized [ 0.077627] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.086713] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.093942] pinctrl core: initialized pinctrl subsystem [ 0.099272] thermal_sys: Registered thermal governor 'fair_share' [ 0.099278] thermal_sys: Registered thermal governor 'bang_bang' [ 0.104812] thermal_sys: Registered thermal governor 'step_wise' [ 0.110818] thermal_sys: Registered thermal governor 'user_space' [ 0.117641] NET: Registered protocol family 16 [ 0.127561] audit: initializing netlink subsys (disabled) [ 0.132992] audit: type=2000 audit(0.090:1): state=initialized audit_enabled=0 res=1 [ 0.144757] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.165922] Unable to handle kernel paging request at virtual address 00000016e1694827 [ 0.173081] Oops [#1] [ 0.175308] Modules linked in: [ 0.178353] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.6.6-212-default #1 openSUSE Tumbleweed (unreleased) [ 0.188074] epc: ffffffe00016f40a ra : ffffffe00016f44c sp : ffffffe1f6ae9c90 [ 0.195193] gp : ffffffe0009ae600 tp : ffffffe1f6ae3480 t0 : ffffffe1f6c19c80 [ 0.202398] t1 : 0000000000000000 t2 : 000000000000f8b7 s0 : ffffffe1f6ae9cd0 [ 0.209605] s1 : ffffffe1f6a036c0 a0 : 0000000000000000 a1 : 00000000000002e1 [ 0.216811] a2 : ffffffe000a08c18 a3 : 7fda5816e1694827 a4 : 00000001f7d06000 [ 0.224017] a5 : 00000001f7d06000 a6 : ffffffe1f6c19c00 a7 : 0000000000ff0000 [ 0.224017] a5 : 00000001f7d06000 a6 : ffffffe1f6c19c00 a7 : 0000000000ff000[ 0.231224] s2 : 0000000000000cc0 s3 : ffffffe00043262a s4 : 7fda5816e1694827 [ 0.238429] s5 : ffffffe1f6a1a800 s6 : 0000000000000000 s7 : 0000000000000038 [ 0.245636] s8 : ffffffe00018a674 s9 : ffffffe00018ab60 s10: ffffffe1f6c19c00 [ 0.252842] s11: 000000000000000a t3 : ff633e17173e647f t4 : 000000f600000000 [ 0.260047] t5 : 000000ff00000000 t6 : ffffffe1f6c34258 [ 0.265344] status: 0000000200000120 badaddr: 00000016e1694827 cause: 000000000000000d [ 0.273289] ---[ end trace 703a116d0e920a95 ]--- [ 0.277896] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 0.285488] SMP: stopping secondary CPUs [ 0.289404] Rebooting in 90 seconds.. The worst part here is that reboot-on-panic does not work. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Crashes with CONFIG_SLAB_FREELIST_RANDOM 2020-05-06 21:59 ` Andreas Schwab @ 2020-05-15 18:57 ` Palmer Dabbelt 2020-05-16 13:33 ` Andreas Schwab 0 siblings, 1 reply; 8+ messages in thread From: Palmer Dabbelt @ 2020-05-15 18:57 UTC (permalink / raw) To: schwab; +Cc: linux-riscv, david.abdurachmanov On Wed, 06 May 2020 14:59:12 PDT (-0700), schwab@suse.de wrote: > Here is a full log: Sorry, I was trying to ask for a full config. I tried just turning on SLAB_FREELIST_RANDOM (and slab, which it depends on) and didn't see any crashes when I ran this on QEMU. I'm hoping that your exact config will help me find the issue without digging up some hardware. > > [ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 > [ 0.000000] Linux version 5.6.6-212-default (geeko@buildhost) (gcc version 9.3.1 20200406 [revision 6db837a5288ee3ca5ec504fbd5a765817e556ac2] (SUSE Linux)) #1 SMP Sat Apr 25 18:51:44 UTC 2020 (09cfe02) > [ 0.000000] earlycon: sifive0 at MMIO 0x0000000010010000 (options '') > [ 0.000000] printk: bootconsole [sifive0] enabled > [ 0.000000] printk: debug: ignoring loglevel setting. > [ 0.000000] Initial ramdisk at: 0x(____ptrval____) (16745124 bytes) > [ 0.000000] Zone ranges: > [ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff] > [ 0.000000] Normal [mem 0x0000000100000000-0x000000027fffffff] > [ 0.000000] Movable zone start for each node > [ 0.000000] Early memory node ranges > [ 0.000000] node 0: [mem 0x0000000080200000-0x000000027fffffff] > [ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000027fffffff] > [ 0.000000] On node 0 totalpages: 2096640 > [ 0.000000] DMA32 zone: 8184 pages used for memmap > [ 0.000000] DMA32 zone: 0 pages reserved > [ 0.000000] DMA32 zone: 523776 pages, LIFO batch:63 > [ 0.000000] Normal zone: 24576 pages used for memmap > [ 0.000000] Normal zone: 1572864 pages, LIFO batch:63 > [ 0.000000] software IO TLB: mapped [mem 0xfbfff000-0xfffff000] (64MB) > [ 0.000000] CPU with hartid=0 is not available > [ 0.000000] CPU with hartid=0 is not available > [ 0.000000] elf_hwcap is 0x112d > [ 0.000000] percpu: Embedded 18 pages/cpu s34648 r8192 d30888 u73728 > [ 0.000000] pcpu-alloc: s34648 r8192 d30888 u73728 alloc=18*4096 > [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 > [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2063880 > [ 0.000000] Kernel command line: earlycon=sifive,0x10010000 console=ttySIF0 ignore_loglevel root=10.160.4.0:/daten/root/hifive rw > [ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear) > [ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) > [ 0.000000] Sorting __ex_table... > [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off > [ 0.000000] Memory: 8149964K/8386560K available (6274K kernel code, 508K rwdata, 2854K rodata, 277K init, 640K bss, 236596K reserved, 0K cma-reserved) > [ 0.000000] random: get_random_u64 called from kmem_cache_open+0x28/0x370 with crng_init=0 > [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 > [ 0.000000] rcu: Hierarchical RCU implementation. > [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4. > [ 0.000000] Tasks RCU enabled. > [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. > [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 > [ 0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0 > [ 0.000000] plic: mapped 53 interrupts with 4 handlers for 9 contexts. > [ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [2] > [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns > [ 0.000006] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns > [ 0.008534] Console: colour dummy device 80x25 > [ 0.012819] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000) > [ 0.022946] pid_max: default: 32768 minimum: 301 > [ 0.027709] LSM: Security Framework initializing > [ 0.032335] AppArmor: AppArmor initialized > [ 0.036621] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) > [ 0.044087] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) > [ 0.054341] rcu: Hierarchical SRCU implementation. > [ 0.060322] smp: Bringing up secondary CPUs ... > [ 0.066382] smp: Brought up 1 node, 4 CPUs > [ 0.071881] devtmpfs: initialized > [ 0.077627] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns > [ 0.086713] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) > [ 0.093942] pinctrl core: initialized pinctrl subsystem > [ 0.099272] thermal_sys: Registered thermal governor 'fair_share' > [ 0.099278] thermal_sys: Registered thermal governor 'bang_bang' > [ 0.104812] thermal_sys: Registered thermal governor 'step_wise' > [ 0.110818] thermal_sys: Registered thermal governor 'user_space' > [ 0.117641] NET: Registered protocol family 16 > [ 0.127561] audit: initializing netlink subsys (disabled) > [ 0.132992] audit: type=2000 audit(0.090:1): state=initialized audit_enabled=0 res=1 > [ 0.144757] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages > [ 0.165922] Unable to handle kernel paging request at virtual address 00000016e1694827 > [ 0.173081] Oops [#1] > [ 0.175308] Modules linked in: > [ 0.178353] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.6.6-212-default #1 openSUSE Tumbleweed (unreleased) > [ 0.188074] epc: ffffffe00016f40a ra : ffffffe00016f44c sp : ffffffe1f6ae9c90 > [ 0.195193] gp : ffffffe0009ae600 tp : ffffffe1f6ae3480 t0 : ffffffe1f6c19c80 > [ 0.202398] t1 : 0000000000000000 t2 : 000000000000f8b7 s0 : ffffffe1f6ae9cd0 > [ 0.209605] s1 : ffffffe1f6a036c0 a0 : 0000000000000000 a1 : 00000000000002e1 > [ 0.216811] a2 : ffffffe000a08c18 a3 : 7fda5816e1694827 a4 : 00000001f7d06000 > [ 0.224017] a5 : 00000001f7d06000 a6 : ffffffe1f6c19c00 a7 : 0000000000ff0000 > [ 0.224017] a5 : 00000001f7d06000 a6 : ffffffe1f6c19c00 a7 : 0000000000ff000[ 0.231224] s2 : 0000000000000cc0 s3 : ffffffe00043262a s4 : 7fda5816e1694827 > [ 0.238429] s5 : ffffffe1f6a1a800 s6 : 0000000000000000 s7 : 0000000000000038 > [ 0.245636] s8 : ffffffe00018a674 s9 : ffffffe00018ab60 s10: ffffffe1f6c19c00 > [ 0.252842] s11: 000000000000000a t3 : ff633e17173e647f t4 : 000000f600000000 > [ 0.260047] t5 : 000000ff00000000 t6 : ffffffe1f6c34258 > [ 0.265344] status: 0000000200000120 badaddr: 00000016e1694827 cause: 000000000000000d > [ 0.273289] ---[ end trace 703a116d0e920a95 ]--- > [ 0.277896] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > [ 0.285488] SMP: stopping secondary CPUs > [ 0.289404] Rebooting in 90 seconds.. > > The worst part here is that reboot-on-panic does not work. > > Andreas. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Crashes with CONFIG_SLAB_FREELIST_RANDOM 2020-05-15 18:57 ` Palmer Dabbelt @ 2020-05-16 13:33 ` Andreas Schwab 2020-06-04 14:14 ` David Abdurachmanov 0 siblings, 1 reply; 8+ messages in thread From: Andreas Schwab @ 2020-05-16 13:33 UTC (permalink / raw) To: Palmer Dabbelt; +Cc: linux-riscv, david.abdurachmanov On Mai 15 2020, Palmer Dabbelt wrote: > Sorry, I was trying to ask for a full config. Oops, sorry. Here's the full config: https://github.com/SUSE/kernel-source/blob/master/config/riscv64/default Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Crashes with CONFIG_SLAB_FREELIST_RANDOM 2020-05-16 13:33 ` Andreas Schwab @ 2020-06-04 14:14 ` David Abdurachmanov 2020-06-04 17:15 ` Andreas Schwab 0 siblings, 1 reply; 8+ messages in thread From: David Abdurachmanov @ 2020-06-04 14:14 UTC (permalink / raw) To: Andreas Schwab; +Cc: Vincent Chen, linux-riscv, Palmer Dabbelt On Sat, May 16, 2020 at 4:33 PM Andreas Schwab <schwab@suse.de> wrote: > > On Mai 15 2020, Palmer Dabbelt wrote: > > > Sorry, I was trying to ask for a full config. > > Oops, sorry. Here's the full config: > > https://github.com/SUSE/kernel-source/blob/master/config/riscv64/default I see you updated the config for 5.7.0 and CONFIG_SLAB_FREELIST_RANDOM=y is enabled. Andreas, do you still see the issue with 5.7.0 kernel and CONFIG_SLAB_FREELIST_RANDOM=y ? david > > Andreas. > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different." ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Crashes with CONFIG_SLAB_FREELIST_RANDOM 2020-06-04 14:14 ` David Abdurachmanov @ 2020-06-04 17:15 ` Andreas Schwab 0 siblings, 0 replies; 8+ messages in thread From: Andreas Schwab @ 2020-06-04 17:15 UTC (permalink / raw) To: David Abdurachmanov; +Cc: Vincent Chen, linux-riscv, Palmer Dabbelt On Jun 04 2020, David Abdurachmanov wrote: > Andreas, do you still see the issue with 5.7.0 kernel and > CONFIG_SLAB_FREELIST_RANDOM=y ? I cannot test currently, due to limited access to the hardware. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-06-04 17:15 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-05-04 11:30 Crashes with CONFIG_SLAB_FREELIST_RANDOM Andreas Schwab 2020-05-04 14:47 ` David Abdurachmanov 2020-05-06 21:21 ` Palmer Dabbelt 2020-05-06 21:59 ` Andreas Schwab 2020-05-15 18:57 ` Palmer Dabbelt 2020-05-16 13:33 ` Andreas Schwab 2020-06-04 14:14 ` David Abdurachmanov 2020-06-04 17:15 ` Andreas Schwab
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).