syzbot


kernel panic: stack is corrupted in preempt_schedule_irq

Status: moderation: reported on 2024/06/15 00:17
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+84d8d7f7a60706cde24b@syzkaller.appspotmail.com
First crash: 32d, last: 24d

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS sector size (2048) and media sector size (512).
ntfs3: loop0: Failed to initialize $Extend/$ObjId.
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: preempt_schedule_irq+0x1b5/0x1c0
CPU: 1 PID: 5305 Comm: syz-executor.0 Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114
 panic+0x349/0x860 kernel/panic.c:347
 __stack_chk_fail+0x15/0x20 kernel/panic.c:779
 preempt_schedule_irq+0x1b5/0x1c0
 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354
 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707
RIP: 0010:lock_is_held_type+0x13b/0x190
Code: 75 44 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 4c 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 42 89 d8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0018:ffffc900050f6480 EFLAGS: 00000206
RAX: e488b8def3974400 RBX: 0000000000000000 RCX: ffff888019b89e00
RDX: ffff888019b89e00 RSI: ffffffff8bcacd00 RDI: ffffffff8c1f2480
RBP: 0000000000000002 R08: ffffffff81cc8232 R09: 1ffffd40002d410e
R10: dffffc0000000000 R11: fffff940002d410f R12: 0000000000000246
R13: ffff888019b89e00 R14: 00000000ffffffff R15: ffff88805bf5b0d8
 lock_is_held include/linux/lockdep.h:231 [inline]
 xa_head include/linux/xarray.h:1204 [inline]
 xas_reload+0x17b/0x470 include/linux/xarray.h:1602
 filemap_get_read_batch+0x3b6/0xca0 mm/filemap.c:2319
 filemap_get_pages+0x4ba/0x2090 mm/filemap.c:2531
 filemap_read+0x457/0xfa0 mm/filemap.c:2625
 __kernel_read+0x51b/0x9c0 fs/read_write.c:434
 integrity_kernel_read+0xb0/0x100 security/integrity/iint.c:28
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline]
 ima_calc_file_hash+0xaef/0x1b30 security/integrity/ima/ima_crypto.c:568
 ima_collect_measurement+0x536/0xb30 security/integrity/ima/ima_api.c:293
 process_measurement+0x1357/0x1fb0 security/integrity/ima/ima_main.c:372
 ima_file_check+0xf2/0x170 security/integrity/ima/ima_main.c:572
 security_file_post_open+0x6d/0xa0 security/security.c:2982
 do_open fs/namei.c:3652 [inline]
 path_openat+0x28f6/0x3280 fs/namei.c:3807
 do_filp_open+0x235/0x490 fs/namei.c:3834
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1405
 do_sys_open fs/open.c:1420 [inline]
 __do_sys_openat fs/open.c:1436 [inline]
 __se_sys_openat fs/open.c:1431 [inline]
 __x64_sys_openat+0x247/0x2a0 fs/open.c:1431
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8f5787cf29
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:00007f8f586710c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f8f579b3f80 RCX: 00007f8f5787cf29
RDX: 0000000000000000 RSI: 0000000020002540 RDI: ffffffffffffff9c
RBP: 00007f8f578ec074 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8f579b3f80 R15: 00007ffcc95d6f68
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..
----------------
Code disassembly (best guess):
   0:	75 44                	jne    0x46
   2:	48 c7 04 24 00 00 00 	movq   $0x0,(%rsp)
   9:	00
   a:	9c                   	pushf
   b:	8f 04 24             	pop    (%rsp)
   e:	f7 04 24 00 02 00 00 	testl  $0x200,(%rsp)
  15:	75 4c                	jne    0x63
  17:	41 f7 c4 00 02 00 00 	test   $0x200,%r12d
  1e:	74 01                	je     0x21
  20:	fb                   	sti
  21:	65 48 8b 04 25 28 00 	mov    %gs:0x28,%rax
  28:	00 00
* 2a:	48 3b 44 24 08       	cmp    0x8(%rsp),%rax <-- trapping instruction
  2f:	75 42                	jne    0x73
  31:	89 d8                	mov    %ebx,%eax
  33:	48 83 c4 10          	add    $0x10,%rsp
  37:	5b                   	pop    %rbx
  38:	41 5c                	pop    %r12
  3a:	41 5d                	pop    %r13
  3c:	41 5e                	pop    %r14
  3e:	41 5f                	pop    %r15

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/19 03:21 upstream 2ccbdf43d5e7 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel panic: stack is corrupted in preempt_schedule_irq
2024/06/11 00:14 linux-next d35b2284e966 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel panic: stack is corrupted in preempt_schedule_irq
* Struck through repros no longer work on HEAD.