------------[ cut here ]------------ refcount_t: increment on 0; use-after-free. WARNING: CPU: 0 PID: 15983 at lib/refcount.c:156 refcount_inc_checked /lib/refcount.c:156 [inline] WARNING: CPU: 0 PID: 15983 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: 15983 Comm: syz-executor.5 Not tainted 5.2.0+ #62 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 9f 8f 64 06 31 ff 89 de e8 9b e1 35 fe 84 db 75 dd e8 52 e0 35 fe 48 c7 c7 80 06 c6 87 c6 05 7f 8f 64 06 01 e8 b7 48 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: ffffffff815c3616 RDI: ffffed1015d01370 RBP: ffff8880ae809c00 R08: ffff88805afc8600 R09: fffffbfff14a7978 R10: fffffbfff14a7977 R11: ffffffff8a53cbbf R12: ffff8880a1292100 R13: ffff8880a12920e8 R14: ffff88807bfa1708 R15: ffff88807bfa16e0 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:jhash2 /./include/linux/jhash.h:128 [inline] RIP: 0010:hash_stack /lib/stackdepot.c:152 [inline] RIP: 0010:stack_depot_save+0xaa/0x45c /lib/stackdepot.c:233 Code: 31 c0 29 c3 41 89 d8 89 c3 01 f8 c1 c3 08 44 31 c3 41 89 d8 29 df 01 c3 41 c1 c0 10 44 31 c7 41 89 f8 29 f8 01 df 41 c1 c8 0d <44> 31 c0 41 89 c0 29 c3 01 f8 41 c1 c0 04 44 31 c3 83 fe 03 77 94 RSP: 0018:ffff88805b8ef338 EFLAGS: 00000296 ORIG_RAX: ffffffffffffff13 RAX: 000000009e79db74 RBX: 00000000e631379b RCX: ffff88805b8ef39c RDX: 0000000000000d40 RSI: 0000000000000021 RDI: 00000000c3c03ee4 RBP: ffff88805b8ef380 R08: 000000003a4eec78 R09: ffff88805afc8e88 R10: fffffbfff134a0cf R11: ffffffff89a5067f R12: ffff88805b8ef390 R13: 0000000000000012 R14: 0000000000000000 R15: ffff8880aa4001c0 save_stack+0x5c/0x90 /mm/kasan/common.c:71 set_track /mm/kasan/common.c:77 [inline] __kasan_kmalloc /mm/kasan/common.c:487 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 /mm/kasan/common.c:460 kasan_kmalloc+0x9/0x10 /mm/kasan/common.c:501 __do_kmalloc /mm/slab.c:3655 [inline] __kmalloc+0x163/0x770 /mm/slab.c:3664 kmalloc /./include/linux/slab.h:557 [inline] kzalloc /./include/linux/slab.h:748 [inline] tomoyo_encode2.part.0+0xf5/0x400 /security/tomoyo/realpath.c:44 tomoyo_encode2 /security/tomoyo/realpath.c:30 [inline] tomoyo_encode+0x2b/0x50 /security/tomoyo/realpath.c:79 tomoyo_realpath_from_path+0x1d3/0x7b0 /security/tomoyo/realpath.c:316 tomoyo_get_realpath /security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x2a8/0x3f0 /security/tomoyo/file.c:771 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:0x413701 Code: 75 14 b8 02 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 19 00 00 c3 48 83 ec 08 e8 0a fa ff ff 48 89 04 24 b8 02 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fa ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007fde738e1c10 EFLAGS: 00000293 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000413701 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000004be3ce RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000293 R12: 00007fde738e26d4 R13: 00000000004c86c3 R14: 00000000004df328 R15: 00000000ffffffff Kernel Offset: disabled Rebooting in 86400 seconds..