syzbot


kernel panic: corrupted stack end in __get_unmapped_area

Status: moderation: reported on 2024/06/04 09:40
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+0543ce9976bee0261bef@syzkaller.appspotmail.com
First crash: 18d, last: 18d

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: 3d4399cf973fd4f7cc2f643f4e216d6f9022d9eb'
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: 3d4399cf973fd4f7cc2f643f4e216d6f9022d9eb'
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: 1 PID: 1 Comm: init Not tainted 6.10.0-rc1-syzkaller-ga5e8a5b08a48 #0
Hardware name: riscv-virtio,qemu (DT)
Call Trace:
[<ffffffff8000f6f8>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:129
[<ffffffff85c29e7c>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:135
[<ffffffff85c83b6a>] __dump_stack lib/dump_stack.c:88 [inline]
[<ffffffff85c83b6a>] dump_stack_lvl+0x108/0x196 lib/dump_stack.c:114
[<ffffffff85c83c14>] dump_stack+0x1c/0x24 lib/dump_stack.c:123
[<ffffffff85c2aa42>] panic+0x382/0x800 kernel/panic.c:347
[<ffffffff85c92b18>] schedule_debug kernel/sched/core.c:5962 [inline]
[<ffffffff85c92b18>] __schedule+0x342e/0x3486 kernel/sched/core.c:6628
[<ffffffff85c93b10>] preempt_schedule_irq+0x7a/0x1a8 kernel/sched/core.c:7067
[<ffffffff85c872f6>] raw_irqentry_exit_cond_resched kernel/entry/common.c:311 [inline]
[<ffffffff85c872f6>] raw_irqentry_exit_cond_resched kernel/entry/common.c:303 [inline]
[<ffffffff85c872f6>] irqentry_exit+0x138/0x17a kernel/entry/common.c:354
[<ffffffff85c85f8e>] do_irq+0x34/0x4a arch/riscv/kernel/traps.c:390
[<ffffffff85ca8744>] ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:112
[<ffffffff85bd0456>] mte_node_type lib/maple_tree.c:223 [inline]
[<ffffffff85bd0456>] mas_rev_awalk lib/maple_tree.c:4745 [inline]
[<ffffffff85bd0456>] mas_empty_area_rev+0x2b8/0x18ca lib/maple_tree.c:5129
[<ffffffff8080db72>] vma_iter_area_highest mm/internal.h:1352 [inline]
[<ffffffff8080db72>] unmapped_area_topdown mm/mmap.c:1660 [inline]
[<ffffffff8080db72>] vm_unmapped_area+0x29e/0xb08 mm/mmap.c:1699
[<ffffffff8080efd6>] generic_get_unmapped_area_topdown+0x48e/0x91a mm/mmap.c:1794
[<ffffffff8080f58c>] arch_get_unmapped_area_topdown mm/mmap.c:1819 [inline]
[<ffffffff8080f58c>] arch_get_unmapped_area_topdown_vmflags mm/mmap.c:1836 [inline]
[<ffffffff8080f58c>] mm_get_unmapped_area_vmflags+0xa2/0xb0 mm/mmap.c:1846
[<ffffffff8080f8fa>] __get_unmapped_area+0x360/0x3e8 mm/mmap.c:1889
[<ffffffff80818d14>] do_mmap+0x29c/0xd90 mm/mmap.c:1284
[<ffffffff8075f3b8>] vm_mmap_pgoff+0x19e/0x310 mm/util.c:573
[<ffffffff8075f5ae>] vm_mmap+0x84/0xac mm/util.c:592
[<ffffffff80b5bbee>] elf_map fs/binfmt_elf.c:381 [inline]
[<ffffffff80b5bbee>] elf_load+0x186/0x716 fs/binfmt_elf.c:408
[<ffffffff80b5f5a2>] load_elf_interp fs/binfmt_elf.c:675 [inline]
[<ffffffff80b5f5a2>] load_elf_binary+0x3424/0x4b32 fs/binfmt_elf.c:1200
[<ffffffff809d9244>] search_binary_handler fs/exec.c:1797 [inline]
[<ffffffff809d9244>] exec_binprm fs/exec.c:1839 [inline]
[<ffffffff809d9244>] bprm_execve fs/exec.c:1891 [inline]
[<ffffffff809d9244>] bprm_execve+0x748/0x18f0 fs/exec.c:1867
[<ffffffff809dcf46>] kernel_execve+0x364/0x450 fs/exec.c:2058
[<ffffffff85c28f2c>] run_init_process+0x194/0x1a8 init/main.c:1388
[<ffffffff85c28f5e>] try_to_run_init_process+0x1e/0x66 init/main.c:1395
[<ffffffff85c89958>] kernel_init+0x180/0x224 init/main.c:1523
[<ffffffff85ca884e>] 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/05/31 09:28 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes a5e8a5b08a48 0c378259 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in __get_unmapped_area
* Struck through repros no longer work on HEAD.