syzbot


kernel panic: stack is corrupted in preempt_schedule_irq

Status: upstream: reported on 2024/12/27 13:18
Reported-by: syzbot+a31f511d0ff058ae59c2@syzkaller.appspotmail.com
First crash: 39d, last: 3d23h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: stack is corrupted in preempt_schedule_irq kernel 2 231d 235d 0/28 auto-obsoleted due to no activity on 2024/09/17 03:21

Sample crash report:
loop2: detected capacity change from 0 to 4096
ntfs3: loop2: Different NTFS' sector size (1024) and media sector size (512)
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: preempt_schedule_irq+0x1b8/0x1c0
CPU: 1 PID: 25894 Comm: syz.2.5790 Not tainted 6.1.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/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
 preempt_schedule_irq+0x1b8/0x1c0
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:696
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:106 [inline]
RIP: 0010:lock_is_held_type+0x62/0x180 kernel/locking/lockdep.c:5701
Code: 85 f1 00 00 00 65 4c 8b 2d fb 96 4f 75 41 83 bd dc 0a 00 00 00 0f 85 db 00 00 00 41 89 f6 49 89 ff 48 c7 04 24 00 00 00 00 9c <8f> 04 24 4c 8b 24 24 fa 48 c7 c7 20 10 0c 8b e8 9a 16 00 00 65 ff
RSP: 0018:ffffc900046f7930 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffea0001cc7500 RCX: ffff88807ae08000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8d32b040
RBP: 00000000ffffffff R08: ffffffff81b8dfed R09: fffff94000398ea1
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff88807ae08000 R14: 00000000ffffffff R15: ffffffff8d32b040
 lock_is_held include/linux/lockdep.h:283 [inline]
 __might_resched+0xf0/0x780 kernel/sched/core.c:9917
 kmap include/linux/highmem-internal.h:166 [inline]
 ntfs_map_page+0x45/0x60 fs/ntfs3/ntfs_fs.h:908
 ntfs_fill_super+0x36ec/0x4410 fs/ntfs3/super.c:1152
 get_tree_bdev+0x3fe/0x620 fs/super.c:1366
 vfs_get_tree+0x88/0x270 fs/super.c:1573
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3056
 do_mount fs/namespace.c:3399 [inline]
 __do_sys_mount fs/namespace.c:3607 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584
 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:0x7ffa3018e54a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007ffa30f0ae68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffa30f0aef0 RCX: 00007ffa3018e54a
RDX: 000000002001f800 RSI: 000000002001f840 RDI: 00007ffa30f0aeb0
RBP: 000000002001f800 R08: 00007ffa30f0aef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000002001f840
R13: 00007ffa30f0aeb0 R14: 000000000001f808 R15: 0000000020000040
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..
----------------
Code disassembly (best guess):
   0:	85 f1                	test   %esi,%ecx
   2:	00 00                	add    %al,(%rax)
   4:	00 65 4c             	add    %ah,0x4c(%rbp)
   7:	8b 2d fb 96 4f 75    	mov    0x754f96fb(%rip),%ebp        # 0x754f9708
   d:	41 83 bd dc 0a 00 00 	cmpl   $0x0,0xadc(%r13)
  14:	00
  15:	0f 85 db 00 00 00    	jne    0xf6
  1b:	41 89 f6             	mov    %esi,%r14d
  1e:	49 89 ff             	mov    %rdi,%r15
  21:	48 c7 04 24 00 00 00 	movq   $0x0,(%rsp)
  28:	00
  29:	9c                   	pushf
* 2a:	8f 04 24             	pop    (%rsp) <-- trapping instruction
  2d:	4c 8b 24 24          	mov    (%rsp),%r12
  31:	fa                   	cli
  32:	48 c7 c7 20 10 0c 8b 	mov    $0xffffffff8b0c1020,%rdi
  39:	e8 9a 16 00 00       	call   0x16d8
  3e:	65                   	gs
  3f:	ff                   	.byte 0xff

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/01 04:35 linux-6.1.y 75cefdf153f5 aa47157c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in preempt_schedule_irq
2025/01/13 23:59 linux-6.1.y c63962be84ef 249ceea9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in preempt_schedule_irq
2024/12/27 13:21 linux-6.1.y 29f02ec58a94 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in preempt_schedule_irq
2024/12/27 13:17 linux-6.1.y 29f02ec58a94 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in preempt_schedule_irq
* Struck through repros no longer work on HEAD.