syzbot


kernel panic: stack is corrupted in lock_acquire (2)

Status: auto-obsoleted due to no activity on 2024/01/14 06:22
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+db99576f362a5c1e9f7a@syzkaller.appspotmail.com
First crash: 772d, last: 380d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 4ad5c924df6cd6d85708fa23f9d9a2b78a2e428e
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Fri Sep 22 10:07:59 2023 +0000

  fs/ntfs3: Allow repeated call to ntfs3_put_sbi

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] kernel panic: stack is corrupted in lock_acquire (2) 0 (3) 2023/10/31 20:22
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: stack is corrupted in lock_acquire kernel 2 2109d 2111d 0/28 closed as dup on 2019/01/04 11:23
linux-5.15 kernel panic: stack is corrupted in lock_acquire origin:upstream missing-backport C error 20 47d 514d 0/3 upstream: reported C repro on 2023/05/20 12:30
upstream kernel panic: stack is corrupted in lock_acquire (3) 1 54d 53d 0/28 closed as invalid on 2024/09/13 10:29
linux-6.1 kernel panic: stack is corrupted in lock_acquire 1 542d 542d 0/3 auto-obsoleted due to no activity on 2023/08/20 17:52
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/01/14 05:42 20m retest repro upstream OK log
2024/01/14 05:42 18m retest repro upstream OK log
2024/01/14 03:06 21m retest repro upstream OK log
2023/12/25 17:01 22m retest repro upstream OK log
2023/11/07 16:51 29m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2023/11/05 05:00 19m retest repro upstream report log
2023/11/05 05:00 17m retest repro upstream report log
2023/11/05 02:16 20m retest repro upstream report log
2023/10/16 15:59 23m retest repro upstream report log
2023/08/29 10:52 39m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
Fix bisection attempts (9)
Created Duration User Patch Repo Result
2023/10/31 16:26 3h55m bisect fix upstream OK (1) job log
2023/10/01 01:25 1h46m bisect fix upstream OK (0) job log log
2023/08/07 13:52 1h43m bisect fix upstream OK (0) job log log
2023/06/02 02:03 53m bisect fix upstream OK (0) job log log
2023/05/02 06:34 55m bisect fix upstream OK (0) job log log
2023/04/02 00:59 52m bisect fix upstream OK (0) job log log
2023/03/02 23:08 59m bisect fix upstream OK (0) job log log
2023/01/31 07:10 40m bisect fix upstream OK (0) job log log
2022/11/07 09:01 51m bisect fix upstream OK (0) job log log

Sample crash report:
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: lock_acquire+0x515/0x520
CPU: 1 PID: 5064 Comm: syz-executor396 Not tainted 6.4.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 panic+0x30f/0x770 kernel/panic.c:340
 __stack_chk_fail+0x14/0x20 kernel/panic.c:759
 lock_acquire+0x515/0x520
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:350 [inline]
 inode_get_bytes+0x2c/0xa0 fs/stat.c:827
 attr_set_size+0x3452/0x4290 fs/ntfs3/attrib.c:814
 ntfs_set_size+0x161/0x1f0 fs/ntfs3/inode.c:836
 ntfs_extend+0x153/0x490 fs/ntfs3/file.c:332
 ntfs_file_write_iter+0x308/0x6d0 fs/ntfs3/file.c:1050
 do_iter_write+0x7b1/0xcb0 fs/read_write.c:860
 iter_file_splice_write+0x843/0xfe0 fs/splice.c:795
 do_splice_from fs/splice.c:873 [inline]
 direct_splice_actor+0xe7/0x1c0 fs/splice.c:1039
 splice_direct_to_actor+0x4c4/0xbd0 fs/splice.c:994
 do_splice_direct+0x283/0x3d0 fs/splice.c:1082
 do_sendfile+0x620/0xff0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8cd30bab19
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007ffda813d9d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f8cd30bab19
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 0000000000000000 R08: 00007ffda813da00 R09: 00007ffda813da00
R10: 000000007fffffff R11: 0000000000000246 R12: 00007ffda813d9fc
R13: 00007ffda813da30 R14: 00007ffda813da10 R15: 0000000000000023
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (27):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/19 22:47 upstream 45a3e24f65e9 d521bc56 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/12/19 13:02 upstream f9ff5644bcc0 05494336 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/09/30 01:48 upstream c3e0e1e23c70 45fd7169 .config console log report syz C [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/09/29 17:28 upstream c3e0e1e23c70 45fd7169 .config console log report syz C [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/12/07 17:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 d88f3abb .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel panic: stack is corrupted in lock_acquire
2023/06/19 19:16 upstream 45a3e24f65e9 d521bc56 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel panic: stack is corrupted in lock_acquire
2022/11/28 05:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci-upstream-gce-arm64 kernel panic: stack is corrupted in lock_acquire
2023/06/28 10:36 upstream 6e2332e0ab53 8064cb02 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel panic: stack is corrupted in lock_acquire
2023/06/19 18:48 upstream 45a3e24f65e9 d521bc56 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel panic: stack is corrupted in lock_acquire
2023/05/02 23:24 upstream 7df047b3f0aa 48e0a81d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/10/07 19:16 upstream 4c86114194e6 79a59635 .config console log report info ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/10/07 07:33 upstream 833477fce7a1 80b58a42 .config console log report info ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/10/05 08:41 upstream 0326074ff465 267e3bb1 .config console log report info [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/10/05 03:05 upstream 0326074ff465 267e3bb1 .config console log report info [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/10/04 18:22 upstream 4fe89d07dcc2 eab8f949 .config console log report info [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/10/04 15:39 upstream 4fe89d07dcc2 eab8f949 .config console log report info [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/10/04 00:16 upstream 4fe89d07dcc2 feb56351 .config console log report info [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/10/03 20:21 upstream 4fe89d07dcc2 feb56351 .config console log report info [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/10/03 19:32 upstream 4fe89d07dcc2 feb56351 .config console log report info [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/09/30 15:58 upstream 987a926c1d8a 45fd7169 .config console log report info [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/09/30 15:34 upstream 987a926c1d8a 45fd7169 .config console log report info [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/09/27 18:32 upstream 3800a713b607 10323ddf .config console log report info ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/09/24 19:15 upstream 3db61221f4e8 0042f2b4 .config console log report info ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/09/22 08:17 upstream 06f7db949993 60af5050 .config console log report info [disk image] [vmlinux] ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/09/20 11:15 upstream 521a547ced64 7c41a9ba .config console log report info ci2-upstream-fs kernel panic: stack is corrupted in lock_acquire
2022/09/08 12:09 upstream 0066f1b0e275 f3027468 .config console log report info ci-upstream-kasan-gce-smack-root kernel panic: stack is corrupted in lock_acquire
2022/09/04 01:03 upstream 42cf58c272ee 28811d0a .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root kernel panic: stack is corrupted in lock_acquire
* Struck through repros no longer work on HEAD.