bisecting fixing commit since fd786fb1d2cad70b9aaba8c73872cbf63262bd58 building syzkaller on 3334d684ce742ce58ad66b7dcb7a6d4da5185796 testing commit fd786fb1d2cad70b9aaba8c73872cbf63262bd58 with gcc (GCC) 8.1.0 kernel signature: b5d80f980411a223515f9ef969d380efee70bdde70c2c113479e754d10374337 run #0: crashed: WARNING: refcount bug in sk_alloc run #1: crashed: WARNING: refcount bug in sk_alloc run #2: crashed: WARNING: refcount bug in sk_alloc run #3: crashed: WARNING: refcount bug in sk_alloc run #4: crashed: WARNING: refcount bug in sk_alloc run #5: crashed: WARNING: refcount bug in sk_alloc run #6: crashed: WARNING: refcount bug in __sk_destruct run #7: crashed: WARNING: refcount bug in sk_alloc run #8: crashed: WARNING: refcount bug in sk_alloc run #9: crashed: WARNING: refcount bug in sk_alloc testing current HEAD 94229d45239b581c638fb469bf4268913e44942e testing commit 94229d45239b581c638fb469bf4268913e44942e with gcc (GCC) 8.1.0 kernel signature: cd2d2a2741c6ebb0016d913d6058f5753634c9aae92c754b695bdb2b4837f139 all runs: crashed: WARNING: refcount bug in sk_alloc revisions tested: 2, total time: 19m39.510815398s (build: 11m7.473230372s, test: 7m43.895726587s) the crash still happens on HEAD commit msg: Merge tag 'mlx5-updates-2020-03-13' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux crash: WARNING: refcount bug in sk_alloc ------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 8253 at lib/refcount.c:25 refcount_warn_saturate+0xe7/0x140 lib/refcount.c:25 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 8253 Comm: syz-executor.0 Not tainted 5.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x12d/0x187 lib/dump_stack.c:118 panic+0x22a/0x4e3 kernel/panic.c:221 __warn.cold.10+0x25/0x2a kernel/panic.c:582 report_bug+0x1b0/0x270 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:174 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:267 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:286 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027 RIP: 0010:refcount_warn_saturate+0xe7/0x140 lib/refcount.c:25 Code: 64 86 7a 06 01 e8 71 85 e4 fd 0f 0b eb 9b 80 3d 53 86 7a 06 00 75 92 48 c7 c7 e0 be ed 87 c6 05 43 86 7a 06 01 e8 51 85 e4 fd <0f> 0b e9 78 ff ff ff 80 3d 2d 86 7a 06 00 0f 85 6b ff ff ff 48 c7 RSP: 0018:ffffc90002c77cf8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff8880a9520144 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff8ab963e0 RBP: ffffc90002c77d08 R08: ffffed1015d66659 R09: ffffed1015d66659 R10: ffffed1015d66658 R11: ffff8880aeb332c7 R12: 0000000000000002 R13: 0000000000000001 R14: 0000000000000010 R15: ffff88808b5e4000 refcount_add include/linux/refcount.h:191 [inline] refcount_inc include/linux/refcount.h:228 [inline] get_net include/net/net_namespace.h:241 [inline] sk_alloc+0xb5a/0xc80 net/core/sock.c:1670 __netlink_create+0x5c/0x260 net/netlink/af_netlink.c:629 netlink_create+0x2f9/0x540 net/netlink/af_netlink.c:692 __sock_create+0x258/0x530 net/socket.c:1433 sock_create net/socket.c:1484 [inline] __sys_socket+0xd7/0x1c0 net/socket.c:1526 __do_sys_socket net/socket.c:1535 [inline] __se_sys_socket net/socket.c:1533 [inline] __x64_sys_socket+0x6e/0xb0 net/socket.c:1533 do_syscall_64+0xca/0x630 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f2615aa1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007f2615aa26d4 RCX: 000000000045b349 RDX: 0000000000000000 RSI: 0000000000080002 RDI: 0000000000000010 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000b03 R14: 00000000004cbf40 R15: 000000000075bf2c Kernel Offset: disabled Rebooting in 86400 seconds..