general protection fault, probably for non-canonical address 0xdffffc000000013f: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x00000000000009f8-0x00000000000009ff] CPU: 0 PID: 49 Comm: kworker/u4:3 Not tainted 6.8.0-rc4-syzkaller-00189-g97dde8402633 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker RIP: 0010:__lock_acquire+0x69/0x1fd0 kernel/locking/lockdep.c:5005 Code: df 0f b6 04 30 84 c0 0f 85 4b 16 00 00 83 3d c9 71 14 0e 00 0f 84 1c 11 00 00 83 3d d0 c1 8e 0c 00 74 2c 4c 89 e0 48 c1 e8 03 <80> 3c 30 00 74 12 4c 89 e7 e8 39 6d 84 00 48 be 00 00 00 00 00 fc RSP: 0018:ffffc900000071f0 EFLAGS: 00010006 RAX: 000000000000013f RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 00000000000009f8 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 R10: dffffc0000000000 R11: fffffbfff1f0ab5e R12: 00000000000009f8 R13: 0000000000000001 R14: ffff8880157f0000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 000000001e9b2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:553 [inline] try_to_wake_up+0xaf/0x1470 kernel/sched/core.c:4253 rxrpc_wake_up_io_thread net/rxrpc/ar-internal.h:1072 [inline] rxrpc_encap_rcv+0x158/0x200 net/rxrpc/io_thread.c:50 udpv6_queue_rcv_one_skb+0x1663/0x1870 net/ipv6/udp.c:716 udp6_unicast_rcv_skb+0x230/0x370 net/ipv6/udp.c:921 ip6_protocol_deliver_rcu+0xb7c/0x1360 net/ipv6/ip6_input.c:438 ip6_input_finish+0x186/0x2d0 net/ipv6/ip6_input.c:483 NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314 NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314 __netif_receive_skb_one_core net/core/dev.c:5534 [inline] __netif_receive_skb+0x1ea/0x6a0 net/core/dev.c:5648 process_backlog+0x385/0x760 net/core/dev.c:5976 __napi_poll+0xcb/0x490 net/core/dev.c:6576 napi_poll net/core/dev.c:6645 [inline] net_rx_action+0x78b/0x1010 net/core/dev.c:6778 __do_softirq+0x2bb/0x942 kernel/softirq.c:553 do_softirq+0x11b/0x1e0 kernel/softirq.c:454 __local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:381 wg_socket_send_skb_to_peer+0x176/0x1d0 drivers/net/wireguard/socket.c:184 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline] wg_packet_handshake_send_worker+0x1dd/0x330 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x913/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__lock_acquire+0x69/0x1fd0 kernel/locking/lockdep.c:5005 Code: df 0f b6 04 30 84 c0 0f 85 4b 16 00 00 83 3d c9 71 14 0e 00 0f 84 1c 11 00 00 83 3d d0 c1 8e 0c 00 74 2c 4c 89 e0 48 c1 e8 03 <80> 3c 30 00 74 12 4c 89 e7 e8 39 6d 84 00 48 be 00 00 00 00 00 fc RSP: 0018:ffffc900000071f0 EFLAGS: 00010006 RAX: 000000000000013f RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 00000000000009f8 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 R10: dffffc0000000000 R11: fffffbfff1f0ab5e R12: 00000000000009f8 R13: 0000000000000001 R14: ffff8880157f0000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 000000001e9b2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: df 0f fisttps (%rdi) 2: b6 04 mov $0x4,%dh 4: 30 84 c0 0f 85 4b 16 xor %al,0x164b850f(%rax,%rax,8) b: 00 00 add %al,(%rax) d: 83 3d c9 71 14 0e 00 cmpl $0x0,0xe1471c9(%rip) # 0xe1471dd 14: 0f 84 1c 11 00 00 je 0x1136 1a: 83 3d d0 c1 8e 0c 00 cmpl $0x0,0xc8ec1d0(%rip) # 0xc8ec1f1 21: 74 2c je 0x4f 23: 4c 89 e0 mov %r12,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 30 00 cmpb $0x0,(%rax,%rsi,1) <-- trapping instruction 2e: 74 12 je 0x42 30: 4c 89 e7 mov %r12,%rdi 33: e8 39 6d 84 00 call 0x846d71 38: 48 rex.W 39: be 00 00 00 00 mov $0x0,%esi 3e: 00 fc add %bh,%ah