------------[ cut here ]------------ refcount_t: increment on 0; use-after-free. WARNING: CPU: 0 PID: 362 at lib/refcount.c:156 refcount_inc_checked lib/refcount.c:156 [inline] WARNING: CPU: 0 PID: 362 at lib/refcount.c:156 refcount_inc_checked+0x61/0x70 lib/refcount.c:154 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 362 Comm: ps Not tainted 5.2.0+ #97 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+0x14/0x20 arch/x86/entry/entry_64.S:1008 RIP: 0010:refcount_inc_checked lib/refcount.c:156 [inline] RIP: 0010:refcount_inc_checked+0x61/0x70 lib/refcount.c:154 Code: 1d 3f 6e 64 06 31 ff 89 de e8 cb d2 35 fe 84 db 75 dd e8 82 d1 35 fe 48 c7 c7 40 09 c6 87 c6 05 1f 6e 64 06 01 e8 77 39 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:ffff8880ae809bf0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000100 RSI: ffffffff815c3a26 RDI: ffffed1015d01370 RBP: ffff8880ae809c00 R08: ffff88805fc10680 R09: ffffed1015d040f1 R10: ffffed1015d040f0 R11: ffff8880ae820787 R12: ffff88808664e080 R13: ffff88808664e068 R14: ffff8880a1116a08 R15: ffff8880a11169e0 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:767 [inline] RIP: 0010:lock_is_held_type+0x272/0x320 kernel/locking/lockdep.c:4453 Code: ff df c7 83 8c 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 88 00 00 00 48 83 3d b6 bd 7a 07 00 74 31 48 8b 7d c0 57 9d <0f> 1f 44 00 00 48 83 c4 20 44 89 e0 5b 41 5c 41 5d 41 5e 41 5f 5d RSP: 0018:ffff888046c57ac0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff11a5e02 RBX: ffff88805fc10680 RCX: ffff88805fc10f10 RDX: dffffc0000000000 RSI: ffffffff88dabf80 RDI: 0000000000000286 RBP: ffff888046c57b08 R08: ffff88805fc10680 R09: ffffed1015d06c7c R10: ffffed1015d06c7b R11: ffff8880ae8363db R12: 0000000000000001 R13: ffff88805fc10f38 R14: ffffffff88dabf80 R15: 0000000000000001 lock_is_held include/linux/lockdep.h:365 [inline] rcu_read_lock_held kernel/rcu/update.c:270 [inline] rcu_read_lock_held+0xa3/0xd0 kernel/rcu/update.c:262 task_cap fs/proc/array.c:325 [inline] proc_pid_status+0x19c1/0x24a0 fs/proc/array.c:422 proc_single_show+0xf0/0x170 fs/proc/base.c:756 seq_read+0x4ca/0x1110 fs/seq_file.c:229 __vfs_read+0x8a/0x110 fs/read_write.c:425 vfs_read+0x1f0/0x440 fs/read_write.c:461 ksys_read+0x14f/0x290 fs/read_write.c:587 __do_sys_read fs/read_write.c:597 [inline] __se_sys_read fs/read_write.c:595 [inline] __x64_sys_read+0x73/0xb0 fs/read_write.c:595 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fed6f9bb310 Code: 73 01 c3 48 8b 0d 28 4b 2b 00 31 d2 48 29 c2 64 89 11 48 83 c8 ff eb ea 90 90 83 3d e5 a2 2b 00 00 75 10 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 6e 8a 01 00 48 89 04 24 RSP: 002b:00007ffcc410abd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00007fed6f9bb310 RDX: 0000000000000fff RSI: 00007fed6fe88d00 RDI: 0000000000000006 RBP: 0000000000000fff R08: 0000000000000000 R09: 00007fed6fc8357b R10: 0000000000000000 R11: 0000000000000246 R12: 00007fed6fe88d00 R13: 0000000000000020 R14: 0000000000000005 R15: 0000000000000000 Kernel Offset: disabled Rebooting in 86400 seconds..