syzbot


kernel panic: stack is corrupted in __schedule (2)

Status: upstream: reported on 2024/10/19 00:59
Reported-by: syzbot+378e7654dfd63c527586@syzkaller.appspotmail.com
First crash: 51d, last: 51d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: stack is corrupted in __schedule (3) kernel 2 837d 846d 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 203d 203d 0/3 auto-obsoleted due to no activity on 2024/08/27 17:04
upstream kernel panic: stack is corrupted in __schedule kernel 1 1568d 1564d 0/28 auto-closed as invalid on 2020/11/21 13:35
upstream kernel panic: stack is corrupted in __schedule (2) kernel 1 1107d 1103d 0/28 auto-closed as invalid on 2022/01/26 17:30
upstream kernel panic: stack is corrupted in __schedule (4) exfat 25 27d 110d 0/28 upstream: reported on 2024/08/20 16:14

Sample crash report:
loop1: detected capacity change from 0 to 4096
ntfs3: loop1: Different NTFS' sector size (1024) and media sector size (512)
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: __schedule+0x2051/0x4570
CPU: 1 PID: 5141 Comm: syz.1.249 Not tainted 6.1.113-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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
 __schedule+0x2051/0x4570
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:696
RIP: 0010:preempt_count_add+0x2/0x180 kernel/sched/core.c:5697
Code: 0c 24 80 e1 07 80 c1 03 38 c1 7c 97 48 8b 3c 24 e8 c3 8e 83 00 eb 8c e9 f2 fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 57 <41> 56 53 89 fb 48 c7 c0 60 71 33 97 48 c1 e8 03 49 bf 00 00 00 00
RSP: 0018:ffffc9000355fa00 EFLAGS: 00000283
RAX: ffffffff8a9b9cb8 RBX: ffff888071583dd8 RCX: 0000000000040000
RDX: ffffc90011988000 RSI: 000000000001338e RDI: 0000000000000001
RBP: ffff888071583d50 R08: ffffffff8a9b9c5c R09: ffffed100e2b07ec
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888071583f58
R13: 0000000000000a00 R14: ffff888071583dd8 R15: ffff888071583f58
 __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+0xb0/0x130 lib/dec_and_lock.c:28
 iput+0x83/0x980 fs/inode.c:1848
 ntfs_fill_super+0x3c01/0x4410 fs/ntfs3/super.c:1190
 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:0x7fa524f7f79a
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:00007fa524dfee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fa524dfeef0 RCX: 00007fa524f7f79a
RDX: 000000002001f800 RSI: 000000002001f840 RDI: 00007fa524dfeeb0
RBP: 000000002001f800 R08: 00007fa524dfeef0 R09: 0000000000800004
R10: 0000000000800004 R11: 0000000000000246 R12: 000000002001f840
R13: 00007fa524dfeeb0 R14: 000000000001f802 R15: 0000000020000100
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..
----------------
Code disassembly (best guess):
   0:	0c 24                	or     $0x24,%al
   2:	80 e1 07             	and    $0x7,%cl
   5:	80 c1 03             	add    $0x3,%cl
   8:	38 c1                	cmp    %al,%cl
   a:	7c 97                	jl     0xffffffa3
   c:	48 8b 3c 24          	mov    (%rsp),%rdi
  10:	e8 c3 8e 83 00       	call   0x838ed8
  15:	eb 8c                	jmp    0xffffffa3
  17:	e9 f2 fe ff ff       	jmp    0xffffff0e
  1c:	66 2e 0f 1f 84 00 00 	cs nopw 0x0(%rax,%rax,1)
  23:	00 00 00
  26:	66 90                	xchg   %ax,%ax
  28:	41 57                	push   %r15
* 2a:	41 56                	push   %r14 <-- trapping instruction
  2c:	53                   	push   %rbx
  2d:	89 fb                	mov    %edi,%ebx
  2f:	48 c7 c0 60 71 33 97 	mov    $0xffffffff97337160,%rax
  36:	48 c1 e8 03          	shr    $0x3,%rax
  3a:	49                   	rex.WB
  3b:	bf 00 00 00 00       	mov    $0x0,%edi

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/19 00:58 linux-6.1.y 54d90d17e8ce cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in __schedule
* Struck through repros no longer work on HEAD.