kernel panic: corrupted stack end in mntput

Status: moderation: reported on 2024/06/01 23:55
Subsystems: mm
[Documentation on labels]
First crash: 20d, last: 5d23h

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: 1 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
[<ffffffff85c8e6a0>] preempt_schedule_common kernel/sched/core.c:6924 [inline]
[<ffffffff85c8e6a0>] preempt_schedule+0xd2/0x1e2 kernel/sched/core.c:6948
[<ffffffff85ca29a6>] __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
[<ffffffff85ca29a6>] _raw_spin_unlock+0x88/0xa8 kernel/locking/spinlock.c:186
[<ffffffff80a22f04>] spin_unlock include/linux/spinlock.h:391 [inline]
[<ffffffff80a22f04>] d_walk+0x480/0xa04 fs/dcache.c:1308
[<ffffffff80a24c5e>] shrink_dcache_parent+0x150/0x5c4 fs/dcache.c:1487
[<ffffffff80a257ba>] do_one_tree fs/dcache.c:1538 [inline]
[<ffffffff80a257ba>] shrink_dcache_for_umount+0x74/0x332 fs/dcache.c:1555
[<ffffffff809c7290>] generic_shutdown_super+0x6e/0x342 fs/super.c:620
[<ffffffff809c86d6>] kill_anon_super+0x3e/0x6c fs/super.c:1226
[<ffffffff80bce6c8>] proc_kill_sb+0x8a/0x11a fs/proc/root.c:272
[<ffffffff809ca2aa>] deactivate_locked_super+0xd4/0x188 fs/super.c:473
[<ffffffff809ca3de>] deactivate_super fs/super.c:506 [inline]
[<ffffffff809ca3de>] deactivate_super+0x80/0x94 fs/super.c:502
[<ffffffff80a4aa12>] cleanup_mnt+0x278/0x4b6 fs/namespace.c:1267
[<ffffffff80a4a334>] mntput_no_expire+0xb9a/0xdaa fs/namespace.c:1353
[<ffffffff80a4a5b8>] mntput+0x74/0xa2 fs/namespace.c:1363
[<ffffffff809c5e2e>] __fput+0x4c2/0xa12 fs/file_table.c:433
[<ffffffff809c6418>] ____fput+0x1a/0x24 fs/file_table.c:450
[<ffffffff80148558>] task_work_run+0x16a/0x25e kernel/task_work.c:180
[<ffffffff85c823b4>] resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
[<ffffffff85c823b4>] exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
[<ffffffff85c823b4>] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
[<ffffffff85c823b4>] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
[<ffffffff85c823b4>] syscall_exit_to_user_mode+0x30a/0x31e kernel/entry/common.c:218
[<ffffffff85ca3d18>] ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:112
SMP: stopping secondary CPUs
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/12 14:25 git:// fixes 83a7eefedc9b f815599d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in mntput
2024/05/28 23:53 git:// fixes 1613e604df0c 34889ee3 .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.