syzbot


kernel panic: corrupted stack end in mntput (2)

Status: moderation: reported on 2024/09/15 17:14
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+8c3059cfa6575e8b026b@syzkaller.appspotmail.com
First crash: 9d07h, last: 9d07h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: corrupted stack end in mntput fs mm 2 100d 111d 0/28 auto-obsoleted due to no activity on 2024/09/10 14:26

Sample crash report:
Registered RDS/tcp transport
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
registered taskstats version 1
Loading compiled-in X.509 certificates
Loaded X.509 cert 'Build time autogenerated kernel key: f2a59455c4296818b28c73c1d87b1152c8ec3b9d'
zswap: loaded using pool 842/z3fold
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: f2a59455c4296818b28c73c1d87b1152c8ec3b9d'
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: 2532K
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 UID: 0 PID: 1 Comm: init Not tainted 6.11.0-rc2-syzkaller-g1ff95eb2bebd #0
Hardware name: riscv-virtio,qemu (DT)
Call Trace:
[<ffffffff80010216>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:130
[<ffffffff85edbc4e>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:136
[<ffffffff85f3714c>] __dump_stack lib/dump_stack.c:93 [inline]
[<ffffffff85f3714c>] dump_stack_lvl+0x108/0x196 lib/dump_stack.c:119
[<ffffffff85f371f6>] dump_stack+0x1c/0x24 lib/dump_stack.c:128
[<ffffffff85edc812>] panic+0x388/0x806 kernel/panic.c:348
[<ffffffff85f4533a>] schedule_debug kernel/sched/core.c:5745 [inline]
[<ffffffff85f4533a>] __schedule+0x3230/0x3288 kernel/sched/core.c:6411
[<ffffffff85f4585c>] preempt_schedule_common kernel/sched/core.c:6708 [inline]
[<ffffffff85f4585c>] preempt_schedule+0xd2/0x1e2 kernel/sched/core.c:6732
[<ffffffff85f5a472>] __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
[<ffffffff85f5a472>] _raw_spin_unlock+0x88/0xa8 kernel/locking/spinlock.c:186
[<ffffffff80a45a7c>] spin_unlock include/linux/spinlock.h:391 [inline]
[<ffffffff80a45a7c>] d_walk+0x480/0xa04 fs/dcache.c:1315
[<ffffffff80a477d6>] shrink_dcache_parent+0x150/0x5c4 fs/dcache.c:1494
[<ffffffff80a48356>] do_one_tree fs/dcache.c:1545 [inline]
[<ffffffff80a48356>] shrink_dcache_for_umount+0x98/0x37c fs/dcache.c:1562
[<ffffffff809e8390>] generic_shutdown_super+0x6e/0x342 fs/super.c:620
[<ffffffff809e97d6>] kill_anon_super+0x3e/0x6c fs/super.c:1237
[<ffffffff80bf882e>] proc_kill_sb+0x8a/0x11a fs/proc/root.c:272
[<ffffffff809eb3fa>] deactivate_locked_super+0xd4/0x188 fs/super.c:473
[<ffffffff809eb52e>] deactivate_super fs/super.c:506 [inline]
[<ffffffff809eb52e>] deactivate_super+0x80/0x94 fs/super.c:502
[<ffffffff80a6dbb6>] cleanup_mnt+0x278/0x4b6 fs/namespace.c:1373
[<ffffffff80a6d4d8>] mntput_no_expire+0xb9a/0xdaa fs/namespace.c:1459
[<ffffffff80a6d75c>] mntput+0x74/0xa2 fs/namespace.c:1469
[<ffffffff809e6f2e>] __fput+0x4c2/0xa12 fs/file_table.c:433
[<ffffffff809e7518>] ____fput+0x1a/0x24 fs/file_table.c:450
[<ffffffff8014e362>] task_work_run+0x16a/0x25e kernel/task_work.c:228
[<ffffffff85f3a3e8>] resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
[<ffffffff85f3a3e8>] exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
[<ffffffff85f3a3e8>] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
[<ffffffff85f3a3e8>] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
[<ffffffff85f3a3e8>] syscall_exit_to_user_mode+0x30a/0x31e kernel/entry/common.c:218
[<ffffffff85f5b866>] ret_from_exception+0x0/0x66 arch/riscv/kernel/entry.S:115
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/09/11 17:12 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1ff95eb2bebd ede7a22c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in mntput
* Struck through repros no longer work on HEAD.