WARNING in cache_resume

Status: upstream: reported on 2026/10/28 02:04
Reported-by: syzbot+0dc55ce55ba12aca72b2@syzkaller.appspotmail.com
First crash: 16d, last: 15d
▶ ▼ Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in cache_resume -1 3 14d 21d 0/3 upstream: reported on 2026/10/23 06:50
linux-5.15 WARNING in cache_resume -1 syz, C 2 14d 15d 0/3 upstream: reported C repro on 2026/10/29 10:19

Sample crash report:
DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x1, magic = 0xffff88802036c3b0, owner = 0xffff888033a25a00, curr 0xffff88802d5a1e00, list empty
WARNING: CPU: 1 PID: 9746 at kernel/locking/rwsem.c:1370 __up_write kernel/locking/rwsem.c:1369 [inline]
WARNING: CPU: 1 PID: 9746 at kernel/locking/rwsem.c:1370 up_write+0x389/0x410 kernel/locking/rwsem.c:1626
Modules linked in:
CPU: 1 PID: 9746 Comm: syz.0.950 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:__up_write kernel/locking/rwsem.c:1369 [inline]
RIP: 0010:up_write+0x389/0x410 kernel/locking/rwsem.c:1626
Code: 4c 0f 44 d0 48 c7 c7 e0 c4 ea 8a 48 c7 c6 20 c7 ea 8a 48 8b 14 24 4c 89 f1 4d 89 e0 4d 89 f9 41 52 e8 2b 3a e9 ff 48 83 c4 08 <0f> 0b e9 82 fd ff ff 48 c7 c1 30 0d 8e 8f 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc9000b457ab8 EFLAGS: 00010286
RAX: 72d670018c0b5100 RBX: ffff88802036c3b0 RCX: 0000000000080000
RDX: ffffc9000eb09000 RSI: 000000000001415b RDI: 000000000001415c
RBP: dffffc0000000000 R08: ffffc9000b4576a7 R09: 1ffff9200168aed4
R10: dffffc0000000000 R11: fffff5200168aed5 R12: ffff888033a25a00
R13: ffff88802036c408 R14: ffff88802036c3b0 R15: ffff88802d5a1e00
FS:  00007fc5f1e7a6c0(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fec6b5ac000 CR3: 0000000049e57000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 allow_background_work drivers/md/dm-cache-target.c:1042 [inline]
 cache_resume+0x87/0xf0 drivers/md/dm-cache-target.c:3125
 dm_table_resume_targets+0x27e/0x3d0 drivers/md/dm-table.c:2149
 __dm_resume+0x22/0x1b0 drivers/md/dm.c:2846
 dm_resume+0x21f/0x2e0 drivers/md/dm.c:2892
 do_resume drivers/md/dm-ioctl.c:1232 [inline]
 dev_suspend+0x3c4/0x700 drivers/md/dm-ioctl.c:1264
 ctl_ioctl drivers/md/dm-ioctl.c:2115 [inline]
 dm_ctl_ioctl+0x975/0xd00 drivers/md/dm-ioctl.c:2137
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc5f0f9f559
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:00007fc5f1e7a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc5f1226180 RCX: 00007fc5f0f9f559
RDX: 0000200000000580 RSI: 00000000c138fd06 RDI: 0000000000000003
RBP: 00007fc5f1036b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc5f1226218 R14: 00007fc5f1226180 R15: 00007ffc7901bcf8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/29 09:19 linux-6.6.y 0aebf2870d53 b1d00f76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in cache_resume
2026/10/28 02:03 linux-6.6.y 0aebf2870d53 96923c60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in cache_resume
* Struck through repros no longer work on HEAD.