bpfilter: read fail -512 kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN CPU: 0 PID: 4594 Comm: syz-executor1 Not tainted 4.17.0+ #83 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:touch_atime+0xaf/0x310 fs/inode.c:1710 Code: 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 21 02 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 6c 24 08 49 8d 7d 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 f3 01 00 00 4d 8b 6d 58 4c 89 e7 31 d2 4c 89 ee kernel msg: ebtables bug: please report to author: Wrong len argument RSP: 0018:ffff880198f576c0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 1ffff100331eaeda RCX: ffffffff81c346f5 RDX: 000000000000000b RSI: ffffffff81c947df RDI: 0000000000000058 RBP: ffff880198f57758 R08: ffff880198f48680 R09: ffffed0039b53668 R10: ffffed0039b53668 R11: ffff8801cda9b347 R12: ffff8801cda9e290 R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000 FS: 00000000018d0940(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000701138 CR3: 0000000198e33000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: file_accessed include/linux/fs.h:2070 [inline] pipe_read+0x7c5/0x940 fs/pipe.c:343 call_read_iter include/linux/fs.h:1785 [inline] new_sync_read fs/read_write.c:406 [inline] __vfs_read+0x696/0xa50 fs/read_write.c:418 vfs_read+0x17f/0x3d0 fs/read_write.c:452 kernel_read+0xab/0x120 fs/read_write.c:431 __bpfilter_process_sockopt+0x238/0x35b net/bpfilter/bpfilter_kern.c:74 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:0000000000a3e328 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000a3e350 RCX: 00000000004584ea RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 0000000000706f20 R08: 0000000000a3e34c R09: 0000000000004000 R10: 0000000000a3e350 R11: 0000000000000246 R12: 0000000000000013 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000704d60 Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) ---[ end trace d412ccd36e1523fa ]--- RIP: 0010:touch_atime+0xaf/0x310 fs/inode.c:1710 Code: 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 21 02 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 6c 24 08 49 8d 7d 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 f3 01 00 00 4d 8b 6d 58 4c 89 e7 31 d2 4c 89 ee RSP: 0018:ffff880198f576c0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 1ffff100331eaeda RCX: ffffffff81c346f5 RDX: 000000000000000b RSI: ffffffff81c947df RDI: 0000000000000058 RBP: ffff880198f57758 R08: ffff880198f48680 R09: ffffed0039b53668 R10: ffffed0039b53668 R11: ffff8801cda9b347 R12: ffff8801cda9e290 R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000 FS: 00000000018d0940(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000701138 CR3: 0000000198e33000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400