syzbot


kernel panic: corrupted stack end in mas_preallocate

Status: auto-obsoleted due to no activity on 2024/09/16 12:35
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+eb4ecbce2a0f0e1e6044@syzkaller.appspotmail.com
First crash: 191d, last: 191d

Sample crash report:
NET: Registered PF_SMC protocol family
9pnet: Installing 9P2000 support
Key type dns_resolver registered
Key type ceph registered
libceph: loaded (mon/osd proto 15/24)
NET: Registered PF_VSOCK protocol family
Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
registered taskstats version 1
Loading compiled-in X.509 certificates
Loaded X.509 cert 'Build time autogenerated kernel key: 88ff3d1e1340d253d280fbdc4b34bafaa1954cde'
zswap: loaded using pool lzo/zsmalloc
Demotion targets for Node 0: null
debug_vm_pgtable: [debug_vm_pgtable         ]: Validating architecture page table helpers
Key type .fscrypt registered
Key type fscrypt-provisioning registered
Key type big_key registered
Key type encrypted registered
AppArmor: AppArmor sha256 policy hashing enabled
ima: No TPM chip found, activating TPM-bypass!
Loading compiled-in module X.509 certificates
Loaded X.509 cert 'Build time autogenerated kernel key: 88ff3d1e1340d253d280fbdc4b34bafaa1954cde'
ima: Allocated hash algorithm: sha256
ima: No architecture policies found
evm: Initialising EVM extended attributes:
evm: security.selinux (disabled)
evm: security.SMACK64 (disabled)
evm: security.SMACK64EXEC (disabled)
evm: security.SMACK64TRANSMUTE (disabled)
evm: security.SMACK64MMAP (disabled)
evm: security.apparmor
evm: security.ima
evm: security.capability
evm: HMAC attrs: 0x1
printk: legacy console [netcon0] enabled
netconsole: network logging started
gtp: GTP module loaded (pdp ctx size 128 bytes)
rdma_rxe: loaded
clk: Disabling unused clocks
PM: genpd: Disabling unused power domains
ALSA device list:
  #0: Dummy 1
  #1: Loopback 1
  #2: Virtual MIDI Card 1
md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
EXT4-fs (vda): mounted filesystem 34b94c48-234b-4869-b990-1f782e29954a ro with ordered data mode. Quota mode: none.
VFS: Mounted root (ext4 filesystem) readonly on device 253:0.
devtmpfs: mounted
Freeing unused kernel image (initmem) memory: 2500K
Failed to set sysctl parameter 'max_rcu_stall_to_panic=1': parameter not found
Run /sbin/init as init process
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 1 Comm: init Not tainted 6.10.0-rc3-syzkaller-g83a7eefedc9b #0
Hardware name: riscv-virtio,qemu (DT)
Call Trace:
[<ffffffff8000f6f8>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:129
[<ffffffff85c253c4>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:135
[<ffffffff85c7f13c>] __dump_stack lib/dump_stack.c:88 [inline]
[<ffffffff85c7f13c>] dump_stack_lvl+0x108/0x196 lib/dump_stack.c:114
[<ffffffff85c7f1e6>] dump_stack+0x1c/0x24 lib/dump_stack.c:123
[<ffffffff85c25f8a>] panic+0x382/0x800 kernel/panic.c:347
[<ffffffff85c8e0ec>] schedule_debug kernel/sched/core.c:5962 [inline]
[<ffffffff85c8e0ec>] __schedule+0x342e/0x3486 kernel/sched/core.c:6628
[<ffffffff85c8f0e4>] preempt_schedule_irq+0x7a/0x1a8 kernel/sched/core.c:7067
[<ffffffff85c828ca>] raw_irqentry_exit_cond_resched kernel/entry/common.c:311 [inline]
[<ffffffff85c828ca>] raw_irqentry_exit_cond_resched kernel/entry/common.c:303 [inline]
[<ffffffff85c828ca>] irqentry_exit+0x138/0x17a kernel/entry/common.c:354
[<ffffffff85c81562>] do_irq+0x34/0x4a arch/riscv/kernel/traps.c:390
[<ffffffff85ca3d18>] ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:112
[<ffffffff85bd5ea4>] mas_preallocate+0x3ac/0xf5a lib/maple_tree.c:5556
[<ffffffff8081703e>] vma_iter_prealloc mm/internal.h:1361 [inline]
[<ffffffff8081703e>] mmap_region+0xa5c/0x21da mm/mmap.c:2952
[<ffffffff80819222>] do_mmap+0xa66/0xd90 mm/mmap.c:1397
[<ffffffff8075f224>] vm_mmap_pgoff+0x19e/0x310 mm/util.c:573
[<ffffffff8075f41a>] vm_mmap+0x84/0xac mm/util.c:592
[<ffffffff80b5b7de>] elf_map fs/binfmt_elf.c:381 [inline]
[<ffffffff80b5b7de>] elf_load+0x186/0x716 fs/binfmt_elf.c:408
[<ffffffff80b5f192>] load_elf_interp fs/binfmt_elf.c:675 [inline]
[<ffffffff80b5f192>] load_elf_binary+0x3424/0x4b32 fs/binfmt_elf.c:1200
[<ffffffff809d8e34>] search_binary_handler fs/exec.c:1797 [inline]
[<ffffffff809d8e34>] exec_binprm fs/exec.c:1839 [inline]
[<ffffffff809d8e34>] bprm_execve fs/exec.c:1891 [inline]
[<ffffffff809d8e34>] bprm_execve+0x748/0x18f0 fs/exec.c:1867
[<ffffffff809dcb36>] kernel_execve+0x364/0x450 fs/exec.c:2058
[<ffffffff85c24474>] run_init_process+0x194/0x1a8 init/main.c:1388
[<ffffffff85c244a6>] try_to_run_init_process+0x1e/0x66 init/main.c:1395
[<ffffffff85c84f2c>] kernel_init+0x180/0x224 init/main.c:1523
[<ffffffff85ca3e22>] ret_from_fork+0xe/0x1c arch/riscv/kernel/entry.S:232
SMP: stopping secondary CPUs
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/18 12:34 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 83a7eefedc9b ce6011bc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in mas_preallocate
* Struck through repros no longer work on HEAD.