syzbot


WARNING: refcount bug in p9_req_put (3)

Status: upstream: reported C repro on 2024/01/26 09:05
Subsystems: v9fs
[Documentation on labels]
Reported-by: syzbot+d99d2414db66171fccbb@syzkaller.appspotmail.com
First crash: 746d, last: 2d06h
Discussions (11)
Title Replies (including bot) Last reply
[syzbot] Monthly v9fs report (Oct 2025) 0 (1) 2025/10/20 11:38
[syzbot] Monthly v9fs report (Sep 2025) 0 (1) 2025/09/17 08:29
[syzbot] Monthly v9fs report (Jul 2025) 0 (1) 2025/07/16 13:32
[syzbot] Monthly v9fs report (Jun 2025) 0 (1) 2025/06/16 09:59
[syzbot] Monthly v9fs report (May 2025) 0 (1) 2025/05/15 07:46
[syzbot] Monthly v9fs report (Apr 2025) 0 (1) 2025/04/14 10:17
[syzbot] Monthly v9fs report (Mar 2025) 0 (1) 2025/03/04 15:15
[syzbot] Monthly v9fs report (Jan 2025) 0 (1) 2025/01/02 13:21
[syzbot] Monthly v9fs report (Aug 2024) 0 (1) 2024/08/29 13:20
[syzbot] [net?] [v9fs?] WARNING: refcount bug in p9_req_put (3) 2 (4) 2024/07/22 06:14
[syzbot] Monthly v9fs report (Apr 2024) 0 (1) 2024/04/30 07:12
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING: refcount bug in p9_req_put 13 2 2289d 2330d 0/1 auto-closed as invalid on 2020/02/28 21:29
upstream WARNING: refcount bug in p9_req_put v9fs 13 syz inconclusive done 6 2086d 2639d 15/29 fixed on 2020/11/16 12:12
upstream WARNING: refcount bug in p9_req_put (2) v9fs 13 9 890d 1236d 0/29 auto-obsoleted due to no activity on 2023/12/09 05:29
Last patch testing requests (8)
Created Duration User Patch Repo Result
2025/08/25 12:30 18m retest repro upstream OK log
2025/08/25 12:30 19m retest repro upstream OK log
2025/06/05 14:36 18m retest repro upstream OK log
2025/06/05 14:36 18m retest repro upstream OK log
2025/06/05 14:36 18m retest repro upstream OK log
2025/01/24 14:02 11m retest repro upstream error
2024/11/24 01:46 29m retest repro upstream OK log
2024/09/23 13:53 19m retest repro upstream OK log

Sample crash report:
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: lib/refcount.c:28 at refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28, CPU#3: swapper/3/0
Modules linked in:
CPU: 3 UID: 0 PID: 0 Comm: swapper/3 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: 06 e8 50 8e 1f fd 48 8d 3d 69 21 da 0b 67 48 0f b9 3a e8 3f 8e 1f fd 5b 5d c3 cc cc cc cc e8 33 8e 1f fd 48 8d 3d 5c 21 da 0b <67> 48 0f b9 3a e8 22 8e 1f fd 5b 5d e9 9b 82 92 06 e8 16 8e 1f fd
RSP: 0018:ffffc900006f8d90 EFLAGS: 00010046
RAX: 0000000080010002 RBX: ffff88802ea59548 RCX: ffffffff84e76cdb
RDX: ffff88801e698000 RSI: ffffffff84e76d6d RDI: ffffffff90c18ed0
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000004
R10: 0000000000000003 R11: 0000000000000001 R12: ffff88802ea59548
R13: ffff88805cdca000 R14: 000000000000000b R15: 1ffff11004e8f00c
FS:  0000000000000000(0000) GS:ffff8880d68db000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe9684fbff8 CR3: 00000000551c9000 CR4: 0000000000352ef0
Call Trace:
 <IRQ>
 __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
 req_done+0x1dc/0x2e0 net/9p/trans_virtio.c:147
 vring_interrupt+0x33b/0x430 drivers/virtio/virtio_ring.c:2718
 __handle_irq_event_percpu+0x232/0x800 kernel/irq/handle.c:211
 handle_irq_event_percpu kernel/irq/handle.c:248 [inline]
 handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:265
 handle_edge_irq+0x375/0x970 kernel/irq/chip.c:855
 generic_handle_irq_desc include/linux/irqdesc.h:172 [inline]
 handle_irq arch/x86/kernel/irq.c:255 [inline]
 call_irq_handler arch/x86/kernel/irq.c:311 [inline]
 __common_interrupt+0xd8/0x2f0 arch/x86/kernel/irq.c:326
 common_interrupt+0xb9/0xe0 arch/x86/kernel/irq.c:319
 </IRQ>
 <TASK>
 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:688
