------------[ cut here ]------------ refcount_t: increment on 0; use-after-free. WARNING: CPU: 0 PID: 24827 at lib/refcount.c:156 refcount_inc_checked lib/refcount.c:156 [inline] WARNING: CPU: 0 PID: 24827 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: 24827 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: ffff8880a0216640 R09: ffffed1015d040f1 R10: ffffed1015d040f0 R11: ffff8880ae820787 R12: ffff88809a1033c0 R13: ffff88809a1033a8 R14: ffff888068d18e88 R15: ffff888068d18e60 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:tomoyo_path_matches_pattern+0x5d/0x2b0 security/tomoyo/util.c:922 Code: 51 02 00 00 48 89 da 4d 8b 2c 24 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 3f 02 00 00 48 8d 7b 0f 4c 8b 33 <48> b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 48 RSP: 0018:ffff888068dcf600 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: ffff88809799ac98 RCX: ffffffff8304bd28 RDX: 1ffff11012f33593 RSI: ffffffff8305d9cc RDI: ffff88809799aca7 RBP: ffff888068dcf630 R08: ffff8880a0216640 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888068dcf798 R13: ffff8880a1c99b00 R14: ffff88809799aca8 R15: 0000000000000000 tomoyo_compare_name_union security/tomoyo/file.c:87 [inline] tomoyo_compare_name_union+0x88/0xf0 security/tomoyo/file.c:82 tomoyo_check_path_acl security/tomoyo/file.c:260 [inline] tomoyo_check_path_acl+0xd0/0x130 security/tomoyo/file.c:252 tomoyo_check_acl+0x141/0x3e0 security/tomoyo/domain.c:172 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_permission+0x1fb/0x360 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x3ab/0x3f0 security/tomoyo/file.c:777 tomoyo_file_open security/tomoyo/tomoyo.c:319 [inline] tomoyo_file_open+0xa9/0xd0 security/tomoyo/tomoyo.c:314 security_file_open+0x71/0x300 security/security.c:1457 do_dentry_open+0x373/0x1250 fs/open.c:765 vfs_open+0xa0/0xd0 fs/open.c:887 do_last fs/namei.c:3416 [inline] path_openat+0x10e9/0x4630 fs/namei.c:3533 do_filp_open+0x1a1/0x280 fs/namei.c:3563 do_sys_open+0x3fe/0x5d0 fs/open.c:1070 __do_sys_open fs/open.c:1088 [inline] __se_sys_open fs/open.c:1083 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1083 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff9881ab120 Code: 48 8b 15 1b 4d 2b 00 f7 d8 64 89 02 83 c8 ff c3 90 90 90 90 90 90 90 90 90 90 83 3d d5 a4 2b 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 5e 8c 01 00 48 89 04 24 RSP: 002b:00007ffc528c67e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000616760 RCX: 00007ff9881ab120 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ff988679d00 RBP: 0000000000001000 R08: 0000000000000000 R09: 00007ff988473a10 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff988678d00 R13: 00000000012421c0 R14: 0000000000000005 R15: 0000000000000000 Kernel Offset: disabled Rebooting in 86400 seconds..