syzbot


general protection fault in wg_packet_encrypt_worker

Status: moderation: reported on 2025/12/24 23:23
Subsystems: wireguard
[Documentation on labels]
Reported-by: syzbot+2ae5ebeb006e0ecd4d9e@syzkaller.appspotmail.com
First crash: 22d, last: 22d

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc001fffffff: 0000 [#1] SMP KASAN NOPTI
KASAN: probably user-memory-access in range [0x00000000fffffff8-0x00000000ffffffff]
CPU: 1 UID: 0 PID: 53 Comm: kworker/1:1 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Workqueue: wg-crypt-wg2 wg_packet_encrypt_worker
RIP: 0010:wg_packet_encrypt_worker+0x242/0xbc0 drivers/net/wireguard/send.c:296
Code: 14 66 fb 39 dd 0f 8e 1c 07 00 00 e8 88 1a 66 fb 41 89 9f 80 00 00 00 48 8b 7c 24 40 e8 d7 07 20 05 48 8b 44 24 08 48 c1 e8 03 <42> 80 3c 30 00 0f 85 bb 08 00 00 48 8b 44 24 08 4c 89 7c 24 38 48
RSP: 0018:ffffc9000074fad8 EFLAGS: 00010207
RAX: 000000001fffffff RBX: 0000000000000003 RCX: 0000000000000006
RDX: 0000000000000000 RSI: ffffffff8daca488 RDI: ffffffff8bf2b500
RBP: 0000000000000400 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff9088e6d7 R11: ffff88801fd40b30 R12: ffff888024e8c000
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88804b890dc0
FS:  0000000000000000(0000) GS:ffff8880977fc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fca03689e9c CR3: 0000000070fc7000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 process_one_work+0x9ba/0x1b20 kernel/workqueue.c:3257
 process_scheduled_works kernel/workqueue.c:3340 [inline]
 worker_thread+0x6c8/0xf10 kernel/workqueue.c:3421
 kthread+0x3c5/0x780 kernel/kthread.c:463
 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:wg_packet_encrypt_worker+0x242/0xbc0 drivers/net/wireguard/send.c:296
Code: 14 66 fb 39 dd 0f 8e 1c 07 00 00 e8 88 1a 66 fb 41 89 9f 80 00 00 00 48 8b 7c 24 40 e8 d7 07 20 05 48 8b 44 24 08 48 c1 e8 03 <42> 80 3c 30 00 0f 85 bb 08 00 00 48 8b 44 24 08 4c 89 7c 24 38 48
RSP: 0018:ffffc9000074fad8 EFLAGS: 00010207
RAX: 000000001fffffff RBX: 0000000000000003 RCX: 0000000000000006
RDX: 0000000000000000 RSI: ffffffff8daca488 RDI: ffffffff8bf2b500
RBP: 0000000000000400 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff9088e6d7 R11: ffff88801fd40b30 R12: ffff888024e8c000
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88804b890dc0
FS:  0000000000000000(0000) GS:ffff8880977fc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557a0bcf339e CR3: 0000000054085000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
   0:	14 66                	adc    $0x66,%al
   2:	fb                   	sti
   3:	39 dd                	cmp    %ebx,%ebp
   5:	0f 8e 1c 07 00 00    	jle    0x727
   b:	e8 88 1a 66 fb       	call   0xfb661a98
  10:	41 89 9f 80 00 00 00 	mov    %ebx,0x80(%r15)
  17:	48 8b 7c 24 40       	mov    0x40(%rsp),%rdi
  1c:	e8 d7 07 20 05       	call   0x52007f8
  21:	48 8b 44 24 08       	mov    0x8(%rsp),%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	0f 85 bb 08 00 00    	jne    0x8f0
  35:	48 8b 44 24 08       	mov    0x8(%rsp),%rax
  3a:	4c 89 7c 24 38       	mov    %r15,0x38(%rsp)
  3f:	48                   	rex.W

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/20 23:16 upstream d8ba32c5a460 d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in wg_packet_encrypt_worker
* Struck through repros no longer work on HEAD.