RIP: 0010:pv_native_safe_halt+0xf/0x20 arch/x86/kernel/paravirt.c:82
Code: 56 78 02 c3 cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d 83 ac 14 00 fb f4 <e9> fc 31 03 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90
RSP: 0018:ffffc90000197df0 EFLAGS: 00000202
RAX: 0000000000c1e889 RBX: ffff88801e698000 RCX: ffffffff8b76d4b5
RDX: 0000000000000000 RSI: ffffffff8dc45b4f RDI: ffffffff8bfa3620
RBP: 0000000000000003 R08: 0000000000000001 R09: ffffed100d4e673d
R10: ffff88806a7339eb R11: 0000000000000000 R12: ffffed1003cd3000
R13: 0000000000000003 R14: ffffffff90b749d0 R15: 0000000000000000
 arch_safe_halt arch/x86/include/asm/paravirt.h:107 [inline]
 default_idle+0x9/0x10 arch/x86/kernel/process.c:767
 default_idle_call+0x6c/0xb0 kernel/sched/idle.c:122
 cpuidle_idle_call kernel/sched/idle.c:191 [inline]
 do_idle+0x35b/0x4b0 kernel/sched/idle.c:332
 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:430
 start_secondary+0x21d/0x2d0 arch/x86/kernel/smpboot.c:312
 common_startup_64+0x13e/0x148
 </TASK>
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	e8 50 8e 1f fd       	call   0xfd1f8e55
   5:	48 8d 3d 69 21 da 0b 	lea    0xbda2169(%rip),%rdi        # 0xbda2175
   c:	67 48 0f b9 3a       	ud1    (%edx),%rdi
  11:	e8 3f 8e 1f fd       	call   0xfd1f8e55
  16:	5b                   	pop    %rbx
  17:	5d                   	pop    %rbp
  18:	c3                   	ret
  19:	cc                   	int3
  1a:	cc                   	int3
  1b:	cc                   	int3
  1c:	cc                   	int3
  1d:	e8 33 8e 1f fd       	call   0xfd1f8e55
  22:	48 8d 3d 5c 21 da 0b 	lea    0xbda215c(%rip),%rdi        # 0xbda2185
* 29:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2e:	e8 22 8e 1f fd       	call   0xfd1f8e55
  33:	5b                   	pop    %rbx
  34:	5d                   	pop    %rbp
  35:	e9 9b 82 92 06       	jmp    0x69282d5
  3a:	e8 16 8e 1f fd       	call   0xfd1f8e55

Crashes (99):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/02/04 00:20 upstream de0674d9bc69 42b01fab .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/10/18 11:08 upstream f406055cb18c 1c8c8cd8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/10/01 07:29 upstream 4b81e2eb9e4d 65a0eece .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/09/20 09:15 upstream 1522b530ac3e 67c37560 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/09/19 00:32 upstream cbf658dd0941 e2beed91 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/09/09 02:33 upstream f777d1112ee5 d291dd2d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/09/07 10:56 upstream b236920731dd d291dd2d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/09/03 09:58 upstream e6b9dce0aeeb 96a211bc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/07/29 11:23 upstream ced1b9e0392d c4a95487 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/07/22 13:25 upstream 89be9a83ccf1 8e9d1dc1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/07/12 09:55 upstream 379f604cc3dc 3cda49cf .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/07/09 14:52 upstream 733923397fd9 956bd956 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/07/09 05:09 upstream 733923397fd9 f4e5e155 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/07/08 16:21 upstream d7b8f8e20813 4d9fdfa4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/06/26 21:52 upstream ee88bddf7f2f 1ae8177e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/06/19 01:19 upstream 74b4cc9b8780 ed3e87f7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/06/18 06:41 upstream 4663747812d1 74c9d252 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/06/18 05:31 upstream 4663747812d1 74c9d252 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/06/16 18:13 upstream e04c78d86a96 d1716036 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/06/16 17:28 upstream e04c78d86a96 d1716036 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/06/15 14:23 upstream 8c6bc74c7f89 5f4b362d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/06/12 15:29 upstream 2c4a1f3fe03e 98683f8f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/06/11 12:54 upstream aef17cb3d3c4 5d7e17ca .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/06/06 09:02 upstream e271ed52b344 3d899f2c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/05/22 14:04 upstream d608703fcdd9 0919b50b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/05/22 14:03 upstream d608703fcdd9 0919b50b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/05/12 16:50 upstream 82f2b0b97b36 f6671af7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/05/10 07:32 upstream 0e1329d4045c 77908e5f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/04/21 04:47 upstream 6fea5fabd332 2a20f901 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/04/11 18:22 upstream 900241a5cc15 12ba9c21 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/04/11 17:06 upstream 900241a5cc15 12ba9c21 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/04/05 10:03 upstream 9f867ba24d36 c53ea9c9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/03/21 15:04 upstream b3ee1e460951 62330552 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/03/21 14:26 upstream b3ee1e460951 62330552 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/03/07 05:51 upstream f315296c92fd 831e3629 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/02/24 13:44 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/02/21 05:22 upstream e9a8cac0bf89 0808a665 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/02/19 12:47 upstream 6537cfb395f3 cbd8edab .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/02/18 15:50 upstream 2408a807bfc3 c37c7249 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2024/12/20 16:15 upstream 8faabc041a00 49cfeac8 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2024/11/10 01:22 upstream da4373fbcf00 6b856513 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2024/07/22 06:13 upstream 7846b618e0a4 b88348e9 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in p9_req_put
2025/11/21 02:16 upstream 8e621c9a3375 280ea308 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/10/21 08:08 upstream 6548d364a3e8 9832ed61 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/10/07 05:26 upstream c746c3b51698 8ef35d49 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/09/18 19:30 upstream 8b789f2b7602 e2beed91 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/08/11 12:21 upstream 8f5ae30d69d7 32a0e5ed .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/07/20 00:39 upstream 4871b7cb27f4 7117feec .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/05/16 23:18 upstream 3c21441eeffc f41472b0 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/05/14 22:05 upstream 9f35e33144ae a4fa04ef .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/05/05 15:55 upstream 92a09c47464d 6ca47dd8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/05/03 09:23 upstream 00b827f0cffa b0714e37 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/05/03 06:59 upstream 00b827f0cffa b0714e37 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/03/24 08:23 upstream 586de92313fc 875573af .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/03/11 11:26 upstream 4d872d51bc9d 16256247 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/02/26 01:19 upstream 2a1944bff549 d34966d1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2025/02/18 10:10 upstream 2408a807bfc3 c37c7249 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
2024/01/21 21:11 upstream 4fbbed787267 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in p9_req_put
* Struck through repros no longer work on HEAD.