------------[ cut here ]------------ refcount_t: increment on 0; use-after-free. WARNING: CPU: 1 PID: 14567 at lib/refcount.c:156 refcount_inc_checked+0x4b/0x50 lib/refcount.c:156 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 14567 Comm: syz-executor.0 Not tainted 5.2.0+ #37 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+0x1d8/0x2f8 lib/dump_stack.c:113 panic+0x29b/0x7d9 kernel/panic.c:219 __warn+0x22f/0x230 kernel/panic.c:576 report_bug+0x190/0x290 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:179 [inline] do_error_trap+0xd7/0x440 arch/x86/kernel/traps.c:272 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:291 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1026 RIP: 0010:refcount_inc_checked+0x4b/0x50 lib/refcount.c:156 Code: 3d 8c a6 96 05 01 75 08 e8 42 dd 12 fe 5b 5d c3 e8 3a dd 12 fe c6 05 76 a6 96 05 01 48 c7 c7 89 0f 88 88 31 c0 e8 b5 99 e4 fd <0f> 0b eb df 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 RSP: 0018:ffff8880aeb09b60 EFLAGS: 00010246 RAX: fd369baa6a571200 RBX: ffff888060777580 RCX: ffff888059f72540 RDX: 0000000000000302 RSI: 0000000000000008 RDI: 0000000000000206 RBP: ffff8880aeb09b68 R08: ffff888059f72d50 R09: fffffbfff13bc0b6 R10: fffffbfff13bc0b6 R11: 0000000000000000 R12: ffff88805a2fabc0 R13: dffffc0000000000 R14: 0000000000000004 R15: ffff888060777500 sock_hold include/net/sock.h:649 [inline] sk_add_node include/net/sock.h:701 [inline] nr_insert_socket net/netrom/af_netrom.c:137 [inline] nr_rx_frame+0x17bc/0x1e40 net/netrom/af_netrom.c:1023 nr_loopback_timer+0x6a/0x140 net/netrom/nr_loopback.c:59 call_timer_fn+0xec/0x200 kernel/time/timer.c:1322 expire_timers kernel/time/timer.c:1366 [inline] __run_timers+0x7cd/0x9c0 kernel/time/timer.c:1685 run_timer_softirq+0x1d/0x40 kernel/time/timer.c:1698 __do_softirq+0x307/0x774 arch/x86/include/asm/paravirt.h:778 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x1e9/0x1f0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:537 [inline] smp_apic_timer_interrupt+0xcc/0x220 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:768 [inline] RIP: 0010:slab_alloc mm/slab.c:3312 [inline] RIP: 0010:__do_kmalloc mm/slab.c:3653 [inline] RIP: 0010:__kmalloc+0x1cd/0x340 mm/slab.c:3664 Code: 00 48 89 df 57 9d 0f 1f 44 00 00 e8 2d c8 cb ff eb 1d e8 e6 c5 cb ff 48 83 3d fe df 19 07 00 0f 84 76 01 00 00 48 89 df 57 9d <0f> 1f 44 00 00 4c 8b 75 d0 41 0f 18 0f e9 2a 00 00 00 44 89 e0 c1 RSP: 0018:ffff88805e1b7420 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: ffff888059f72d8c RBX: 0000000000000282 RCX: ffffffff815c3ea2 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000282 RBP: ffff88805e1b7468 R08: ffff888059f72d50 R09: fffffbfff13bc0ad R10: fffffbfff13bc0ad R11: 0000000000000000 R12: 0000000000000c40 R13: ffff8880aa402000 R14: ffff8880aa402000 R15: ffff88808c098280 kmalloc include/linux/slab.h:557 [inline] tomoyo_realpath_from_path+0xdc/0x7c0 security/tomoyo/realpath.c:277 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x1f2/0x9e0 security/tomoyo/file.c:771 tomoyo_file_open+0x141/0x190 security/tomoyo/tomoyo.c:319 security_file_open+0x65/0x2f0 security/security.c:1457 do_dentry_open+0x3a5/0x1080 fs/open.c:765 vfs_open+0x73/0x80 fs/open.c:887 do_last fs/namei.c:3416 [inline] path_openat+0x136d/0x4440 fs/namei.c:3533 do_filp_open+0x1f7/0x430 fs/namei.c:3563 do_sys_open+0x343/0x620 fs/open.c:1070 __do_sys_openat fs/open.c:1097 [inline] __se_sys_openat fs/open.c:1091 [inline] __x64_sys_openat+0xa2/0xb0 fs/open.c:1091 do_syscall_64+0xfe/0x140 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:00007f9f9bac5c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000459829 RDX: 0000000000007a05 RSI: 0000000020000140 RDI: ffffffffffffff9c RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001700 R11: 0000000000000246 R12: 00007f9f9bac66d4 R13: 00000000004c5f1a R14: 00000000004da9d8 R15: 00000000ffffffff Kernel Offset: disabled Rebooting in 86400 seconds..