kernel panic: stack is corrupted in register_lock_class

Status: auto-obsoleted due to no activity on 2023/10/10 06:11
Subsystems: fs
[Documentation on labels]
First crash: 151d, last: 151d

Sample crash report:
ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512).
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: register_lock_class+0x978/0x990
CPU: 1 PID: 16686 Comm: syz-executor.0 Not tainted 6.5.0-rc1-syzkaller-00006-g3f01e9fed845 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
 __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:758
 __lock_acquire+0x190/0x7f70 kernel/locking/lockdep.c:5021
 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5761
 percpu_down_read_trylock include/linux/percpu-rwsem.h:92 [inline]
 __sb_start_write_trylock include/linux/fs.h:1499 [inline]
 sb_start_write_trylock include/linux/fs.h:1574 [inline]
 touch_atime+0x227/0x680 fs/inode.c:1973
 file_accessed include/linux/fs.h:2202 [inline]
 filemap_read+0xf6b/0x10d0 mm/filemap.c:2726
 __kernel_read+0x422/0x8e0 fs/read_write.c:428
 integrity_kernel_read+0xb0/0xf0 security/integrity/iint.c:195
 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+0x164c/0x1d20 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x4a5/0x890 security/integrity/ima/ima_api.c:289
 process_measurement+0xfea/0x1cf0 security/integrity/ima/ima_main.c:345
 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:543
 do_open fs/namei.c:3638 [inline]
 path_openat+0x2812/0x3180 fs/namei.c:3793
 do_filp_open+0x234/0x490 fs/namei.c:3820
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1407
 do_sys_open fs/open.c:1422 [inline]
 __do_sys_open fs/open.c:1430 [inline]
 __se_sys_open fs/open.c:1426 [inline]
 __x64_sys_open+0x225/0x270 fs/open.c:1426
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
RIP: 0033:0x7f566fe7cb29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5670c7a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f566ff9bf80 RCX: 00007f566fe7cb29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200002c0
RBP: 00007f566fec847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f566ff9bf80 R15: 00007ffdbc1babc8
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/12 06:11 upstream 3f01e9fed845 2f19aa4f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel panic: stack is corrupted in register_lock_class
* Struck through repros no longer work on HEAD.