multiple allocations for the same socket ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5309 at net/core/sock_reuseport.c:41 reuseport_alloc+0x306/0x3b0 net/core/sock_reuseport.c:39 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 5309 Comm: syz-executor6 Not tainted 4.14.0-rc5-mm1+ #20 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 panic+0x1e4/0x41c kernel/panic.c:183 __warn+0x1c4/0x1e0 kernel/panic.c:546 report_bug+0x211/0x2d0 lib/bug.c:183 fixup_bug+0x40/0x90 arch/x86/kernel/traps.c:177 do_trap_no_signal arch/x86/kernel/traps.c:211 [inline] do_trap+0x260/0x390 arch/x86/kernel/traps.c:260 do_error_trap+0x120/0x390 arch/x86/kernel/traps.c:297 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:310 invalid_op+0x18/0x20 arch/x86/entry/entry_64.S:905 RIP: 0010:reuseport_alloc+0x306/0x3b0 net/core/sock_reuseport.c:39 RSP: 0018:ffff8801c8dcfa40 EFLAGS: 00010282 RAX: 0000000000000028 RBX: ffff8801ccbd2000 RCX: 0000000000000000 RDX: 0000000000000028 RSI: ffffc90002c5f000 RDI: ffffed00391b9f3c RBP: ffff8801c8dcfb10 R08: 0000000000000001 R09: 0000000000000000 R10: ffff8801c8dcf8f8 R11: 0000000000000000 R12: 1ffff100391b9f49 R13: ffff8801ccbd2000 R14: ffff8801c8dcfae8 R15: ffff8801ccbd2438 __reuseport_attach_prog+0x208/0x280 net/core/filter.c:1251 sk_reuseport_attach_filter+0x38/0x80 net/core/filter.c:1339 sock_setsockopt+0x164d/0x1ad0 net/core/sock.c:952 SYSC_setsockopt net/socket.c:1847 [inline] SyS_setsockopt+0x2ff/0x360 net/socket.c:1830 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x452879 RSP: 002b:00007f32b26afbe8 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452879 RDX: 0000000000000033 RSI: 0000000000000001 RDI: 0000000000000018 RBP: 0000000000000082 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020e9bff0 R11: 0000000000000212 R12: 00000000006f3560 R13: 00000000ffffffff R14: 00007f32b26b06d4 R15: 0000000000000000 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..