Oops: divide error: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 7015 Comm: syz.1.212 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 RIP: 0010:too_many_discard_blocks drivers/md/dm-cache-target.c:2386 [inline] RIP: 0010:calculate_discard_block_size drivers/md/dm-cache-target.c:2397 [inline] RIP: 0010:cache_create drivers/md/dm-cache-target.c:2525 [inline] RIP: 0010:cache_ctr+0x1a86/0x2bf0 drivers/md/dm-cache-target.c:2649 Code: 4c 8b 30 31 ff 4c 89 f6 e8 87 30 f5 f8 4d 85 f6 0f 84 81 00 00 00 4c 89 f3 48 c1 eb 20 45 89 ec 48 85 db 74 0a 4c 89 f0 31 d2 <49> f7 f4 eb 08 44 89 f0 31 d2 41 f7 f4 48 3d 00 40 00 00 76 14 4d RSP: 0018:ffffc90003caf860 EFLAGS: 00010246 RAX: 003fffffffffffff RBX: 00000000003fffff RCX: 0000000000080000 RDX: 0000000000000000 RSI: 0000000000007259 RDI: 000000000000725a RBP: ffffc90003cafa38 R08: ffffc900048eb007 R09: 0000000000000000 R10: ffffc900048eb000 R11: fffff5200091d601 R12: 0000000000000000 R13: 0000000100000000 R14: 003fffffffffffff R15: 1ffff1100f94f062 FS: 00007f163cbae6c0(0000) GS:ffff888123159000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c31a94b CR3: 00000000772b2000 CR4: 00000000003526f0 Call Trace: dm_table_add_target+0x58d/0xc70 drivers/md/dm-table.c:749 populate_table drivers/md/dm-ioctl.c:1602 [inline] table_load+0x325/0x8a0 drivers/md/dm-ioctl.c:1645 ctl_ioctl drivers/md/dm-ioctl.c:2221 [inline] dm_ctl_ioctl+0x9ec/0xe10 drivers/md/dm-ioctl.c:2243 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x00007f163bd9fb19 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:00007f163cbae028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f163c025fa0 RCX: 00007f163bd9fb19 RDX: 0000200000000000 RSI: 00000000c138fd09 RDI: 0000000000000003 RBP: 00007f163be37b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f163c026038 R14: 00007f163c025fa0 R15: 00007ffdd74dbf58 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:too_many_discard_blocks drivers/md/dm-cache-target.c:2386 [inline] RIP: 0010:calculate_discard_block_size drivers/md/dm-cache-target.c:2397 [inline] RIP: 0010:cache_create drivers/md/dm-cache-target.c:2525 [inline] RIP: 0010:cache_ctr+0x1a86/0x2bf0 drivers/md/dm-cache-target.c:2649 Code: 4c 8b 30 31 ff 4c 89 f6 e8 87 30 f5 f8 4d 85 f6 0f 84 81 00 00 00 4c 89 f3 48 c1 eb 20 45 89 ec 48 85 db 74 0a 4c 89 f0 31 d2 <49> f7 f4 eb 08 44 89 f0 31 d2 41 f7 f4 48 3d 00 40 00 00 76 14 4d RSP: 0018:ffffc90003caf860 EFLAGS: 00010246 RAX: 003fffffffffffff RBX: 00000000003fffff RCX: 0000000000080000 RDX: 0000000000000000 RSI: 0000000000007259 RDI: 000000000000725a RBP: ffffc90003cafa38 R08: ffffc900048eb007 R09: 0000000000000000 R10: ffffc900048eb000 R11: fffff5200091d601 R12: 0000000000000000 R13: 0000000100000000 R14: 003fffffffffffff R15: 1ffff1100f94f062 FS: 00007f163cbae6c0(0000) GS:ffff888123259000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556600a38 CR3: 00000000772b2000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 4c 8b 30 mov (%rax),%r14 3: 31 ff xor %edi,%edi 5: 4c 89 f6 mov %r14,%rsi 8: e8 87 30 f5 f8 call 0xf8f53094 d: 4d 85 f6 test %r14,%r14 10: 0f 84 81 00 00 00 je 0x97 16: 4c 89 f3 mov %r14,%rbx 19: 48 c1 eb 20 shr $0x20,%rbx 1d: 45 89 ec mov %r13d,%r12d 20: 48 85 db test %rbx,%rbx 23: 74 0a je 0x2f 25: 4c 89 f0 mov %r14,%rax 28: 31 d2 xor %edx,%edx * 2a: 49 f7 f4 div %r12 <-- trapping instruction 2d: eb 08 jmp 0x37 2f: 44 89 f0 mov %r14d,%eax 32: 31 d2 xor %edx,%edx 34: 41 f7 f4 div %r12d 37: 48 3d 00 40 00 00 cmp $0x4000,%rax 3d: 76 14 jbe 0x53 3f: 4d rex.WRB