bisecting fixing commit since 4b0e041c9dada60197efc1697928cd32c2c70cd2 building syzkaller on b0e8efcb4b0aac61f4647a76bbe54a5d38a370ba testing commit 4b0e041c9dada60197efc1697928cd32c2c70cd2 with gcc (GCC) 8.1.0 kernel signature: 27b155e62aa76924a58384ddde0ff81f3c53cf07d156979999575d7af3ac43a7 all runs: crashed: kernel BUG at include/linux/mm.h:LINE! testing current HEAD 0c88e405c97ed1828443b67891e6d4bb6e56cd4e testing commit 0c88e405c97ed1828443b67891e6d4bb6e56cd4e with gcc (GCC) 8.1.0 kernel signature: 377e73bfc6378c55cff60b6a75336f64c29e7b03b34f7c1fd011a674f9cc8da1 all runs: crashed: kernel BUG at include/linux/mm.h:LINE! revisions tested: 2, total time: 29m57.34876554s (build: 23m43.954224439s, test: 5m32.979282925s) the crash still happens on HEAD commit msg: Linux 4.19.160 crash: kernel BUG at include/linux/mm.h:LINE! flags: 0x2fffc0000000000() raw: 02fffc0000000000 ffffea000773b208 ffff88823fffaef8 0000000000000000 raw: 0000000000000000 0000000000000003 00000000ffffff7f 0000000000000000 page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0) ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:519! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6570 Comm: syz-executor.0 Not tainted 4.19.160-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:2828 [inline] RIP: 0010:skb_release_data+0x4a2/0x6c0 net/core/skbuff.c:568 Code: 88 63 03 48 8b 7d c8 e8 dc fd fe ff 48 83 c4 38 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 c7 c6 c0 59 72 87 4c 89 ff e8 3e 66 73 fc <0f> 0b 48 8b 7d b0 e8 e3 7d 7f fc e9 8f fc ff ff e8 d9 7d 7f fc e9 RSP: 0018:ffff8881dd0afa30 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff8881ddf85980 RCX: 0000000000000000 RDX: 1ffffd4000eedb47 RSI: 0000000000000000 RDI: ffffea000776da38 RBP: ffff8881dd0afa90 R08: ffffed103ed03ee3 R09: ffffed103ed03ee2 R10: ffffed103ed03ee2 R11: ffff8881f681f717 R12: ffffea000776da34 R13: dffffc0000000000 R14: 0000000000000001 R15: ffffea000776da00 FS: 0000000002226940(0000) GS:ffff8881f6800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020014000 CR3: 00000001dd1e5001 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: skb_release_all+0x3d/0x50 net/core/skbuff.c:631 __kfree_skb+0xd/0x20 net/core/skbuff.c:645 sk_wmem_free_skb include/net/sock.h:1466 [inline] tcp_write_queue_purge+0x243/0x7b0 net/ipv4/tcp.c:2543 tcp_v4_destroy_sock+0x8a/0x690 net/ipv4/tcp_ipv4.c:1986 inet_csk_destroy_sock+0x126/0x3a0 net/ipv4/inet_connection_sock.c:872 tcp_close+0x828/0xf30 net/ipv4/tcp.c:2498 tls_sk_proto_close+0x541/0x8e0 net/tls/tls_main.c:312 inet_release+0xb9/0x1b0 net/ipv4/af_inet.c:427 IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready __sock_release+0x1da/0x2a0 net/socket.c:579 IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready sock_release+0xb/0x10 net/socket.c:599 smc_release+0x247/0x690 net/smc/af_smc.c:156 __sock_release+0xc7/0x2a0 net/socket.c:579 sock_close+0x10/0x20 net/socket.c:1140 __fput+0x24c/0x7f0 fs/file_table.c:278 ____fput+0x9/0x10 fs/file_table.c:309 task_work_run+0x10e/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x1a9/0x200 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x419/0x4e0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4129e1 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 e4 1a 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007fffb4c4f3e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004129e1 RDX: 0000001b2e420000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000073c900 R08: 000000000000b146 R09: 000000000000b146 R10: 00007fffb4c4f4b0 R11: 0000000000000293 R12: 0000000000000001 R13: 000000000073c900 R14: 000000000000b202 R15: 000000000073c0ec Modules linked in: IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready ---[ end trace ebe5250b05666670 ]--- IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready 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:2828 [inline] RIP: 0010:skb_release_data+0x4a2/0x6c0 net/core/skbuff.c:568 Code: 88 63 03 48 8b 7d c8 e8 dc fd fe ff 48 83 c4 38 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 c7 c6 c0 59 72 87 4c 89 ff e8 3e 66 73 fc <0f> 0b 48 8b 7d b0 e8 e3 7d 7f fc e9 8f fc ff ff e8 d9 7d 7f fc e9 RSP: 0018:ffff8881dd0afa30 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff8881ddf85980 RCX: 0000000000000000 RDX: 1ffffd4000eedb47 RSI: 0000000000000000 RDI: ffffea000776da38 RBP: ffff8881dd0afa90 R08: ffffed103ed03ee3 R09: ffffed103ed03ee2 R10: ffffed103ed03ee2 R11: ffff8881f681f717 R12: ffffea000776da34 R13: dffffc0000000000 R14: 0000000000000001 R15: ffffea000776da00 FS: 0000000002226940(0000) GS:ffff8881f6800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020014000 CR3: 00000001dd1e5001 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400