------------[ cut here ]------------ refcount_t: increment on 0; use-after-free. WARNING: CPU: 1 PID: 30165 at lib/refcount.c:156 refcount_inc_checked lib/refcount.c:156 [inline] WARNING: CPU: 1 PID: 30165 at lib/refcount.c:156 refcount_inc_checked+0x61/0x70 lib/refcount.c:154 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 30165 Comm: syz-executor.5 Not tainted 5.3.0-rc1+ #84 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+0x172/0x1f0 lib/dump_stack.c:113 panic+0x2dc/0x755 kernel/panic.c:219 __warn.cold+0x20/0x4c kernel/panic.c:576 report_bug+0x263/0x2b0 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:179 [inline] fixup_bug arch/x86/kernel/traps.c:174 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1026 RIP: 0010:refcount_inc_checked lib/refcount.c:156 [inline] RIP: 0010:refcount_inc_checked+0x61/0x70 lib/refcount.c:154 Code: 1d 18 8e 64 06 31 ff 89 de e8 db aa 35 fe 84 db 75 dd e8 92 a9 35 fe 48 c7 c7 00 03 c6 87 c6 05 f8 8d 64 06 01 e8 77 0c 07 fe <0f> 0b eb c1 90 90 90 90 90 90 90 90 90 90 90 55 48 89 e5 41 57 41 RSP: 0018:ffff8880ae909bf0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000100 RSI: ffffffff815c5bd6 RDI: ffffed1015d21370 RBP: ffff8880ae909c00 R08: ffff888098fbc140 R09: fffffbfff134ac78 R10: fffffbfff134ac77 R11: ffffffff89a563bf R12: ffff88809068eb00 R13: ffff88809068eae8 R14: ffff8880634f4688 R15: ffff8880634f4660 sock_hold include/net/sock.h:649 [inline] sk_add_node include/net/sock.h:701 [inline] nr_insert_socket+0x2d/0xe0 net/netrom/af_netrom.c:137 nr_rx_frame+0x1605/0x1e73 net/netrom/af_netrom.c:1023 nr_loopback_timer+0x7b/0x170 net/netrom/nr_loopback.c:59 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1322 expire_timers kernel/time/timer.c:1366 [inline] __run_timers kernel/time/timer.c:1685 [inline] __run_timers kernel/time/timer.c:1653 [inline] run_timer_softirq+0x697/0x17a0 kernel/time/timer.c:1698 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:537 [inline] smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1095 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:828 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x54/0x90 kernel/locking/spinlock.c:199 Code: c0 a0 f1 d2 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 33 48 83 3d c5 04 95 01 00 74 20 fb 66 0f 1f 44 00 00 01 00 00 00 e8 32 e2 10 fa 65 8b 05 93 10 c4 78 85 c0 74 06 41 RSP: 0018:ffff88805eea76c0 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff11a5e34 RBX: ffff888098fbc140 RCX: 1ffffffff134b2b6 RDX: dffffc0000000000 RSI: ffffffff8178256e RDI: ffffffff873decb8 RBP: ffff88805eea76c8 R08: ffff888098fbc140 R09: ffffed1015d26ab1 R10: ffffed1015d26ab0 R11: ffff8880ae935583 R12: ffff8880ae935580 R13: ffff888069210580 R14: 0000000000000000 R15: 0000000000000001 finish_lock_switch kernel/sched/core.c:3004 [inline] finish_task_switch+0x147/0x720 kernel/sched/core.c:3104 context_switch kernel/sched/core.c:3257 [inline] __schedule+0x75d/0x1580 kernel/sched/core.c:3880 preempt_schedule_common+0x4f/0xe0 kernel/sched/core.c:4025 preempt_schedule+0x4b/0x60 kernel/sched/core.c:4051 ___preempt_schedule+0x16/0x20 arch/x86/entry/thunk_64.S:50 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xbd/0xe0 kernel/locking/spinlock.c:191 spin_unlock_irqrestore include/linux/spinlock.h:393 [inline] __wake_up_common_lock+0xf8/0x150 kernel/sched/wait.c:125 __wake_up_sync_key+0x19/0x20 kernel/sched/wait.c:196 sock_def_readable+0x13b/0x500 net/core/sock.c:2777 unix_stream_sendmsg+0x4f5/0x9a0 net/unix/af_unix.c:1854 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 sock_write_iter+0x27c/0x3e0 net/socket.c:989 call_write_iter include/linux/fs.h:1870 [inline] new_sync_write+0x4d3/0x770 fs/read_write.c:483 __vfs_write+0xe1/0x110 fs/read_write.c:496 vfs_write+0x268/0x5d0 fs/read_write.c:558 ksys_write+0x14f/0x290 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:620 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459829 Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f03dd687c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459829 RDX: 00000000fffffc61 RSI: 0000000020000080 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f03dd6886d4 R13: 00000000004c97ab R14: 00000000004e0bb8 R15: 00000000ffffffff Kernel Offset: disabled Rebooting in 86400 seconds..