syzbot


kernel panic: corrupted stack end in vma_iter_store

Status: moderation: reported on 2024/06/09 05:21
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+2cfcd927235b99d2461a@syzkaller.appspotmail.com
First crash: 10d, last: 10d

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: cfb7b12efe14dd18bda689e5e78028ceb7d14eb9'
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: cfb7b12efe14dd18bda689e5e78028ceb7d14eb9'
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-rc2-syzkaller-ge2c79b4c5c4d #0
Hardware name: riscv-virtio,qemu (DT)
Call Trace:
[<ffffffff8000f6f8>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:129
[<ffffffff85c24e3c>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:135
[<ffffffff85c7eb74>] __dump_stack lib/dump_stack.c:88 [inline]
[<ffffffff85c7eb74>] dump_stack_lvl+0x108/0x196 lib/dump_stack.c:114
[<ffffffff85c7ec1e>] dump_stack+0x1c/0x24 lib/dump_stack.c:123
[<ffffffff85c25a02>] panic+0x382/0x800 kernel/panic.c:347
[<ffffffff85c8db24>] schedule_debug kernel/sched/core.c:5962 [inline]
[<ffffffff85c8db24>] __schedule+0x342e/0x3486 kernel/sched/core.c:6628
[<ffffffff85c8e2c8>] preempt_schedule_notrace+0xe0/0x2be kernel/sched/core.c:7017
[<ffffffff802a3c0c>] rcu_is_watching+0x11e/0x178 kernel/rcu/tree.c:725
[<ffffffff85bb4214>] trace_ma_write+0xf0/0x386 include/trace/events/maple_tree.h:80
[<ffffffff85bc52ca>] mas_wr_node_store+0xda8/0x15ca lib/maple_tree.c:3960
[<ffffffff85be4abe>] mas_wr_modify lib/maple_tree.c:4189 [inline]
[<ffffffff85be4abe>] mas_wr_store_entry.isra.0+0x5e4/0xe20 lib/maple_tree.c:4229
[<ffffffff85be53ca>] mas_store_prealloc+0xd0/0x238 lib/maple_tree.c:5485
[<ffffffff8080190e>] vma_iter_store+0x356/0xc5a mm/internal.h:1399
[<ffffffff8081742e>] mmap_region+0xbf8/0x21da mm/mmap.c:2957
[<ffffffff80819476>] do_mmap+0xa66/0xd90 mm/mmap.c:1397
[<ffffffff8075f350>] vm_mmap_pgoff+0x19e/0x310 mm/util.c:573
[<ffffffff8075f546>] vm_mmap+0x84/0xac mm/util.c:592
[<ffffffff80b5bd92>] elf_map fs/binfmt_elf.c:385 [inline]
[<ffffffff80b5bd92>] elf_load+0x392/0x716 fs/binfmt_elf.c:408
[<ffffffff80b5f53a>] load_elf_interp fs/binfmt_elf.c:675 [inline]
[<ffffffff80b5f53a>] load_elf_binary+0x3424/0x4b32 fs/binfmt_elf.c:1200
[<ffffffff809d91dc>] search_binary_handler fs/exec.c:1797 [inline]
[<ffffffff809d91dc>] exec_binprm fs/exec.c:1839 [inline]
[<ffffffff809d91dc>] bprm_execve fs/exec.c:1891 [inline]
[<ffffffff809d91dc>] bprm_execve+0x748/0x18f0 fs/exec.c:1867
[<ffffffff809dcede>] kernel_execve+0x364/0x450 fs/exec.c:2058
[<ffffffff85c23eec>] run_init_process+0x194/0x1a8 init/main.c:1388
[<ffffffff85c23f1e>] try_to_run_init_process+0x1e/0x66 init/main.c:1395
[<ffffffff85c84964>] kernel_init+0x180/0x224 init/main.c:1523
[<ffffffff85ca385a>] 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/05 05:17 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes e2c79b4c5c4d e1e2c66e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in vma_iter_store
* Struck through repros no longer work on HEAD.