------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 3 PID: 5354 at lib/refcount.c:28 refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28
Modules linked in:
CPU: 3 UID: 0 PID: 5354 Comm: udevd Not tainted 6.14.0-rc3-syzkaller-00060-g6537cfb395f3 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28
Code: ff 89 de e8 e8 56 f5 fc 84 db 0f 85 66 ff ff ff e8 3b 5c f5 fc c6 05 b7 5b 86 0b 01 90 48 c7 c7 80 01 d3 8b e8 d7 8d b5 fc 90 <0f> 0b 90 90 e9 43 ff ff ff e8 18 5c f5 fc 0f b6 1d 92 5b 86 0b 31
RSP: 0018:ffffc90000708d90 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff817a1229
RDX: ffff888022e82440 RSI: ffffffff817a1236 RDI: 0000000000000001
RBP: ffff888034174998 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000002 R12: ffff888034174998
R13: ffff888028042400 R14: 0000000000000014 R15: 0000000000000000
FS: 00007fc4a74ae280(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00004000000094e4 CR3: 000000001c690000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000024
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
__refcount_sub_and_test include/linux/refcount.h:275 [inline]
__refcount_dec_and_test include/linux/refcount.h:307 [inline]
refcount_dec_and_test include/linux/refcount.h:325 [inline]
p9_req_put+0x1ec/0x250 net/9p/client.c:404
req_done+0x1e7/0x2f0 net/9p/trans_virtio.c:147
vring_interrupt drivers/virtio/virtio_ring.c:2715 [inline]
vring_interrupt+0x31b/0x400 drivers/virtio/virtio_ring.c:2690
__handle_irq_event_percpu+0x229/0x7d0 kernel/irq/handle.c:158
handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210
handle_edge_irq+0x263/0xd10 kernel/irq/chip.c:831
generic_handle_irq_desc include/linux/irqdesc.h:173 [inline]
handle_irq arch/x86/kernel/irq.c:247 [inline]
call_irq_handler arch/x86/kernel/irq.c:259 [inline]
__common_interrupt+0xdf/0x250 arch/x86/kernel/irq.c:285
common_interrupt+0xba/0xe0 arch/x86/kernel/irq.c:278
asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693
RIP: 0010:__sanitizer_cov_trace_pc+0x18/0x70 kernel/kcov.c:213
Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 15 54 fa 49 7e 65 8b 05 55 fa 49 7e a9 00 01 ff 00 <48> 8b 34 24 74 1d f6 c4 01 74 43 a9 00 00 0f 00 75 3c a9 00 00 f0
RSP: 0018:ffffc90003767710 EFLAGS: 00000246
RAX: 0000000080000000 RBX: 000000000000006c RCX: ffffffff8484632f
RDX: ffff888022e82440 RSI: 0000000000000000 RDI: 0000000000000001
RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90003767808
R13: ffff888107e368b0 R14: 000000000000006c R15: 0000000000000000
tomoyo_check_acl+0x309/0x410 security/tomoyo/domain.c:183
tomoyo_path_permission security/tomoyo/file.c:586 [inline]
tomoyo_path_permission+0x1ff/0x3b0 security/tomoyo/file.c:573
tomoyo_check_open_permission+0x37d/0x3c0 security/tomoyo/file.c:777
tomoyo_file_open+0x6b/0x90 security/tomoyo/tomoyo.c:334
security_file_open+0x84/0x1e0 security/security.c:3114
do_dentry_open+0x57c/0x1c40 fs/open.c:933
vfs_open+0x82/0x3f0 fs/open.c:1086
do_open fs/namei.c:3830 [inline]
path_openat+0x1e88/0x2d80 fs/namei.c:3989
do_filp_open+0x20c/0x470 fs/namei.c:4016
do_sys_openat2+0x17a/0x1e0 fs/open.c:1428
do_sys_open fs/open.c:1443 [inline]
__do_sys_openat fs/open.c:1459 [inline]
__se_sys_openat fs/open.c:1454 [inline]
__x64_sys_openat+0x175/0x210 fs/open.c:1454
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc4a711a477
Code: 10 00 00 00 44 8b 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 82 69 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffcf307e838 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 000055992a9ae1f0 RCX: 00007fc4a711a477
RDX: 0000000000090800 RSI: 000055992a99eb60 RDI: 00000000ffffff9c
RBP: 000055992aa20c00 R08: 0000000000090800 R09: 000055992a99eb60
R10: 0000000000000000 R11: 0000000000000287 R12: 000055992a99eb60
R13: 00000000000000ff R14: 00005598fb90f1c4 R15: 0000000000000000
----------------
Code disassembly (best guess):
0: 00 90 90 90 90 90 add %dl,-0x6f6f6f70(%rax)
6: 90 nop
7: 90 nop
8: 90 nop
9: 90 nop
a: 90 nop
b: 90 nop
c: 90 nop
d: 90 nop
e: 90 nop
f: 90 nop
10: 90 nop
11: 90 nop
12: f3 0f 1e fa endbr64
16: 65 48 8b 15 54 fa 49 mov %gs:0x7e49fa54(%rip),%rdx # 0x7e49fa72
1d: 7e
1e: 65 8b 05 55 fa 49 7e mov %gs:0x7e49fa55(%rip),%eax # 0x7e49fa7a
25: a9 00 01 ff 00 test $0xff0100,%eax
* 2a: 48 8b 34 24 mov (%rsp),%rsi <-- trapping instruction
2e: 74 1d je 0x4d
30: f6 c4 01 test $0x1,%ah
33: 74 43 je 0x78
35: a9 00 00 0f 00 test $0xf0000,%eax
3a: 75 3c jne 0x78
3c: a9 .byte 0xa9
3d: 00 00 add %al,(%rax)
3f: f0 lock