syzbot


kernel panic: stack is corrupted in lock_acquire (2)

Status: upstream: reported on 2024/12/06 12:26
Reported-by: syzbot+777ed9fa6017f6f9245d@syzkaller.appspotmail.com
First crash: 15d, last: 15d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: stack is corrupted in lock_acquire kernel 2 2176d 2178d 0/28 closed as dup on 2019/01/04 11:23
upstream kernel panic: stack is corrupted in lock_acquire (2) ntfs3 C error done 27 447d 819d 0/28 auto-obsoleted due to no activity on 2024/01/14 06:22
linux-5.15 kernel panic: stack is corrupted in lock_acquire origin:upstream missing-backport C 20 21d 581d 0/3 upstream: reported C repro on 2023/05/20 12:30
upstream kernel panic: stack is corrupted in lock_acquire (3) 1 121d 121d 0/28 closed as invalid on 2024/09/13 10:29
linux-6.1 kernel panic: stack is corrupted in lock_acquire 1 609d 609d 0/3 auto-obsoleted due to no activity on 2023/08/20 17:52

Sample crash report:
ntfs3: loop5: Mark volume as dirty due to NTFS errors
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: lock_acquire+0x567/0x5a0
CPU: 1 PID: 7566 Comm: syz.5.742 Not tainted 6.1.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 panic+0x318/0x764 kernel/panic.c:339
 __stack_chk_fail+0x10/0x10 kernel/panic.c:767
 lock_acquire+0x567/0x5a0
 seqcount_lockdep_reader_access+0x13b/0x220 include/linux/seqlock.h:103
 ktime_get_coarse_real_ts64+0x36/0x120 kernel/time/timekeeping.c:2261
 current_time+0x87/0x300 fs/inode.c:2534
 touch_atime+0x28b/0x680 fs/inode.c:2026
 file_accessed include/linux/fs.h:2600 [inline]
 filemap_read+0x2ef3/0x31d0 mm/filemap.c:2835
 __kernel_read+0x421/0x890 fs/read_write.c:428
 integrity_kernel_read+0xac/0xf0 security/integrity/iint.c:228
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
 ima_calc_file_hash+0xa57/0x1c00 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x559/0xc40 security/integrity/ima/ima_api.c:293
 process_measurement+0x135c/0x21b0 security/integrity/ima/ima_main.c:351
 ima_file_check+0xed/0x170 security/integrity/ima/ima_main.c:534
 do_open fs/namei.c:3628 [inline]
 path_openat+0x2687/0x2e60 fs/namei.c:3783
 do_filp_open+0x230/0x480 fs/namei.c:3810
 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318
 __do_sys_openat2 fs/open.c:1377 [inline]
 __se_sys_openat2+0x251/0x2f0 fs/open.c:1353
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1676f7ff19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1677d59058 EFLAGS: 00000246 ORIG_RAX: 00000000000001b5
RAX: ffffffffffffffda RBX: 00007f1677145fa0 RCX: 00007f1676f7ff19
RDX: 00000000200000c0 RSI: 0000000020000040 RDI: ffffffffffffff9c
RBP: 00007f1676ff3986 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000018 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f1677145fa0 R15: 00007ffca0706618
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/06 12:33 linux-6.1.y e4d90d63d385 946d28f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in lock_acquire
2024/12/06 12:25 linux-6.1.y e4d90d63d385 946d28f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in lock_acquire
* Struck through repros no longer work on HEAD.