syzbot


kernel panic: stack is corrupted in lockdep_hardirqs_on_prepare

Status: auto-obsoleted due to no activity on 2025/08/18 16:10
Reported-by: syzbot+6d75aba1e2659a26241e@syzkaller.appspotmail.com
First crash: 198d, last: 112d

Sample crash report:
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: lockdep_hardirqs_on_prepare+0x5d8/0x760 kernel/locking/lockdep.c:-1
CPU: 1 PID: 6277 Comm: syz.4.525 Not tainted 6.1.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106
 panic+0x2c9/0x710 kernel/panic.c:339
 __stack_chk_fail+0x10/0x10 kernel/panic.c:767
 lockdep_hardirqs_on_prepare+0x5d8/0x760 kernel/locking/lockdep.c:-1
 trace_hardirqs_on+0x34/0x40 kernel/trace/trace_preemptirq.c:49
 native_save_fl arch/x86/include/asm/irqflags.h:22 [inline]
 arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
 arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline]
 seqcount_lockdep_reader_access+0x120/0x1c0 include/linux/seqlock.h:104
 ktime_get_coarse_real_ts64+0x36/0x120 kernel/time/timekeeping.c:2261
 current_time+0x86/0x2b0 fs/inode.c:2538
 touch_atime+0x284/0x620 fs/inode.c:2030
 file_accessed include/linux/fs.h:2600 [inline]
 filemap_read+0x2d0b/0x2f80 mm/filemap.c:2836
 generic_file_read_iter+0x115/0x670 mm/filemap.c:2914
 __kernel_read+0x2dc/0x6b0 fs/read_write.c:428
 integrity_kernel_read+0x86/0xd0 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+0x96b/0x17c0 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x4b3/0xac0 security/integrity/ima/ima_api.c:293
 process_measurement+0xfae/0x1a10 security/integrity/ima/ima_main.c:351
 ima_file_check+0xc2/0x100 security/integrity/ima/ima_main.c:534
 do_open fs/namei.c:3628 [inline]
 path_openat+0x2679/0x2e70 fs/namei.c:3783
 do_filp_open+0x1c1/0x3c0 fs/namei.c:3810
 do_sys_openat2+0x142/0x490 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_openat fs/open.c:1350 [inline]
 __se_sys_openat fs/open.c:1345 [inline]
 __x64_sys_openat+0x135/0x160 fs/open.c:1345
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fdd8fb8e969
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:00007fdd9092f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fdd8fdb6080 RCX: 00007fdd8fb8e969
RDX: 0000000000121042 RSI: 0000200000000040 RDI: ffffffffffffff9c
RBP: 00007fdd8fc10ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000018 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fdd8fdb6080 R15: 00007ffeae05de88
 </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
2025/05/10 16:09 linux-6.1.y 02b72ccb5f9d 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in lockdep_hardirqs_on_prepare
2025/02/13 15:14 linux-6.1.y 0cbb5f65e52f a98a8417 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in lockdep_hardirqs_on_prepare
* Struck through repros no longer work on HEAD.