general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 PID: 425 Comm: kworker/0:3 Not tainted 6.1.0-syzkaller-00167-g830b3c68c1fb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: wg-crypt-wg1 wg_packet_tx_worker RIP: 0010:em_cmp_match+0x4e/0x5f0 net/sched/em_cmp.c:25 Code: 61 fd 48 83 c3 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 90 2e a8 fd 4c 8b 33 49 8d 5e 0a 48 89 d8 48 c1 e8 03 <42> 8a 04 38 84 c0 0f 85 0f 04 00 00 0f b7 1b 48 89 5d d0 c1 eb 08 RSP: 0018:ffffc90002b4efd8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 000000000000000a RCX: ffff888111354300 RDX: 0000000000000000 RSI: ffff8881179e6180 RDI: ffff88811c1cda00 RBP: ffffc90002b4f010 R08: ffffffff8412cc95 R09: ffffc90002b4f0a0 R10: fffff52000569e24 R11: 1ffff92000569e14 R12: ffffffff86b3c190 R13: ffff88811c1cda00 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc1d558af8 CR3: 0000000122a09000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tcf_em_match net/sched/ematch.c:492 [inline] __tcf_em_tree_match+0x194/0x720 net/sched/ematch.c:518 tcf_em_tree_match include/net/pkt_cls.h:502 [inline] basic_classify+0xd8/0x250 net/sched/cls_basic.c:48 __tcf_classify net/sched/cls_api.c:1567 [inline] tcf_classify+0x191/0x480 net/sched/cls_api.c:1607 prio_classify net/sched/sch_prio.c:42 [inline] prio_enqueue+0x1d3/0x6a0 net/sched/sch_prio.c:75 dev_qdisc_enqueue net/core/dev.c:3785 [inline] __dev_xmit_skb+0x361/0x1460 net/core/dev.c:3874 __dev_queue_xmit+0x9f1/0x2210 net/core/dev.c:4222 dev_queue_xmit include/linux/netdevice.h:3008 [inline] neigh_hh_output include/net/neighbour.h:530 [inline] neigh_output include/net/neighbour.h:544 [inline] ip_finish_output2+0xbe7/0xf80 net/ipv4/ip_output.c:228 __ip_finish_output+0x163/0x370 ip_finish_output+0x280/0x2a0 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip_output+0x1e9/0x410 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:445 [inline] ip_local_out+0x92/0xb0 net/ipv4/ip_output.c:126 iptunnel_xmit+0x4d2/0x8b0 net/ipv4/ip_tunnel_core.c:82 udp_tunnel_xmit_skb+0x1b6/0x2c0 net/ipv4/udp_tunnel_core.c:172 send4+0x7b3/0xd20 drivers/net/wireguard/socket.c:85 wg_socket_send_skb_to_peer+0xd5/0x1d0 drivers/net/wireguard/socket.c:175 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline] wg_packet_tx_worker+0x202/0x560 drivers/net/wireguard/send.c:276 process_one_work+0x6cb/0xc00 kernel/workqueue.c:2289 worker_thread+0xb3c/0x1390 kernel/workqueue.c:2436 kthread+0x26b/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:em_cmp_match+0x4e/0x5f0 net/sched/em_cmp.c:25 Code: 61 fd 48 83 c3 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 90 2e a8 fd 4c 8b 33 49 8d 5e 0a 48 89 d8 48 c1 e8 03 <42> 8a 04 38 84 c0 0f 85 0f 04 00 00 0f b7 1b 48 89 5d d0 c1 eb 08 RSP: 0018:ffffc90002b4efd8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 000000000000000a RCX: ffff888111354300 RDX: 0000000000000000 RSI: ffff8881179e6180 RDI: ffff88811c1cda00 RBP: ffffc90002b4f010 R08: ffffffff8412cc95 R09: ffffc90002b4f0a0 R10: fffff52000569e24 R11: 1ffff92000569e14 R12: ffffffff86b3c190 R13: ffff88811c1cda00 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc1d558af8 CR3: 0000000122a09000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: fd std 1: 48 83 c3 08 add $0x8,%rbx 5: 48 89 d8 mov %rbx,%rax 8: 48 c1 e8 03 shr $0x3,%rax c: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 11: 74 08 je 0x1b 13: 48 89 df mov %rbx,%rdi 16: e8 90 2e a8 fd callq 0xfda82eab 1b: 4c 8b 33 mov (%rbx),%r14 1e: 49 8d 5e 0a lea 0xa(%r14),%rbx 22: 48 89 d8 mov %rbx,%rax 25: 48 c1 e8 03 shr $0x3,%rax * 29: 42 8a 04 38 mov (%rax,%r15,1),%al <-- trapping instruction 2d: 84 c0 test %al,%al 2f: 0f 85 0f 04 00 00 jne 0x444 35: 0f b7 1b movzwl (%rbx),%ebx 38: 48 89 5d d0 mov %rbx,-0x30(%rbp) 3c: c1 eb 08 shr $0x8,%ebx