page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0) tls_sw_sendmsg+0xd8b/0x1210 net/tls/tls_sw.c:427 ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:519! invalid opcode: 0000 [#1] PREEMPT SMP KASAN inet_sendmsg+0x132/0x5a0 net/ipv4/af_inet.c:798 CPU: 1 PID: 12635 Comm: syz-executor.1 Not tainted 4.19.195-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:put_page_testzero include/linux/mm.h:519 [inline] RIP: 0010:put_page include/linux/mm.h:962 [inline] RIP: 0010:__skb_frag_unref include/linux/skbuff.h:2833 [inline] RIP: 0010:skb_release_data+0x3bf/0x920 net/core/skbuff.c:577 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 Code: 15 0b fb e9 2a fe ff ff e8 6e 35 f2 fa 48 8d 6b ff e9 b5 fe ff ff e8 60 35 f2 fa 48 c7 c6 60 3d 4c 89 48 89 ef e8 11 c0 19 fb <0f> 0b 4c 8b 34 24 e8 46 35 f2 fa 49 8d 7e 08 48 b8 00 00 00 00 00 __sys_sendto+0x21a/0x320 net/socket.c:1787 RSP: 0018:ffff8880ba107680 EFLAGS: 00010206 RAX: ffff8880b3b165c0 RBX: ffffea0000f8d834 RCX: 0000000000000000 RDX: 0000000000000100 RSI: ffffffff867049df RDI: ffffea0000f8d838 RBP: ffffea0000f8d800 R08: 000000000000003e R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880adc40c00 FS: 00007fcd273ce700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556a8dffa188 CR3: 000000009aedb000 CR4: 00000000001406e0 __do_sys_sendto net/socket.c:1799 [inline] __se_sys_sendto net/socket.c:1795 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1795 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 Call Trace: entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 skb_release_all net/core/skbuff.c:640 [inline] __kfree_skb+0x46/0x60 net/core/skbuff.c:654 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 sk_wmem_free_skb include/net/sock.h:1466 [inline] tcp_write_queue_purge+0x24d/0x800 net/ipv4/tcp.c:2543 RSP: 002b:00007fc221209188 EFLAGS: 00000246 ORIG_RAX: 000000000000002c tcp_reset+0xfe/0x490 net/ipv4/tcp_input.c:4081 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 tcp_validate_incoming+0x117d/0x1670 net/ipv4/tcp_input.c:5452 RDX: 00000000e0ffffff RSI: 00000000200005c0 RDI: 0000000000000003 RBP: 00007fc2212091d0 R08: 0000000000000000 R09: 00000000000000d8 tcp_rcv_state_process+0xb7a/0x4c50 net/ipv4/tcp_input.c:6092 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffd50507e6f R14: 00007fc221209300 R15: 0000000000022000 tcp_v4_do_rcv+0x31f/0x870 net/ipv4/tcp_ipv4.c:1569 tcp_v4_rcv+0x2c03/0x3b80 net/ipv4/tcp_ipv4.c:1832 ip_local_deliver_finish+0x495/0xc00 net/ipv4/ip_input.c:215 NF_HOOK include/linux/netfilter.h:289 [inline] ip_local_deliver+0x188/0x500 net/ipv4/ip_input.c:256 dst_input include/net/dst.h:461 [inline] ip_rcv_finish+0x1ca/0x2e0 net/ipv4/ip_input.c:414 NF_HOOK include/linux/netfilter.h:289 [inline] ip_rcv+0xca/0x3c0 net/ipv4/ip_input.c:524 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:4954 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066 process_backlog+0x241/0x700 net/core/dev.c:5848 napi_poll net/core/dev.c:6272 [inline] net_rx_action+0x4ac/0xfb0 net/core/dev.c:6338 __do_softirq+0x265/0x980 kernel/softirq.c:292 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1092 do_softirq.part.0+0x160/0x1c0 kernel/softirq.c:336 do_softirq kernel/softirq.c:328 [inline] __local_bh_enable_ip+0x20e/0x270 kernel/softirq.c:189 local_bh_enable include/linux/bottom_half.h:32 [inline] inet_csk_listen_stop+0x1e7/0x8a0 net/ipv4/inet_connection_sock.c:1033 tcp_close+0xca3/0xfd0 net/ipv4/tcp.c:2351 inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427 inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:472 __sock_release+0xcd/0x2a0 net/socket.c:579 sock_close+0x15/0x20 net/socket.c:1140 __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 arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 Code: Bad RIP value. RSP: 002b:00007fcd273ce188 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: 0000000000164000 RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 00000000e0ffffff RSI: 00000000200005c0 RDI: 0000000000000003 RBP: 00007fcd273ce1d0 R08: 0000000000000000 R09: 00000000000000d8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff24e722ef R14: 00007fcd273ce300 R15: 0000000000022000 Modules linked in: ---[ end trace 2e1b23fb2cc6ac05 ]--- RIP: 0010:put_page_testzero include/linux/mm.h:519 [inline] RIP: 0010:put_page include/linux/mm.h:962 [inline] RIP: 0010:__skb_frag_unref include/linux/skbuff.h:2833 [inline] RIP: 0010:skb_release_data+0x3bf/0x920 net/core/skbuff.c:577 Code: 15 0b fb e9 2a fe ff ff e8 6e 35 f2 fa 48 8d 6b ff e9 b5 fe ff ff e8 60 35 f2 fa 48 c7 c6 60 3d 4c 89 48 89 ef e8 11 c0 19 fb <0f> 0b 4c 8b 34 24 e8 46 35 f2 fa 49 8d 7e 08 48 b8 00 00 00 00 00 RSP: 0018:ffff8880ba107680 EFLAGS: 00010206 RAX: ffff8880b3b165c0 RBX: ffffea0000f8d834 RCX: 0000000000000000 RDX: 0000000000000100 RSI: ffffffff867049df RDI: ffffea0000f8d838 RBP: ffffea0000f8d800 R08: 000000000000003e R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880adc40c00 FS: 00007fcd273ce700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004665af CR3: 0000000009e6d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400