WARNING in virtio_dev_remove

Status: upstream: reported C repro on 2026/08/02 22:27
Reported-by: syzbot+46f7ea574c366bf45e24@syzkaller.appspotmail.com
First crash: 1d23h, last: 1d22h
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in virtio_dev_remove origin:upstream -1 syz, C 6 1d15h 4d15h 0/3 upstream: reported C repro on 2026/07/31 06:23
upstream WARNING in virtio_dev_remove virt prio:low -1 syz, C error 17 1d21h 3d21h 0/29 upstream: reported C repro on 2026/08/01 00:00
linux-6.6 WARNING in virtio_dev_remove -1 4 1d12h 1d13h 0/2 upstream: reported on 2026/08/03 08:22
android-6-12 WARNING in virtio_dev_remove -1 syz, C 4 5d10h 5d11h 0/1 premoderation: reported C repro on 2026/07/30 10:31

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4360 at drivers/virtio/virtio.c:303 virtio_dev_remove+0x171/0x1a0 drivers/virtio/virtio.c:303
Modules linked in:
CPU: 0 PID: 4360 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:virtio_dev_remove+0x171/0x1a0 drivers/virtio/virtio.c:303
Code: 08 48 89 df e8 10 bf 7b fd 4c 89 f7 ff 13 0c 01 0f b6 f0 4c 89 f7 4c 89 e0 5b 41 5c 41 5d 41 5e 41 5f 5d ff e0 e8 2f 9c 36 fd <0f> 0b e9 76 ff ff ff 44 89 e9 80 e1 07 38 c1 0f 8c d6 fe ff ff 4c
RSP: 0000:ffffc9000322f8a0 EFLAGS: 00010293
RAX: ffffffff84426081 RBX: ffff88801e5f05c8 RCX: ffff888022e7d940
RDX: 0000000000000000 RSI: 00000000000000ff RDI: 0000000000000000
RBP: 00000000000000ff R08: ffffffff901ee0f7 R09: 1ffffffff203dc1e
R10: dffffc0000000000 R11: fffffbfff203dc1f R12: 1ffff11003cbe0b9
R13: dffffc0000000000 R14: ffff88801e5f0000 R15: ffffffff8a866378
FS:  0000555586e09500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000559b5e145950 CR3: 00000000257c2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __device_release_driver drivers/base/dd.c:1247 [inline]
 device_release_driver_internal+0x44c/0x710 drivers/base/dd.c:1282
 bus_remove_device+0x2dd/0x400 drivers/base/bus.c:531
 device_del+0x63f/0xa80 drivers/base/core.c:3615
 device_unregister+0x1c/0xc0 drivers/base/core.c:3660
 unregister_virtio_device+0x33/0x60 drivers/virtio/virtio.c:449
 virtio_pci_remove+0x7b/0xe0 drivers/virtio/virtio_pci_common.c:589
 pci_device_remove+0x93/0x230 drivers/pci/pci-driver.c:471
 __device_release_driver drivers/base/dd.c:1247 [inline]
 device_release_driver_internal+0x44c/0x710 drivers/base/dd.c:1282
 pci_stop_dev drivers/pci/remove.c:23 [inline]
 pci_stop_bus_device+0x108/0x140 drivers/pci/remove.c:83
 pci_stop_and_remove_bus_device drivers/pci/remove.c:117 [inline]
 pci_stop_and_remove_bus_device_locked+0x16/0x30 drivers/pci/remove.c:125
 remove_store+0xe2/0x140 drivers/pci/pci-sysfs.c:494
 kernfs_fop_write_iter+0x3a8/0x500 fs/kernfs/file.c:296
 call_write_iter include/linux/fs.h:2173 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x748/0xd70 fs/read_write.c:594
 ksys_write+0x153/0x260 fs/read_write.c:647
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fb1f9995019
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:00007ffea790c3a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fb1f9c1cfa0 RCX: 00007fb1f9995019
RDX: 0000000000000001 RSI: 0000200000000200 RDI: 0000000000000004
RBP: 00007fb1f9a2c00c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb1f9c1cfac R14: 00007fb1f9c1cfa0 R15: 00007fb1f9c1cfa0
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/02 23:22 linux-5.15.y 6e2fd6534337 e611ffe1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in virtio_dev_remove
2026/08/02 22:29 linux-5.15.y 6e2fd6534337 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in virtio_dev_remove
2026/08/02 22:27 linux-5.15.y 6e2fd6534337 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in virtio_dev_remove
* Struck through repros no longer work on HEAD.