Oops: general protection fault, probably for non-canonical address 0xdffffc0000000021: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000108-0x000000000000010f] CPU: 2 UID: 0 PID: 61 Comm: kworker/2:1 Not tainted 6.15.0-syzkaller-10820-gcd2e103d57e5 #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-wg1 wg_packet_tx_worker RIP: 0010:read_pnet include/net/net_namespace.h:409 [inline] RIP: 0010:dev_net include/linux/netdevice.h:2713 [inline] RIP: 0010:confirm_addr_indev+0x5c/0x8c0 net/ipv4/devinet.c:1439 Code: 80 3c 02 00 0f 85 58 08 00 00 48 8b 2b e8 ec 48 83 01 48 b8 00 00 00 00 00 fc ff df 48 8d bd 08 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 1a 08 00 00 48 8b ad 08 01 00 00 48 b8 00 00 00 RSP: 0018:ffffc90000cf7a10 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff88805cefac00 RCX: 00000000000000fe RDX: 0000000000000021 RSI: ffffffff89fa18d1 RDI: 0000000000000108 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: dffffc0000000000 R13: 000000000100007f R14: 0000000000000001 R15: 00000000000000fe FS: 0000000000000000(0000) GS:ffff8880d6965000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000025d1b000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 00000000000032e7 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: inet_confirm_addr net/ipv4/devinet.c:1496 [inline] inet_confirm_addr+0x117/0x3a0 net/ipv4/devinet.c:1483 send4+0x4fb/0x1070 drivers/net/wireguard/socket.c:53 wg_socket_send_skb_to_peer+0x18f/0x210 drivers/net/wireguard/socket.c:175 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline] wg_packet_tx_worker+0x1aa/0x810 drivers/net/wireguard/send.c:276 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:read_pnet include/net/net_namespace.h:409 [inline] RIP: 0010:dev_net include/linux/netdevice.h:2713 [inline] RIP: 0010:confirm_addr_indev+0x5c/0x8c0 net/ipv4/devinet.c:1439 Code: 80 3c 02 00 0f 85 58 08 00 00 48 8b 2b e8 ec 48 83 01 48 b8 00 00 00 00 00 fc ff df 48 8d bd 08 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 1a 08 00 00 48 8b ad 08 01 00 00 48 b8 00 00 00 RSP: 0018:ffffc90000cf7a10 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff88805cefac00 RCX: 00000000000000fe RDX: 0000000000000021 RSI: ffffffff89fa18d1 RDI: 0000000000000108 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: dffffc0000000000 R13: 000000000100007f R14: 0000000000000001 R15: 00000000000000fe FS: 0000000000000000(0000) GS:ffff8880d6965000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000025d1b000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 00000000000032e7 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 4: 0f 85 58 08 00 00 jne 0x862 a: 48 8b 2b mov (%rbx),%rbp d: e8 ec 48 83 01 call 0x18348fe 12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 19: fc ff df 1c: 48 8d bd 08 01 00 00 lea 0x108(%rbp),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 1a 08 00 00 jne 0x84e 34: 48 8b ad 08 01 00 00 mov 0x108(%rbp),%rbp 3b: 48 rex.W 3c: b8 .byte 0xb8 3d: 00 00 add %al,(%rax)