syzbot


general protection fault in wg_destruct

Status: closed as invalid on 2024/12/17 17:57
Subsystems: wireguard
[Documentation on labels]
First crash: 92d, last: 92d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Read in wg_destruct wireguard 3 663d 664d 0/28 auto-obsoleted due to no activity on 2023/06/20 10:46

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xe01ffbf110170e7e: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: maybe wild-memory-access in range [0x00ffff8880b873f0-0x00ffff8880b873f7]
CPU: 1 UID: 0 PID: 5363 Comm: kworker/u8:15 Not tainted 6.12.0-rc3-syzkaller-00420-g715ca9dd687f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: netns cleanup_net
RIP: 0010:__lock_acquire+0xe1/0x3ce0 kernel/locking/lockdep.c:5065
Code: d0 7c 08 84 d2 0f 85 96 14 00 00 8b 0d d0 40 f5 0e 85 c9 0f 84 dd 0d 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 02 2d 00 00 49 8b 04 24 48 3d 20 57 79 93 0f 84
RSP: 0018:ffffc90003c1f6a0 EFLAGS: 00010017
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 001ffff110170e7e RSI: 1ffff92000783ee6 RDI: 00ffff8880b873f5
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff905f71cf R11: 0000000000000000 R12: 00ffff8880b873f5
R13: 00ffff8880b873f5 R14: 0000000000000000 R15: ffff888027475a00
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002001f000 CR3: 000000005deaa000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0x36/0x50 kernel/locking/spinlock.c:170
 put_pwq_unlocked kernel/workqueue.c:1662 [inline]
 put_pwq_unlocked kernel/workqueue.c:1655 [inline]
 destroy_workqueue+0x5dd/0xaa0 kernel/workqueue.c:5883
 wg_destruct+0x1f1/0x3d0 drivers/net/wireguard/device.c:255
 netdev_run_todo+0x763/0x12d0 net/core/dev.c:10809
 default_device_exit_batch+0x866/0xae0 net/core/dev.c:11949
 ops_exit_list+0x12b/0x180 net/core/net_namespace.c:178
 cleanup_net+0x5b7/0xb40 net/core/net_namespace.c:626
 process_one_work+0x9c8/0x1ba0 kernel/workqueue.c:3229
 process_scheduled_works kernel/workqueue.c:3310 [inline]
 worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
 kthread+0x2c4/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0xe1/0x3ce0 kernel/locking/lockdep.c:5065
Code: d0 7c 08 84 d2 0f 85 96 14 00 00 8b 0d d0 40 f5 0e 85 c9 0f 84 dd 0d 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 02 2d 00 00 49 8b 04 24 48 3d 20 57 79 93 0f 84
RSP: 0018:ffffc90003c1f6a0 EFLAGS: 00010017
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 001ffff110170e7e RSI: 1ffff92000783ee6 RDI: 00ffff8880b873f5
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff905f71cf R11: 0000000000000000 R12: 00ffff8880b873f5
R13: 00ffff8880b873f5 R14: 0000000000000000 R15: ffff888027475a00
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002001f000 CR3: 000000005deaa000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	d0 7c 08 84          	sarb   -0x7c(%rax,%rcx,1)
   4:	d2 0f                	rorb   %cl,(%rdi)
   6:	85 96 14 00 00 8b    	test   %edx,-0x74ffffec(%rsi)
   c:	0d d0 40 f5 0e       	or     $0xef540d0,%eax
  11:	85 c9                	test   %ecx,%ecx
  13:	0f 84 dd 0d 00 00    	je     0xdf6
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	4c 89 e2             	mov    %r12,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 02 2d 00 00    	jne    0x2d36
  34:	49 8b 04 24          	mov    (%r12),%rax
  38:	48 3d 20 57 79 93    	cmp    $0xffffffff93795720,%rax
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/20 12:03 upstream 715ca9dd687f cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in wg_destruct
* Struck through repros no longer work on HEAD.