9pnet: Tag 0 still in use ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: lib/refcount.c:28 at refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28, CPU#1: syz-executor/14684 Modules linked in: CPU: 1 UID: 0 PID: 14684 Comm: syz-executor Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28 Code: cc e8 b0 53 0f fd 48 8d 3d 89 44 e8 0b 67 48 0f b9 3a e8 9f 53 0f fd 5b 5d e9 d8 4f 93 06 e8 93 53 0f fd 48 8d 3d 7c 44 e8 0b <67> 48 0f b9 3a e8 82 53 0f fd 5b 5d c3 cc cc cc cc e8 76 53 0f fd RSP: 0018:ffffc90005b87c38 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88803fcb8778 RCX: ffffffff84f95c3b RDX: ffff888035a20000 RSI: ffffffff84f95ccd RDI: ffffffff90e1a150 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000004 R10: 0000000000000003 R11: 0000000000000000 R12: ffff88803fcb8778 R13: ffff8880277a2400 R14: ffffc90005b87cc8 R15: ffff8880423ee900 FS: 000055557ef38500(0000) GS:ffff8880d6483000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6b777ea540 CR3: 00000000348a9000 CR4: 0000000000352ef0 Call Trace: __refcount_sub_and_test include/linux/refcount.h:400 [inline] __refcount_dec_and_test include/linux/refcount.h:432 [inline] refcount_dec_and_test include/linux/refcount.h:450 [inline] p9_req_put+0x1ec/0x250 net/9p/client.c:281 p9_tag_cleanup net/9p/client.c:308 [inline] p9_client_destroy.cold+0x20/0xe9 net/9p/client.c:963 v9fs_session_close+0x49/0x2d0 fs/9p/v9fs.c:543 v9fs_kill_super+0x4d/0xa0 fs/9p/vfs_super.c:175 deactivate_locked_super+0xc1/0x1b0 fs/super.c:476 deactivate_super fs/super.c:509 [inline] deactivate_super+0xe7/0x110 fs/super.c:505 cleanup_mnt+0x21f/0x450 fs/namespace.c:1312 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0x157/0x670 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x666/0x870 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb0c579e097 Code: a2 c7 05 5c 06 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffe7ae83b18 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fb0c58321ca RCX: 00007fb0c579e097 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe7ae83bd0 RBP: 00007ffe7ae83bd0 R08: 00007ffe7ae84bd0 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe7ae84c60 R13: 00007fb0c58321ca R14: 000000000006d364 R15: 00007ffe7ae84ca0 ---------------- Code disassembly (best guess): 0: cc int3 1: e8 b0 53 0f fd call 0xfd0f53b6 6: 48 8d 3d 89 44 e8 0b lea 0xbe84489(%rip),%rdi # 0xbe84496 d: 67 48 0f b9 3a ud1 (%edx),%rdi 12: e8 9f 53 0f fd call 0xfd0f53b6 17: 5b pop %rbx 18: 5d pop %rbp 19: e9 d8 4f 93 06 jmp 0x6934ff6 1e: e8 93 53 0f fd call 0xfd0f53b6 23: 48 8d 3d 7c 44 e8 0b lea 0xbe8447c(%rip),%rdi # 0xbe844a6 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e8 82 53 0f fd call 0xfd0f53b6 34: 5b pop %rbx 35: 5d pop %rbp 36: c3 ret 37: cc int3 38: cc int3 39: cc int3 3a: cc int3 3b: e8 76 53 0f fd call 0xfd0f53b6