syzbot


WARNING in geneve_udp_encap_recv

Status: upstream: reported on 2024/11/05 04:33
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+c28dd30bc14158282b3b@syzkaller.appspotmail.com
First crash: 20d, last: 7h57m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] WARNING in geneve_udp_encap_recv 0 (1) 2024/11/05 04:33

Sample crash report:
memcpy: detected field-spanning write (size 8) of single field "_Generic(info, const struct ip_tunnel_info * : ((const void *)((info) + 1)), struct ip_tunnel_info * : ((void *)((info) + 1)) )" at include/net/ip_tunnels.h:653 (size 0)
WARNING: CPU: 0 PID: 12 at include/net/ip_tunnels.h:653 ip_tunnel_info_opts_set include/net/ip_tunnels.h:653 [inline]
WARNING: CPU: 0 PID: 12 at include/net/ip_tunnels.h:653 geneve_rx drivers/net/geneve.c:244 [inline]
WARNING: CPU: 0 PID: 12 at include/net/ip_tunnels.h:653 geneve_udp_encap_recv+0x22cd/0x29a0 drivers/net/geneve.c:401
Modules linked in:
CPU: 0 UID: 0 PID: 12 Comm: kworker/u32:1 Not tainted 6.12.0-syzkaller-01892-g8f7c8b88bda4 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Workqueue: wg-kex-wg2 wg_packet_handshake_send_worker
RIP: 0010:ip_tunnel_info_opts_set include/net/ip_tunnels.h:653 [inline]
RIP: 0010:geneve_rx drivers/net/geneve.c:244 [inline]
RIP: 0010:geneve_udp_encap_recv+0x22cd/0x29a0 drivers/net/geneve.c:401
Code: 9e e9 ff ff e8 a4 17 51 fb c6 05 56 30 0c 0a 01 90 31 c9 48 c7 c2 e0 84 14 8c 4c 89 e6 48 c7 c7 c0 85 14 8c e8 54 e4 11 fb 90 <0f> 0b 90 90 e9 c7 ed ff ff e8 75 17 51 fb e8 70 ee c9 02 31 ff 41
RSP: 0018:ffffc900000077a0 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff888039563c32 RCX: ffffffff814e6a49
RDX: ffff88801daac880 RSI: ffffffff814e6a56 RDI: 0000000000000001
RBP: ffffc900000078b8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000006 R12: 0000000000000008
R13: ffff88803443ac00 R14: 0000000000000000 R15: ffff888054c203c0
FS:  0000000000000000(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 000000003592e000 CR4: 0000000000352ef0
Call Trace:
 <IRQ>
 udp_queue_rcv_one_skb+0xad5/0x18c0 net/ipv4/udp.c:2135
 udp_queue_rcv_skb+0x198/0xd10 net/ipv4/udp.c:2213
 udp_unicast_rcv_skb+0x165/0x3b0 net/ipv4/udp.c:2373
 __udp4_lib_rcv+0x25fd/0x34e0 net/ipv4/udp.c:2449
 ip_protocol_deliver_rcu+0x2ff/0x4c0 net/ipv4/ip_input.c:205
 ip_local_deliver_finish+0x316/0x570 net/ipv4/ip_input.c:233
 NF_HOOK include/linux/netfilter.h:314 [inline]
 NF_HOOK include/linux/netfilter.h:308 [inline]
 ip_local_deliver+0x18e/0x1f0 net/ipv4/ip_input.c:254
 dst_input include/net/dst.h:460 [inline]
 ip_rcv_finish net/ipv4/ip_input.c:449 [inline]
 NF_HOOK include/linux/netfilter.h:314 [inline]
 NF_HOOK include/linux/netfilter.h:308 [inline]
 ip_rcv+0x2c3/0x5d0 net/ipv4/ip_input.c:569
 __netif_receive_skb_one_core+0x199/0x1e0 net/core/dev.c:5670
 __netif_receive_skb+0x1d/0x160 net/core/dev.c:5783
 process_backlog+0x443/0x15f0 net/core/dev.c:6115
 __napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:6779
 napi_poll net/core/dev.c:6848 [inline]
 net_rx_action+0xa92/0x1010 net/core/dev.c:6970
 handle_softirqs+0x213/0x8f0 kernel/softirq.c:554
 do_softirq kernel/softirq.c:455 [inline]
 do_softirq+0xb2/0xf0 kernel/softirq.c:442
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x100/0x120 kernel/softirq.c:382
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 wg_index_hashtable_insert+0x109/0xa10 drivers/net/wireguard/peerlookup.c:126
 wg_noise_handshake_create_initiation+0x4a1/0x650 drivers/net/wireguard/noise.c:569
 wg_packet_send_handshake_initiation+0x19c/0x360 drivers/net/wireguard/send.c:34
 wg_packet_handshake_send_worker+0x1c/0x30 drivers/net/wireguard/send.c:51
 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
 process_scheduled_works kernel/workqueue.c:3310 [inline]
 worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/20 22:43 upstream 8f7c8b88bda4 4fca1650 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in geneve_udp_encap_recv
2024/11/01 04:23 upstream 90602c251cda 96eb609f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in geneve_udp_encap_recv
* Struck through repros no longer work on HEAD.