------------[ cut here ]------------ WARNING: CPU: 0 PID: 4280 at block/bdev.c:930 blk_to_file_flags block/bdev.c:930 [inline] WARNING: CPU: 0 PID: 4280 at block/bdev.c:930 bdev_file_open_by_dev+0x112/0x270 block/bdev.c:963 Modules linked in: CPU: 0 PID: 4280 Comm: syz-executor.4 Not tainted 6.8.0-rc4-next-20240212-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:blk_to_file_flags block/bdev.c:930 [inline] RIP: 0010:bdev_file_open_by_dev+0x112/0x270 block/bdev.c:963 Code: 94 9e 13 fd 44 89 e8 83 e0 02 75 23 44 89 ee 83 e6 01 45 31 e4 31 ff e8 7c 9e 13 fd 44 89 e8 83 e0 01 75 18 e8 2f 9a 13 fd 90 <0f> 0b 90 eb 12 e8 24 9a 13 fd 41 bc 01 00 00 00 eb 05 e8 17 9a 13 RSP: 0018:ffffc9001452fb58 EFLAGS: 00010287 RAX: ffffffff84804281 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc900036f9000 RSI: 0000000000000758 RDI: 0000000000000759 RBP: ffff88801d090000 R08: ffffffff84804274 R09: 1ffff11003a1210b R10: dffffc0000000000 R11: ffffed1003a1210c R12: 0000000000000000 R13: 0000000000000010 R14: 0000000000000000 R15: 0000000000000000 FS: 00007efef22836c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000086948000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: disk_scan_partitions+0x1be/0x2b0 block/genhd.c:369 blkdev_common_ioctl+0x15cc/0x2880 block/ioctl.c:558 blkdev_ioctl+0x532/0x740 block/ioctl.c:627 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:857 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7efef147dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007efef22830c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007efef15abf80 RCX: 00007efef147dda9 RDX: 0000000000000000 RSI: 000000000000125f RDI: 0000000000000003 RBP: 00007efef14ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007efef15abf80 R15: 00007fff306cc678