syzbot


general protection fault in process_scheduled_works

Status: upstream: reported C repro on 2025/07/02 00:12
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+3c24817080a2820ccb83@syzkaller.appspotmail.com
First crash: 49d, last: 14d
Bug presence (1)
Date Name Commit Repro Result
2025/07/07 upstream (ToT) d7b8f8e20813 C [report] WARNING in usb_free_urb
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-use-after-free Read in process_scheduled_works kernel 19 8 12d 267d 0/29 upstream: reported on 2024/11/26 00:01

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 5859 Comm: kworker/0:4 Not tainted 6.6.95-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue:  do_submit_urb (events)
RIP: 0010:process_one_work kernel/workqueue.c:2575 [inline]
RIP: 0010:process_scheduled_works+0x5aa/0x15b0 kernel/workqueue.c:2711
Code: 89 ac 24 10 01 00 00 44 89 e8 c1 e8 05 83 e0 0f 89 03 48 8b 44 24 38 48 8d 58 08 48 89 d8 48 c1 e8 03 48 89 84 24 80 00 00 00 <42> 80 3c 20 00 74 08 48 89 df e8 27 95 86 00 48 89 5c 24 48 4c 8b
RSP: 0018:ffffc90003307bc0 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 0000000000000008 RCX: 0000001fffffffc0
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 00000000ffffffff
RBP: ffffc90003307da8 R08: ffffffff97149f73 R09: 1ffffffff2e293ee
R10: dffffc0000000000 R11: fffffbfff2e293ef R12: dffffc0000000000
R13: 0000001fffffffc0 R14: ffff888072668570 R15: ffff888025a07f18
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1b4e5c30a0 CR3: 000000002e4e5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:process_one_work kernel/workqueue.c:2575 [inline]
RIP: 0010:process_scheduled_works+0x5aa/0x15b0 kernel/workqueue.c:2711
Code: 89 ac 24 10 01 00 00 44 89 e8 c1 e8 05 83 e0 0f 89 03 48 8b 44 24 38 48 8d 58 08 48 89 d8 48 c1 e8 03 48 89 84 24 80 00 00 00 <42> 80 3c 20 00 74 08 48 89 df e8 27 95 86 00 48 89 5c 24 48 4c 8b
RSP: 0018:ffffc90003307bc0 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 0000000000000008 RCX: 0000001fffffffc0
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 00000000ffffffff
RBP: ffffc90003307da8 R08: ffffffff97149f73 R09: 1ffffffff2e293ee
R10: dffffc0000000000 R11: fffffbfff2e293ef R12: dffffc0000000000
R13: 0000001fffffffc0 R14: ffff888072668570 R15: ffff888025a07f18
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1b4e5c30a0 CR3: 000000002e4e5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 ac 24 10 01 00 00 	mov    %ebp,0x110(%rsp)
   7:	44 89 e8             	mov    %r13d,%eax
   a:	c1 e8 05             	shr    $0x5,%eax
   d:	83 e0 0f             	and    $0xf,%eax
  10:	89 03                	mov    %eax,(%rbx)
  12:	48 8b 44 24 38       	mov    0x38(%rsp),%rax
  17:	48 8d 58 08          	lea    0x8(%rax),%rbx
  1b:	48 89 d8             	mov    %rbx,%rax
  1e:	48 c1 e8 03          	shr    $0x3,%rax
  22:	48 89 84 24 80 00 00 	mov    %rax,0x80(%rsp)
  29:	00
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 27 95 86 00       	call   0x869560
  39:	48 89 5c 24 48       	mov    %rbx,0x48(%rsp)
  3e:	4c                   	rex.WR
  3f:	8b                   	.byte 0x8b

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/05 22:08 linux-6.6.y 3f5b4c104b7d 4f67c4ae .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
2025/08/06 13:42 linux-6.6.y 3a8ababb8b6a ffe1dd46 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
2025/08/01 09:53 linux-6.6.y 3a8ababb8b6a 0c075d67 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
2025/07/18 04:49 linux-6.6.y d96eb99e2f0e 88248e14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
2025/07/17 13:43 linux-6.6.y 9247f4e6573a 0d1223f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
2025/07/09 08:24 linux-6.6.y a5df3a702b2c f4e5e155 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
2025/07/08 15:00 linux-6.6.y a5df3a702b2c 4d9fdfa4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
2025/07/05 07:02 linux-6.6.y 3f5b4c104b7d 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
2025/07/03 04:11 linux-6.6.y 3f5b4c104b7d 115ceea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
2025/07/02 00:21 linux-6.6.y 3f5b4c104b7d 091a06cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
2025/07/02 00:12 linux-6.6.y 3f5b4c104b7d 091a06cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in process_scheduled_works
* Struck through repros no longer work on HEAD.