bisecting cause commit starting from f4b752a6b2708bfdf7fbe8a241082c8104f4ce05 building syzkaller on f4e53c1037f48d9bf1790df955b0cc7028a7008e testing commit f4b752a6b2708bfdf7fbe8a241082c8104f4ce05 with gcc (GCC) 8.1.0 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in rds_bind testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.1.0 run #0: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor131559157" "root@10.128.1.62:./syz-executor131559157"]: exit status 1 ssh: connect to host 10.128.1.62 port 22: Connection timed out lost connection run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect start f4b752a6b2708bfdf7fbe8a241082c8104f4ce05 v5.2 Bisecting: 7815 revisions left to test after this (roughly 13 steps) [c096397c78f766db972f923433031f2dec01cae0] selftests: kvm: Adding config fragments testing commit c096397c78f766db972f923433031f2dec01cae0 with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in send_hsr_supervision_frame run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad c096397c78f766db972f923433031f2dec01cae0 Bisecting: 4491 revisions left to test after this (roughly 12 steps) [8f6ccf6159aed1f04c6d179f61f6fb2691261e84] Merge tag 'clone3-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux testing commit 8f6ccf6159aed1f04c6d179f61f6fb2691261e84 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 8f6ccf6159aed1f04c6d179f61f6fb2691261e84 Bisecting: 2245 revisions left to test after this (roughly 11 steps) [216dcb059b767ef526499f3ed287e98b37af03c3] Merge branch 'net-sched-Introduce-tc-connection-tracking' testing commit 216dcb059b767ef526499f3ed287e98b37af03c3 with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in send_hsr_supervision_frame run #1: crashed: general protection fault in send_hsr_supervision_frame run #2: crashed: general protection fault in send_hsr_supervision_frame run #3: crashed: general protection fault in send_hsr_supervision_frame run #4: crashed: general protection fault in send_hsr_supervision_frame run #5: crashed: general protection fault in send_hsr_supervision_frame run #6: crashed: general protection fault in send_hsr_supervision_frame run #7: OK run #8: OK run #9: OK # git bisect bad 216dcb059b767ef526499f3ed287e98b37af03c3 Bisecting: 1113 revisions left to test after this (roughly 10 steps) [dca73a65a68329ee386d3ff473152bac66eaab39] Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next testing commit dca73a65a68329ee386d3ff473152bac66eaab39 with gcc (GCC) 8.1.0 all runs: OK # git bisect good dca73a65a68329ee386d3ff473152bac66eaab39 Bisecting: 569 revisions left to test after this (roughly 9 steps) [8338d93788950e63d12bd1d5eb09e239550e80e9] net/mlx5: Added devlink info callback testing commit 8338d93788950e63d12bd1d5eb09e239550e80e9 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 8338d93788950e63d12bd1d5eb09e239550e80e9 Bisecting: 293 revisions left to test after this (roughly 8 steps) [437fde6cda74bb31705a9f37f14d481cdd431ad8] Merge tag 'wireless-drivers-next-for-davem-2019-07-06' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next testing commit 437fde6cda74bb31705a9f37f14d481cdd431ad8 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 437fde6cda74bb31705a9f37f14d481cdd431ad8 Bisecting: 156 revisions left to test after this (roughly 7 steps) [6413139dfc641aaaa30580b59696a5f7ea274194] skbuff: increase verbosity when dumping skb data testing commit 6413139dfc641aaaa30580b59696a5f7ea274194 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 6413139dfc641aaaa30580b59696a5f7ea274194 Bisecting: 83 revisions left to test after this (roughly 6 steps) [0d581ba311a27762fe1a14e5db5f65d225b3d844] net: hns: add support for vlan TSO testing commit 0d581ba311a27762fe1a14e5db5f65d225b3d844 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 0d581ba311a27762fe1a14e5db5f65d225b3d844 Bisecting: 41 revisions left to test after this (roughly 5 steps) [6b4ddf9950c38969f666dea1509955bd99120c4f] net: nixge: Fix misuse of strlcpy testing commit 6b4ddf9950c38969f666dea1509955bd99120c4f with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in send_hsr_supervision_frame run #1: crashed: general protection fault in send_hsr_supervision_frame run #2: crashed: general protection fault in send_hsr_supervision_frame run #3: crashed: general protection fault in send_hsr_supervision_frame run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad 6b4ddf9950c38969f666dea1509955bd99120c4f Bisecting: 17 revisions left to test after this (roughly 4 steps) [114b5b355ec0b6e83a6628a5ab5d03e50fd40a31] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec testing commit 114b5b355ec0b6e83a6628a5ab5d03e50fd40a31 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 114b5b355ec0b6e83a6628a5ab5d03e50fd40a31 Bisecting: 8 revisions left to test after this (roughly 3 steps) [ccd1479e48391674ff76002a92b75defc3c78257] Merge branch 'net-tls-fix-poll-wake-up' testing commit ccd1479e48391674ff76002a92b75defc3c78257 with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in send_hsr_supervision_frame run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad ccd1479e48391674ff76002a92b75defc3c78257 Bisecting: 4 revisions left to test after this (roughly 2 steps) [fa8043017cf83427c7e3d7d8defe2c2133edffea] Merge branch 'hsr-bug-fixes' testing commit fa8043017cf83427c7e3d7d8defe2c2133edffea with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in send_hsr_supervision_frame run #1: crashed: general protection fault in send_hsr_supervision_frame run #2: crashed: general protection fault in send_hsr_supervision_frame run #3: crashed: general protection fault in send_hsr_supervision_frame run #4: crashed: general protection fault in send_hsr_supervision_frame run #5: crashed: general protection fault in send_hsr_supervision_frame run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad fa8043017cf83427c7e3d7d8defe2c2133edffea Bisecting: 1 revision left to test after this (roughly 1 step) [b9a1e627405d68d475a3c1f35e685ccfb5bbe668] hsr: implement dellink to clean up resources testing commit b9a1e627405d68d475a3c1f35e685ccfb5bbe668 with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in send_hsr_supervision_frame run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad b9a1e627405d68d475a3c1f35e685ccfb5bbe668 Bisecting: 0 revisions left to test after this (roughly 0 steps) [619afef01f74f3572b5e9a266c1230dc83761eec] hsr: fix a memory leak in hsr_del_port() testing commit 619afef01f74f3572b5e9a266c1230dc83761eec with gcc (GCC) 8.1.0 all runs: OK # git bisect good 619afef01f74f3572b5e9a266c1230dc83761eec b9a1e627405d68d475a3c1f35e685ccfb5bbe668 is the first bad commit commit b9a1e627405d68d475a3c1f35e685ccfb5bbe668 Author: Cong Wang Date: Wed Jul 3 17:21:13 2019 -0700 hsr: implement dellink to clean up resources hsr_link_ops implements ->newlink() but not ->dellink(), which leads that resources not released after removing the device, particularly the entries in self_node_db and node_db. So add ->dellink() implementation to replace the priv_destructor. This also makes the code slightly easier to understand. Reported-by: syzbot+c6167ec3de7def23d1e8@syzkaller.appspotmail.com Cc: Arvid Brodin Signed-off-by: Cong Wang Signed-off-by: David S. Miller :040000 040000 65599c9790197ff086c1843ca65b40688d162283 07d35e0ebb6f5a6fa2ee09ede31e24b8def82990 M net revisions tested: 16, total time: 4h27m50.035148476s (build: 1h29m5.922179646s, test: 2h53m37.110042473s) first bad commit: b9a1e627405d68d475a3c1f35e685ccfb5bbe668 hsr: implement dellink to clean up resources cc: ["arvid.brodin@alten.se" "davem@davemloft.net" "linux-kernel@vger.kernel.org" "netdev@vger.kernel.org" "xiyou.wangcong@gmail.com"] crash: general protection fault in send_hsr_supervision_frame 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: 1 PID: 26327 Comm: syz-executor434 Not tainted 5.2.0-rc6+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:send_hsr_supervision_frame+0x30/0xf60 net/hsr/hsr_device.c:251 Code: 89 e5 41 57 41 56 41 55 49 89 fd 41 54 41 89 d4 48 89 c2 53 48 c1 ea 03 48 83 ec 50 48 89 45 d0 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 89 75 c8 0f 85 83 0c 00 00 48 b8 00 00 00 00 00 fc ff RSP: 0018:ffff8880aeb09c68 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: ffff8880870cabc0 RCX: 1ffff1100f45c264 RDX: 0000000000000002 RSI: 0000000000000017 RDI: 0000000000000000 RBP: ffff8880aeb09ce0 R08: ffffed1015d66c70 R09: ffffed1015d66c6f R10: ffffed1015d66c6f R11: ffff8880aeb3637b R12: 0000000000000000 R13: 0000000000000000 R14: ffff8880aeb09db8 R15: ffff8880aeb24b80 FS: 0000555556491880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000049f410 CR3: 000000008e608000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hsr_announce+0xd9/0x2b0 net/hsr/hsr_device.c:335 call_timer_fn+0x14d/0x510 kernel/time/timer.c:1322 expire_timers kernel/time/timer.c:1366 [inline] __run_timers kernel/time/timer.c:1685 [inline] run_timer_softirq+0xc6f/0x1330 kernel/time/timer.c:1698 __do_softirq+0x260/0x958 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13e/0x540 arch/x86/kernel/apic/apic.c:1068 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:806 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:767 [inline] RIP: 0010:kmem_cache_free+0xb0/0x290 mm/slab.c:3699 Code: 84 e6 00 00 00 41 f7 c5 00 02 00 00 0f 84 b7 00 00 00 e8 d3 a3 d3 ff 48 83 3d 9b 5e 9a 06 00 0f 84 cd 01 00 00 4c 89 ef 57 9d <0f> 1f 44 00 00 4c 8b 6d 08 0f 1f 44 00 00 65 8b 05 bb d0 69 7e 83 RSP: 0018:ffff8880856a7a50 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffff8880a99b9980 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000286 RBP: ffff8880856a7a70 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880767f0a00 R13: 0000000000000286 R14: ffffffff851f16fb R15: ffffffff879809e0 sock_destroy_inode+0x4b/0x60 net/socket.c:274 destroy_inode+0xbd/0x190 fs/inode.c:277 evict+0x36f/0x590 fs/inode.c:588 iput_final fs/inode.c:1560 [inline] iput+0x376/0x6a0 fs/inode.c:1586 dentry_unlink_inode+0x26f/0x370 fs/dcache.c:374 __dentry_kill+0x2d1/0x550 fs/dcache.c:579 dentry_kill+0x98/0x490 fs/dcache.c:698 dput.part.26+0x386/0x480 fs/dcache.c:859 dput+0x9/0x10 fs/dcache.c:841 __fput+0x32c/0x770 fs/file_table.c:293 ____fput+0x9/0x10 fs/file_table.c:313 task_work_run+0x108/0x180 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x9ca/0x2e80 kernel/exit.c:877 do_group_exit+0xf4/0x2f0 kernel/exit.c:981 __do_sys_exit_group kernel/exit.c:992 [inline] __se_sys_exit_group kernel/exit.c:990 [inline] __x64_sys_exit_group+0x39/0x40 kernel/exit.c:990 do_syscall_64+0xd0/0x530 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x43ff18 Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00 RSP: 002b:00007ffe72afd1e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff18 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 00000000004bf730 R08: 00000000000000e7 R09: ffffffffffffffd0 R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000006d1180 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 111b87c8e575980c ]--- RIP: 0010:send_hsr_supervision_frame+0x30/0xf60 net/hsr/hsr_device.c:251 Code: 89 e5 41 57 41 56 41 55 49 89 fd 41 54 41 89 d4 48 89 c2 53 48 c1 ea 03 48 83 ec 50 48 89 45 d0 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 89 75 c8 0f 85 83 0c 00 00 48 b8 00 00 00 00 00 fc ff RSP: 0018:ffff8880aeb09c68 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: ffff8880870cabc0 RCX: 1ffff1100f45c264 RDX: 0000000000000002 RSI: 0000000000000017 RDI: 0000000000000000 RBP: ffff8880aeb09ce0 R08: ffffed1015d66c70 R09: ffffed1015d66c6f R10: ffffed1015d66c6f R11: ffff8880aeb3637b R12: 0000000000000000 R13: 0000000000000000 R14: ffff8880aeb09db8 R15: ffff8880aeb24b80 FS: 0000555556491880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000049f410 CR3: 000000000826d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400