syzbot


general protection fault in delayed_work_timer_fn (2)

Status: premoderation: reported on 2025/08/13 17:43
Reported-by: syzbot+01bad8f2dbe256a95492@syzkaller.appspotmail.com
First crash: 15d, last: 14d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 general protection fault in delayed_work_timer_fn 2 2 127d 192d 0/2 auto-obsoleted due to no activity on 2025/07/22 08:41
android-5-15 KASAN: use-after-free Read in delayed_work_timer_fn 19 1 518d 518d 0/2 auto-obsoleted due to no activity on 2024/06/26 06:44

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 1852 Comm: syz.5.349 Not tainted 6.1.145-syzkaller-00002-gc750dc582629 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__queue_work+0x575/0xd30 kernel/workqueue.c:-1
Code: 39 2b 0f 84 b9 00 00 00 e8 28 d7 28 00 4c 89 ff e8 50 60 ac 03 49 bc 00 00 00 00 00 fc ff df 4c 8b 6d d0 4c 89 e8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ef e8 4c 3a 6d 00 49 8b 7d 00 e8 33 5c
RSP: 0018:ffffc900001b0c70 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 000000007fffffff RCX: ffff888119313cc0
RDX: 0000000000000100 RSI: 000000007fffffff RDI: 000000007fffffff
RBP: ffffc900001b0d08 R08: fffffffffffffffb R09: 0000000000000007
R10: ffffed1024211939 R11: 1ffff11024211939 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88812108c9c8 R15: 0000000000000008
FS:  00007f30c03456c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2f5084 CR3: 0000000113909000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 delayed_work_timer_fn+0x61/0x80 kernel/workqueue.c:1653
 call_timer_fn+0x46/0x2a0 kernel/time/timer.c:1510
 expire_timers kernel/time/timer.c:1550 [inline]
 __run_timers+0x667/0x9a0 kernel/time/timer.c:1826
 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1839
 handle_softirqs+0x1d7/0x600 kernel/softirq.c:642
 __do_softirq kernel/softirq.c:680 [inline]
 invoke_softirq kernel/softirq.c:497 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:clear_page_erms+0x7/0x10 arch/x86/lib/clear_page_64.S:50
Code: 48 89 47 18 48 89 47 20 48 89 47 28 48 89 47 30 48 89 47 38 48 8d 7f 40 75 d9 90 c3 90 90 90 90 90 90 90 b9 00 10 00 00 31 c0 <f3> aa c3 90 90 90 90 90 90 89 c8 48 c1 e9 03 74 18 0f 1f 84 00 00
RSP: 0018:ffffc9000f6a7880 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000100 RCX: 0000000000000240
RDX: ffff88813c104000 RSI: 00000000000000fc RDI: ffff88813c104dc0
RBP: ffffc9000f6a78c0 R08: dffffc0000000000 R09: ffffed1027820000
R10: fffff940009e0807 R11: 1ffffd40009e0806 R12: ffffea0004f04034
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000008
 prep_new_page+0x1c/0x110 mm/page_alloc.c:2644
 get_page_from_freelist+0x2c7b/0x2cf0 mm/page_alloc.c:4544
 __alloc_pages+0x1c3/0x450 mm/page_alloc.c:5858
 __alloc_pages_node include/linux/gfp.h:236 [inline]
 alloc_pages_node include/linux/gfp.h:259 [inline]
 alloc_pages include/linux/gfp.h:270 [inline]
 io_mem_alloc_compound io_uring/io_uring.c:2547 [inline]
 io_pages_map+0xd1/0x5e0 io_uring/io_uring.c:2591
 io_allocate_scq_urings+0xf3/0x45a io_uring/io_uring.c:3530
 io_uring_create+0x5bd/0xde3 io_uring/io_uring.c:3690
 io_uring_setup io_uring/io_uring.c:3788 [inline]
 __do_sys_io_uring_setup io_uring/io_uring.c:3794 [inline]
 __se_sys_io_uring_setup io_uring/io_uring.c:3791 [inline]
 __x64_sys_io_uring_setup+0x1be/0x1d0 io_uring/io_uring.c:3791
 x64_sys_call+0x4ab/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:426
 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:0x7f30bf58ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f30c0344fc8 EFLAGS: 00000202 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 00007f30bf7b6090 RCX: 00007f30bf58ebe9
RDX: 0000000000000000 RSI: 0000200000000100 RDI: 0000000000003665
RBP: 0000200000000100 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000003665 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__queue_work+0x575/0xd30 kernel/workqueue.c:-1
Code: 39 2b 0f 84 b9 00 00 00 e8 28 d7 28 00 4c 89 ff e8 50 60 ac 03 49 bc 00 00 00 00 00 fc ff df 4c 8b 6d d0 4c 89 e8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ef e8 4c 3a 6d 00 49 8b 7d 00 e8 33 5c
RSP: 0018:ffffc900001b0c70 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 000000007fffffff RCX: ffff888119313cc0
RDX: 0000000000000100 RSI: 000000007fffffff RDI: 000000007fffffff
RBP: ffffc900001b0d08 R08: fffffffffffffffb R09: 0000000000000007
R10: ffffed1024211939 R11: 1ffff11024211939 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88812108c9c8 R15: 0000000000000008
FS:  00007f30c03456c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2f5084 CR3: 0000000113909000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	39 2b                	cmp    %ebp,(%rbx)
   2:	0f 84 b9 00 00 00    	je     0xc1
   8:	e8 28 d7 28 00       	call   0x28d735
   d:	4c 89 ff             	mov    %r15,%rdi
  10:	e8 50 60 ac 03       	call   0x3ac6065
  15:	49 bc 00 00 00 00 00 	movabs $0xdffffc0000000000,%r12
  1c:	fc ff df
  1f:	4c 8b 6d d0          	mov    -0x30(%rbp),%r13
  23:	4c 89 e8             	mov    %r13,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ef             	mov    %r13,%rdi
  34:	e8 4c 3a 6d 00       	call   0x6d3a85
  39:	49 8b 7d 00          	mov    0x0(%r13),%rdi
  3d:	e8                   	.byte 0xe8
  3e:	33                   	.byte 0x33
  3f:	5c                   	pop    %rsp

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/14 08:51 android14-6.1 c750dc582629 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in delayed_work_timer_fn
2025/08/13 17:42 android14-6.1 c750dc582629 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in delayed_work_timer_fn
* Struck through repros no longer work on HEAD.