syzbot


kernel panic: stack is corrupted in __schedule (3)

Status: upstream: reported C repro on 2025/05/11 08:28
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+7a9ee603b51c510f1a7e@syzkaller.appspotmail.com
First crash: 64d, last: 13d
Bug presence (1)
Date Name Commit Repro Result
2025/05/17 upstream (ToT) 5723cc3450bc C [report] invalid opcode in asm_sysvec_reschedule_ipi
Similar bugs (7)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel panic: stack is corrupted in __schedule (3) kernel 2 2 1054d 1064d 0/29 auto-obsoleted due to no activity on 2022/11/23 03:17
linux-6.1 kernel panic: stack is corrupted in __schedule 2 1 421d 421d 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) 2 4 181d 268d 0/3 auto-obsoleted due to no activity on 2025/04/24 00:04
upstream kernel panic: stack is corrupted in __schedule kernel 2 1 1786d 1782d 0/29 auto-closed as invalid on 2020/11/21 13:35
upstream kernel panic: stack is corrupted in __schedule (2) kernel 2 1 1325d 1321d 0/29 auto-closed as invalid on 2022/01/26 17:30
upstream kernel panic: stack is corrupted in __schedule (4) ntfs3 2 syz 55 43d 328d 0/29 upstream: reported syz repro on 2024/08/20 16:14
linux-6.6 kernel panic: stack is corrupted in __schedule 2 1 26d 26d 0/2 upstream: reported on 2025/06/18 02:33
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/06/10 16:31 4h07m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: __schedule+0x143d/0x40d0 kernel/sched/core.c:-1
CPU: 1 PID: 4471 Comm: syz-executor391 Not tainted 6.1.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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:page_ref_add_unless include/linux/page_ref.h:238 [inline]
RIP: 0010:folio_ref_add_unless include/linux/page_ref.h:247 [inline]
RIP: 0010:folio_ref_try_add_rcu include/linux/page_ref.h:280 [inline]
RIP: 0010:folio_try_get_rcu include/linux/page_ref.h:313 [inline]
RIP: 0010:filemap_get_read_batch+0x233/0xa60 mm/filemap.c:2451
Code: f3 0f 87 da 06 00 00 4c 89 ee 48 83 e6 02 0f 94 c3 31 ff e8 bf 30 d4 ff 49 81 fd fe 00 00 00 0f 93 c0 08 d8 0f 84 be 06 00 00 <49> 8d 5d 34 48 89 df be 04 00 00 00 e8 1c a7 25 00 48 89 d8 48 c1
RSP: 0018:ffffc90003fc6800 EFLAGS: 00000202
RAX: ffffffff81aca901 RBX: 0000000000000001 RCX: ffff888079abbb80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003fc6910 R08: ffff888079abbb80 R09: 0000000000000002
R10: 0000000000000406 R11: 0000000000000000 R12: ffffc90003fc6860
R13: ffffea0001b9d840 R14: 0000000000000000 R15: dffffc0000000000
 filemap_get_pages mm/filemap.c:2667 [inline]
 filemap_read+0x61a/0x2f80 mm/filemap.c:2759
 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:0x7fcd62489009
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 1d 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:00007fcd61c19168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fcd6252a6f8 RCX: 00007fcd62489009
RDX: 0000000000143042 RSI: 00002000000000c0 RDI: 00000000ffffff9c
RBP: 00007fcd6252a6f0 R08: 00007fcd61c196c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcd6252a6fc
R13: 000000000000006e R14: 00007ffd4fb26b80 R15: 00007ffd4fb26c68
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..
----------------
Code disassembly (best guess):
   0:	f3 0f 87 da 06 00 00 	repz ja 0x6e1
   7:	4c 89 ee             	mov    %r13,%rsi
   a:	48 83 e6 02          	and    $0x2,%rsi
   e:	0f 94 c3             	sete   %bl
  11:	31 ff                	xor    %edi,%edi
  13:	e8 bf 30 d4 ff       	call   0xffd430d7
  18:	49 81 fd fe 00 00 00 	cmp    $0xfe,%r13
  1f:	0f 93 c0             	setae  %al
  22:	08 d8                	or     %bl,%al
  24:	0f 84 be 06 00 00    	je     0x6e8
* 2a:	49 8d 5d 34          	lea    0x34(%r13),%rbx <-- trapping instruction
  2e:	48 89 df             	mov    %rbx,%rdi
  31:	be 04 00 00 00       	mov    $0x4,%esi
  36:	e8 1c a7 25 00       	call   0x25a757
  3b:	48 89 d8             	mov    %rbx,%rax
  3e:	48                   	rex.W
  3f:	c1                   	.byte 0xc1

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/24 17:00 linux-6.1.y 58485ff1a74f e2f27c35 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel panic: stack is corrupted in __schedule
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
2025/07/01 12:18 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in __schedule
2025/07/01 02:04 linux-6.1.y 7e69c33e4858 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel panic: stack is corrupted in __schedule
2025/07/01 01:58 linux-6.1.y 7e69c33e4858 6e83b42d .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.