syzbot


kernel panic: stack is corrupted in __schedule (3)

Status: upstream: reported C repro on 2025/05/11 08:28
Reported-by: syzbot+7a9ee603b51c510f1a7e@syzkaller.appspotmail.com
First crash: 1d04h, last: 1d04h
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: stack is corrupted in __schedule (3) kernel 2 991d 1000d 0/28 auto-obsoleted due to no activity on 2022/11/23 03:17
linux-6.1 kernel panic: stack is corrupted in __schedule 1 357d 357d 0/3 auto-obsoleted due to no activity on 2024/08/27 17:04
linux-6.1 kernel panic: stack is corrupted in __schedule (2) 4 118d 205d 0/3 auto-obsoleted due to no activity on 2025/04/24 00:04
upstream kernel panic: stack is corrupted in __schedule kernel 1 1722d 1718d 0/28 auto-closed as invalid on 2020/11/21 13:35
upstream kernel panic: stack is corrupted in __schedule (2) kernel 1 1261d 1257d 0/28 auto-closed as invalid on 2022/01/26 17:30
upstream kernel panic: stack is corrupted in __schedule (4) ntfs3 syz 54 16d 264d 0/28 upstream: reported syz repro on 2024/08/20 16:14

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS' sector size (2048) and media sector size (512)
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: __schedule+0x143d/0x40d0 kernel/sched/core.c:-1
CPU: 1 PID: 4611 Comm: syz-executor153 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
 __schedule+0x143d/0x40d0 kernel/sched/core.c:-1
 preempt_schedule_irq+0xb1/0x150 kernel/sched/core.c:6873
 irqentry_exit+0x63/0x70 kernel/entry/common.c:439
 asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:696
RIP: 0010:preempt_count_add+0x2e/0x190 kernel/sched/core.c:5705
Code: 53 49 bf 00 00 00 00 00 fc ff df 48 c7 c0 20 f1 9b 96 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 eb 00 00 00 83 3d 42 48 44 15 00 <75> 07 65 8b 05 61 c6 aa 7e 65 01 3d 5a c6 aa 7e 48 c7 c0 20 f1 9b
RSP: 0018:ffffc9000c237a58 EFLAGS: 00000246
RAX: 0000000000000004 RBX: ffff88806295c538 RCX: ffffffff969bf103
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffc9000c237d28 R08: dffffc0000000000 R09: ffffed100c52b8d8
R10: ffffed100c52b8d8 R11: 1ffff1100c52b8d7 R12: ffff88806295c6b8
R13: 0000000000000000 R14: ffff88806295c6b8 R15: dffffc0000000000
 __raw_spin_lock include/linux/spinlock_api_smp.h:132 [inline]
 _raw_spin_lock+0xe/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 _atomic_dec_and_lock+0xa5/0x110 lib/dec_and_lock.c:28
 iput+0x7f/0x980 fs/inode.c:1852
 ntfs_fill_super+0x388a/0x3f30 fs/ntfs3/super.c:1214
 get_tree_bdev+0x3f1/0x610 fs/super.c:1366
 vfs_get_tree+0x88/0x270 fs/super.c:1573
 do_new_mount+0x24a/0xa40 fs/namespace.c:3057
 do_mount fs/namespace.c:3400 [inline]
 __do_sys_mount fs/namespace.c:3608 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3585
 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:0x7f57fc5a741a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 09 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffedd533d68 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffedd533dc0 RCX: 00007f57fc5a741a
RDX: 000020000001f340 RSI: 0000200000000040 RDI: 00007ffedd533dc0
RBP: 0000200000000040 R08: 00007ffedd533e00 R09: 000000000001f32b
R10: 0000000000000890 R11: 0000000000000286 R12: 000020000001f340
R13: 00007ffedd533e00 R14: 000000000001f331 R15: 0000200000000000
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..
----------------
Code disassembly (best guess):
   0:	53                   	push   %rbx
   1:	49 bf 00 00 00 00 00 	movabs $0xdffffc0000000000,%r15
   8:	fc ff df
   b:	48 c7 c0 20 f1 9b 96 	mov    $0xffffffff969bf120,%rax
  12:	48 c1 e8 03          	shr    $0x3,%rax
  16:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax
  1b:	84 c0                	test   %al,%al
  1d:	0f 85 eb 00 00 00    	jne    0x10e
  23:	83 3d 42 48 44 15 00 	cmpl   $0x0,0x15444842(%rip)        # 0x1544486c
* 2a:	75 07                	jne    0x33 <-- trapping instruction
  2c:	65 8b 05 61 c6 aa 7e 	mov    %gs:0x7eaac661(%rip),%eax        # 0x7eaac694
  33:	65 01 3d 5a c6 aa 7e 	add    %edi,%gs:0x7eaac65a(%rip)        # 0x7eaac694
  3a:	48                   	rex.W
  3b:	c7                   	.byte 0xc7
  3c:	c0 20 f1             	shlb   $0xf1,(%rax)
  3f:	9b                   	fwait

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/11 08:27 linux-6.1.y 02b72ccb5f9d 77908e5f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2 (corrupt fs)] ci2-linux-6-1-kasan kernel panic: stack is corrupted in __schedule
* Struck through repros no longer work on HEAD.