bisecting fixing commit since aea8526edf59da3ff5306ca408e13d8f6ab89b34 building syzkaller on 8304907db07a4c6f7ef3164be77c1bacc94d6d51 testing commit aea8526edf59da3ff5306ca408e13d8f6ab89b34 with gcc (GCC) 8.1.0 kernel signature: 078ae260f4789e444340559d7a6dfda66007db00127f7b27b760cb81ccad8227 all runs: crashed: WARNING: refcount bug in l2tp_session_create testing current HEAD b850307b279cbd12ab8c654d1a3dfe55319cc475 testing commit b850307b279cbd12ab8c654d1a3dfe55319cc475 with gcc (GCC) 8.1.0 kernel signature: 4d813350dfa95b693afd991db7e75530de4fcf2c14425740d4eeb8365358e1e7 all runs: crashed: WARNING: refcount bug in l2tp_session_register revisions tested: 2, total time: 24m39.89708275s (build: 17m23.719312975s, test: 6m13.396864596s) the crash still happens on HEAD commit msg: Linux 4.14.184 crash: WARNING: refcount bug in l2tp_session_register IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth0_to_bond: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready refcount_t: increment on 0; use-after-free. ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6988 at lib/refcount.c:153 refcount_inc.cold.12+0x13/0x1a lib/refcount.c:153 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 6988 Comm: syz-executor.5 Not tainted 4.14.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xf7/0x13b lib/dump_stack.c:58 panic+0x1b0/0x358 kernel/panic.c:183 __warn.cold.8+0x25/0x2c kernel/panic.c:547 report_bug+0x1a4/0x1f3 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:177 [inline] do_error_trap+0x1bd/0x310 arch/x86/kernel/traps.c:295 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964 RIP: 0010:refcount_inc.cold.12+0x13/0x1a lib/refcount.c:153 RSP: 0018:ffff888083047b10 EFLAGS: 00010282 RAX: 000000000000002b RBX: ffff888094c6c480 RCX: 0000000000000000 RDX: 000000000000002b RSI: ffffffff868cf2e0 RDI: ffffed1010608f59 RBP: ffff888083047b10 R08: ffff88809427aeb8 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000000 R12: ffff888095b482c0 R13: 0000000000000000 R14: ffff888083047d28 R15: ffff8880956d75c0 sock_hold include/net/sock.h:619 [inline] l2tp_session_register+0x254/0xbd0 net/l2tp/l2tp_core.c:379 pppol2tp_connect+0xd19/0x1380 net/l2tp/l2tp_ppp.c:795 SYSC_connect+0x1e3/0x2a0 net/socket.c:1655 SyS_connect+0x9/0x10 net/socket.c:1636 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x459819 RSP: 002b:00007f6c2057bc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459819 RDX: 0000000000000026 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6c2057c6d4 R13: 00000000004bfd8b R14: 00000000004d1948 R15: 00000000ffffffff Kernel Offset: disabled Rebooting in 86400 seconds..