syzbot


WARNING: refcount bug in sync_timeline_signal

Status: moderation: reported on 2026/07/03 13:28
Subsystems: media dri
Labels: prio:normal
[Documentation on labels]
Reported-by: syzbot+ef4c2b1ce5c227d197d4@syzkaller.appspotmail.com
First crash: 9d03h, last: 9d03h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
441542c5-111e-4b51-b7cc-89b03281ab87 assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ WARNING: refcount bug in sync_timeline_signal 2026/07/01 00:59 2026/07/01 00:59 2026/07/01 01:31 93f579545ae410f5bccfa141d2e7bf03178f036c

			
		
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING: refcount bug in sync_timeline_signal 13 1 436d 436d 0/3 auto-obsoleted due to no activity on 2025/08/06 13:02

Sample crash report:
------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: lib/refcount.c:25 at refcount_warn_saturate+0x9f/0x110 lib/refcount.c:25, CPU#1: syz.0.371/6839
Modules linked in:
CPU: 1 UID: 0 PID: 6839 Comm: syz.0.371 Tainted: G             L      syzkaller #0 PREEMPT_{RT,(full)} 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
RIP: 0010:refcount_warn_saturate+0x9f/0x110 lib/refcount.c:25
Code: eb 66 85 db 74 3e 83 fb 01 75 4c e8 2b 4e 13 fd 48 8d 3d 84 9e e5 0a 67 48 0f b9 3a eb 4a e8 18 4e 13 fd 48 8d 3d 81 9e e5 0a <67> 48 0f b9 3a eb 37 e8 05 4e 13 fd 48 8d 3d 7e 9e e5 0a 67 48 0f
RSP: 0018:ffffc9000d94fc48 EFLAGS: 00010287
RAX: ffffffff84b1cbb8 RBX: 0000000000000002 RCX: 0000000000080000
RDX: ffffc9000ebf5000 RSI: 000000000000075b RDI: ffffffff8f976a40
RBP: ffffc9000d94fd30 R08: ffff888020fe8000 R09: 0000000000000005
R10: 0000000000000100 R11: 0000000000000004 R12: dffffc0000000000
R13: ffff88803fb198b8 R14: ffff88803fb198b0 R15: ffff88803fb19800
FS:  00007f643fc5d6c0(0000) GS:ffff888125fca000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000bd0030 CR3: 000000003f844000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __refcount_add include/linux/refcount.h:-1 [inline]
 __refcount_inc include/linux/refcount.h:366 [inline]
 refcount_inc include/linux/refcount.h:383 [inline]
 kref_get include/linux/kref.h:45 [inline]
 dma_fence_get include/linux/dma-fence.h:317 [inline]
 sync_timeline_signal+0x472/0x810 drivers/dma-buf/sw_sync.c:224
 sw_sync_ioctl_inc drivers/dma-buf/sw_sync.c:405 [inline]
 sw_sync_ioctl+0x522/0x1110 drivers/dma-buf/sw_sync.c:470
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xff/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6441a2ce59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f643fc5d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6441ca6090 RCX: 00007f6441a2ce59
RDX: 00002000000002c0 RSI: 0000000040045701 RDI: 0000000000000003
RBP: 00007f6441ac2e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6441ca6128 R14: 00007f6441ca6090 R15: 00007ffe849b15e8
 </TASK>
----------------
Code disassembly (best guess):
   0:	eb 66                	jmp    0x68
   2:	85 db                	test   %ebx,%ebx
   4:	74 3e                	je     0x44
   6:	83 fb 01             	cmp    $0x1,%ebx
   9:	75 4c                	jne    0x57
   b:	e8 2b 4e 13 fd       	call   0xfd134e3b
  10:	48 8d 3d 84 9e e5 0a 	lea    0xae59e84(%rip),%rdi        # 0xae59e9b
  17:	67 48 0f b9 3a       	ud1    (%edx),%rdi
  1c:	eb 4a                	jmp    0x68
  1e:	e8 18 4e 13 fd       	call   0xfd134e3b
  23:	48 8d 3d 81 9e e5 0a 	lea    0xae59e81(%rip),%rdi        # 0xae59eab
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	eb 37                	jmp    0x68
  31:	e8 05 4e 13 fd       	call   0xfd134e3b
  36:	48 8d 3d 7e 9e e5 0a 	lea    0xae59e7e(%rip),%rdi        # 0xae59ebb
  3d:	67                   	addr32
  3e:	48                   	rex.W
  3f:	0f                   	.byte 0xf

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/06/29 13:19 linux-next 3d5670d672ae 6a0c72dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in sync_timeline_signal
* Struck through repros no longer work on HEAD.