kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 26449 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:tcp_cleanup_ulp+0xb4/0x130 net/ipv4/tcp_ulp.c:131 Code: 3c 02 00 0f 85 85 00 00 00 48 8b ab c0 06 00 00 e8 a1 96 81 fa 48 8d 7d 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 4d 48 8b 7d 38 e8 cd 33 78 fa 4c 89 ea 48 b8 00 00 RSP: 0018:ffff88809b53f678 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8880540ce640 RCX: 1ffff1101685554b RDX: 0000000000000007 RSI: ffffffff86e0eecf RDI: 0000000000000038 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000002 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8174af10 R13: ffff8880540ced00 R14: ffff8880540ce668 R15: ffff8880a928cbc0 FS: 00007fc8bba57700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa9f41d6718 CR3: 00000000af0c9000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tcp_v4_destroy_sock+0xf9/0x770 net/ipv4/tcp_ipv4.c:1986 inet_csk_destroy_sock+0x189/0x400 net/ipv4/inet_connection_sock.c:875 tcp_done+0x24a/0x2a0 net/ipv4/tcp.c:3799 tcp_rcv_state_process+0x23c2/0x4c50 net/ipv4/tcp_input.c:6225 tcp_v4_do_rcv+0x31f/0x870 net/ipv4/tcp_ipv4.c:1569 sk_backlog_rcv include/net/sock.h:952 [inline] __release_sock+0x134/0x3a0 net/core/sock.c:2362 tcp_close+0x5c5/0xfd0 net/ipv4/tcp.c:2436 bpf_tcp_close+0x177/0x390 kernel/bpf/sockmap.c:406 inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427 __sock_release+0xcd/0x2a0 net/socket.c:599 sock_close+0x15/0x20 net/socket.c:1214 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xbf3/0x2be0 kernel/exit.c:870 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath+0x3f0/0x4a0 arch/x86/entry/common.c:271 ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:407 RIP: 0033:0x7fc8bd125531 Code: Bad RIP value. RSP: 002b:00007fc8bba572f0 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: 0000000000000000 RBX: 00007fc8bba57700 RCX: 00007fc8bd125531 RDX: 00007fc8bba579d0 RSI: 00007fc8bba572f0 RDI: 00000000003d0f00 RBP: 00007ffc54915ba0 R08: 00007fc8bba57700 R09: 00007fc8bba57700 R10: 00007fc8bba579d0 R11: 0000000000000206 R12: 00007ffc54915a0e R13: 00007ffc54915a0f R14: 00007fc8bba57300 R15: 0000000000022000 Modules linked in: ---[ end trace bd06f91cc8496ff9 ]--- RIP: 0010:tcp_cleanup_ulp+0xb4/0x130 net/ipv4/tcp_ulp.c:131 Code: 3c 02 00 0f 85 85 00 00 00 48 8b ab c0 06 00 00 e8 a1 96 81 fa 48 8d 7d 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 4d 48 8b 7d 38 e8 cd 33 78 fa 4c 89 ea 48 b8 00 00 RSP: 0018:ffff88809b53f678 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8880540ce640 RCX: 1ffff1101685554b RDX: 0000000000000007 RSI: ffffffff86e0eecf RDI: 0000000000000038 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000002 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8174af10 R13: ffff8880540ced00 R14: ffff8880540ce668 R15: ffff8880a928cbc0 FS: 00007fc8bba57700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055eee8cc3160 CR3: 0000000097825000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 3c 02 cmp $0x2,%al 2: 00 0f add %cl,(%rdi) 4: 85 85 00 00 00 48 test %eax,0x48000000(%rbp) a: 8b ab c0 06 00 00 mov 0x6c0(%rbx),%ebp 10: e8 a1 96 81 fa callq 0xfa8196b6 15: 48 8d 7d 38 lea 0x38(%rbp),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 75 4d jne 0x7d 30: 48 8b 7d 38 mov 0x38(%rbp),%rdi 34: e8 cd 33 78 fa callq 0xfa783406 39: 4c 89 ea mov %r13,%rdx 3c: 48 rex.W 3d: b8 .byte 0xb8