syzbot


kernel panic: stack is corrupted in __lock_acquire (5)

Status: upstream: reported C repro on 2022/12/26 14:42
Subsystems: ntfs3 (incorrect?)
Reported-by: syzbot+0bc4c0668351ce1cab8f@syzkaller.appspotmail.com
First crash: 93d, last: 42d

Cause bisection: failed (error log, bisect log)
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: stack is corrupted in __lock_acquire (2) 1 1400d 1400d 0/24 closed as invalid on 2019/05/25 17:37
upstream kernel panic: stack is corrupted in __lock_acquire (3) 3 1389d 1389d 0/24 closed as invalid on 2019/06/05 18:41
upstream kernel panic: stack is corrupted in __lock_acquire (4) kernel syz error error 75 1227d 1384d 16/24 fixed on 2020/02/18 14:31
upstream kernel panic: stack is corrupted in __lock_acquire 9 1531d 1543d 0/24 closed as dup on 2019/01/04 11:22
Last patch testing requests:
Created Duration User Patch Repo Result
2022/12/27 00:50 18m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git a5541c0811a0 report log

Sample crash report:
loop3: detected capacity change from 0 to 4096
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: __lock_acquire+0x405c/0x5df0 kernel/locking/lockdep.c:5105
CPU: 1 PID: 10507 Comm: syz-executor152 Not tainted 6.2.0-rc7-next-20230208-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
 panic+0x61b/0x6c0 kernel/panic.c:319
 __stack_chk_fail+0x19/0x20 kernel/panic.c:751
 __lock_acquire+0x405c/0x5df0 kernel/locking/lockdep.c:5105
 lock_acquire.part.0+0x11c/0x370 kernel/locking/lockdep.c:5691
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0x36/0x50 kernel/locking/spinlock.c:170
 spin_lock_irq include/linux/spinlock.h:375 [inline]
 truncate_inode_pages_final+0x5b/0x90 mm/truncate.c:479
 ntfs_evict_inode+0x1a/0xa0 fs/ntfs3/inode.c:1783
 evict+0x2ed/0x6b0 fs/inode.c:665
 iput_final fs/inode.c:1748 [inline]
 iput fs/inode.c:1774 [inline]
 iput+0x52b/0x8e0 fs/inode.c:1760
 ntfs_fill_super+0x3063/0x3ac0 fs/ntfs3/super.c:1247
 get_tree_bdev+0x444/0x760 fs/super.c:1295
 vfs_get_tree+0x8d/0x350 fs/super.c:1502
 do_new_mount fs/namespace.c:3042 [inline]
 path_mount+0x1342/0x1e40 fs/namespace.c:3372
 do_mount fs/namespace.c:3385 [inline]
 __do_sys_mount fs/namespace.c:3594 [inline]
 __se_sys_mount fs/namespace.c:3571 [inline]
 __x64_sys_mount+0x283/0x300 fs/namespace.c:3571
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6819975e2a
Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffeea667198 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00005555561482c0 RCX: 00007f6819975e2a
RDX: 000000002001f6c0 RSI: 000000002001f700 RDI: 00007ffeea6671e0
RBP: 0000000000000000 R08: 00007ffeea667220 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004
R13: 00007ffeea667220 R14: 0000000000000003 R15: 00007ffeea6671e0
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-linux-next-kasan-gce-root 2023/02/11 22:01 linux-next 38d2b86a665b 93e26d60 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel panic: stack is corrupted in __lock_acquire
ci-upstream-gce-arm64 2022/12/22 14:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 c692fab1 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel panic: stack is corrupted in __lock_acquire
ci-upstream-gce-arm64 2022/12/24 20:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] kernel panic: stack is corrupted in __lock_acquire
* Struck through repros no longer work on HEAD.