syzbot


kernel panic: corrupted stack end in mnt_put_write_access

Status: moderation: reported on 2024/09/21 04:17
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+7fb903146970dc85e6bc@syzkaller.appspotmail.com
First crash: 11d, last: 11d

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: 9462edf6f0f4fb32d8129e0f807f68da525785f6'
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: 9462edf6f0f4fb32d8129e0f807f68da525785f6'
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: 0 UID: 0 PID: 1 Comm: init Not tainted 6.11.0-rc2-syzkaller-g7c1e5b9690b0 #0
Hardware name: riscv-virtio,qemu (DT)
Call Trace:
[<ffffffff80010216>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:130
[<ffffffff85edbd86>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:136
[<ffffffff85f3735e>] __dump_stack lib/dump_stack.c:93 [inline]
[<ffffffff85f3735e>] dump_stack_lvl+0x108/0x196 lib/dump_stack.c:119
[<ffffffff85f37408>] dump_stack+0x1c/0x24 lib/dump_stack.c:128
[<ffffffff85edc94a>] panic+0x388/0x806 kernel/panic.c:348
[<ffffffff85f4554a>] schedule_debug kernel/sched/core.c:5745 [inline]
[<ffffffff85f4554a>] __schedule+0x3230/0x3288 kernel/sched/core.c:6411
[<ffffffff85f45a6c>] preempt_schedule_common kernel/sched/core.c:6708 [inline]
[<ffffffff85f45a6c>] preempt_schedule+0xd2/0x1e2 kernel/sched/core.c:6732
[<ffffffff80a6752c>] mnt_put_write_access+0x192/0x20a fs/namespace.c:579
[<ffffffff809e7222>] file_put_write_access fs/internal.h:107 [inline]
[<ffffffff809e7222>] put_file_access fs/internal.h:117 [inline]
[<ffffffff809e7222>] __fput+0x67a/0xa12 fs/file_table.c:429
[<ffffffff809e7654>] ____fput+0x1a/0x24 fs/file_table.c:450
[<ffffffff8014e49e>] task_work_run+0x16a/0x25e kernel/task_work.c:228
[<ffffffff85f3a5f8>] resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
[<ffffffff85f3a5f8>] exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
[<ffffffff85f3a5f8>] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
[<ffffffff85f3a5f8>] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
[<ffffffff85f3a5f8>] syscall_exit_to_user_mode+0x30a/0x31e kernel/entry/common.c:218
[<ffffffff85f5ba76>] 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/17 04:15 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 7c1e5b9690b0 c673ca06 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 kernel panic: corrupted stack end in mnt_put_write_access
* Struck through repros no longer work on HEAD.