kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8111 Comm: syz-executor.0 Not tainted 4.19.198-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:xt_target_to_user+0x4f/0x200 net/netfilter/x_tables.c:328 Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 ae 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 4b 08 48 8d 79 2d 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 16 01 00 00 RSP: 0018:ffff8880a2fd7b80 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffff888000104f08 RCX: 0000000000000000 RDX: 0000000000000005 RSI: ffffffff86b5433b RDI: 000000000000002d RBP: 00007ffc21baeb20 R08: 0000000000000000 R09: 0000000000000070 R10: 0000000000000003 R11: 0000000000000000 R12: ffff888000104e98 R13: ffff888000104f10 R14: 00007ffc21baea18 R15: 0000000000000278 FS: 0000000001fa6400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000541198 CR3: 00000000a24a1000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: copy_entries_to_user net/ipv4/netfilter/ip_tables.c:863 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1027 [inline] do_ipt_get_ctl+0x75c/0x8e0 net/ipv4/netfilter/ip_tables.c:1705 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:122 ip_getsockopt net/ipv4/ip_sockglue.c:1574 [inline] ip_getsockopt+0x167/0x1c0 net/ipv4/ip_sockglue.c:1554 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:3629 __sys_getsockopt+0x135/0x210 net/socket.c:2048 __do_sys_getsockopt net/socket.c:2059 [inline] __se_sys_getsockopt net/socket.c:2056 [inline] __x64_sys_getsockopt+0xba/0x150 net/socket.c:2056 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x467bfa Code: 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc21bae968 EFLAGS: 00000216 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000467bfa RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007ffc21bae990 R08: 00007ffc21bae98c R09: 0079746972756365 R10: 00007ffc21bae9f0 R11: 0000000000000216 R12: 00007ffc21bae9f0 R13: 0000000000000003 R14: 00007ffc21bae98c R15: 0000000000546800 Modules linked in: ---[ end trace bfb57c6778093f0c ]--- RIP: 0010:xt_target_to_user+0x4f/0x200 net/netfilter/x_tables.c:328 Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 ae 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 4b 08 48 8d 79 2d 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 16 01 00 00 RSP: 0018:ffff8880a2fd7b80 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffff888000104f08 RCX: 0000000000000000 RDX: 0000000000000005 RSI: ffffffff86b5433b RDI: 000000000000002d RBP: 00007ffc21baeb20 R08: 0000000000000000 R09: 0000000000000070 R10: 0000000000000003 R11: 0000000000000000 R12: ffff888000104e98 R13: ffff888000104f10 R14: 00007ffc21baea18 R15: 0000000000000278 FS: 0000000001fa6400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000541198 CR3: 00000000a24a1000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400