bpfilter: read fail -512 IPVS: ip_vs_svc_hash(): request for already hashed, called from do_ip_vs_set_ctl+0x1b3a/0x1d80 net/netfilter/ipvs/ip_vs_ctl.c:2429 kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN CPU: 1 PID: 4583 Comm: syz-executor5 Not tainted 4.17.0+ #92 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:file_write_hint include/linux/fs.h:1934 [inline] RIP: 0010:init_sync_kiocb include/linux/fs.h:1953 [inline] RIP: 0010:new_sync_write fs/read_write.c:470 [inline] RIP: 0010:__vfs_write+0x49f/0x9d0 fs/read_write.c:487 Code: 48 c1 ea 03 80 3c 02 00 0f 85 17 05 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 6b 20 49 8d bd c8 00 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 59 03 00 00 45 8b ad c8 00 00 RSP: 0018:ffff880182a9f850 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8801cd85b040 RCX: ffffffff81c0dc3a RDX: 0000000000000019 RSI: ffffffff81c0dc44 RDI: 00000000000000c8 RBP: ffff880182a9f9c8 R08: ffff880182a903c0 R09: fffffbfff130c749 R10: ffff880182a9fa10 R11: ffffffff89863a4b R12: ffff880182a9f9a0 R13: 0000000000000000 R14: 0000000000000000 R15: ffff880182a9fa88 FS: 0000000001494940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f48bd661000 CR3: 0000000182a77000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __kernel_write+0x10c/0x380 fs/read_write.c:506 __bpfilter_process_sockopt+0x1d8/0x35b net/bpfilter/bpfilter_kern.c:66 bpfilter_mbox_request+0x4d/0xb0 net/ipv4/bpfilter/sockopt.c:25 bpfilter_ip_get_sockopt+0x6b/0x90 net/ipv4/bpfilter/sockopt.c:42 ip_getsockopt+0x238/0x2a0 net/ipv4/ip_sockglue.c:1563 tcp_getsockopt+0x93/0xe0 net/ipv4/tcp.c:3532 sock_common_getsockopt+0x9a/0xe0 net/core/sock.c:3012 __sys_getsockopt+0x1a5/0x370 net/socket.c:1972 __do_sys_getsockopt net/socket.c:1983 [inline] __se_sys_getsockopt net/socket.c:1980 [inline] __x64_sys_getsockopt+0xbe/0x150 net/socket.c:1980 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4584ea Code: b8 34 01 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 1d 8f fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 fa 8e fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007ffe50861b08 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007ffe50861b30 RCX: 00000000004584ea RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 0000000000706f20 R08: 00007ffe50861b2c R09: 0000000000004000 R10: 00007ffe50861b30 R11: 0000000000000246 R12: 0000000000000013 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000705420 Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) ---[ end trace 1698741c3daaae16 ]--- RIP: 0010:file_write_hint include/linux/fs.h:1934 [inline] RIP: 0010:init_sync_kiocb include/linux/fs.h:1953 [inline] RIP: 0010:new_sync_write fs/read_write.c:470 [inline] RIP: 0010:__vfs_write+0x49f/0x9d0 fs/read_write.c:487 Code: 48 c1 ea 03 80 3c 02 00 0f 85 17 05 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 6b 20 49 8d bd c8 00 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 59 03 00 00 45 8b ad c8 00 00 RSP: 0018:ffff880182a9f850 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8801cd85b040 RCX: ffffffff81c0dc3a RDX: 0000000000000019 RSI: ffffffff81c0dc44 RDI: 00000000000000c8 RBP: ffff880182a9f9c8 R08: ffff880182a903c0 R09: fffffbfff130c749 IPVS: ip_vs_svc_hash(): request for already hashed, called from do_ip_vs_set_ctl+0x1b3a/0x1d80 net/netfilter/ipvs/ip_vs_ctl.c:2429 R10: ffff880182a9fa10 R11: ffffffff89863a4b R12: ffff880182a9f9a0 R13: 0000000000000000 R14: 0000000000000000 R15: ffff880182a9fa88 FS: 0000000001494940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f48bd661000 CR3: 0000000182a77000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400