------------[ cut here ]------------ Trying to write to read-only block-device loop0 (partno 0) WARNING: CPU: 0 PID: 2971 at block/blk-core.c:630 bio_check_ro block/blk-core.c:630 [inline] WARNING: CPU: 0 PID: 2971 at block/blk-core.c:630 submit_bio_checks+0x17a3/0x1ca0 block/blk-core.c:743 Modules linked in: CPU: 0 PID: 2971 Comm: udevd Not tainted 5.16.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bio_check_ro block/blk-core.c:630 [inline] RIP: 0010:submit_bio_checks+0x17a3/0x1ca0 block/blk-core.c:743 Code: 00 00 45 0f b6 a4 24 90 05 00 00 48 8d 74 24 60 48 89 ef e8 2f 2d fe ff 48 c7 c7 a0 10 03 8a 48 89 c6 44 89 e2 e8 e9 53 3b 05 <0f> 0b e9 94 f3 ff ff e8 91 85 b2 fd e8 ac e4 7e 05 31 ff 89 c3 89 RSP: 0018:ffffc90001d0f1d8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88801a616120 RCX: 0000000000000000 RDX: ffff88807d80d700 RSI: ffffffff815f0948 RDI: fffff520003a1e2d RBP: ffff8880704aa780 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815ea6ee R11: 0000000000000000 R12: 0000000000000000 R13: ffff8880704aa790 R14: ffff8880110a4680 R15: ffff88801a61662c FS: 00007fcb3b210840(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000000005c CR3: 0000000023684000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: blk_mq_get_request block/blk-mq.c:2589 [inline] blk_mq_submit_bio+0x16c5/0x22b0 block/blk-mq.c:2633 __submit_bio block/blk-core.c:851 [inline] __submit_bio_noacct_mq block/blk-core.c:926 [inline] submit_bio_noacct block/blk-core.c:952 [inline] submit_bio_noacct+0x82c/0xa20 block/blk-core.c:941 submit_bio block/blk-core.c:1013 [inline] submit_bio+0x1ea/0x430 block/blk-core.c:971 submit_bh_wbc+0x5e8/0x7e0 fs/buffer.c:3054 __block_write_full_page+0x875/0x1350 fs/buffer.c:1809 block_write_full_page+0x14d/0x190 fs/buffer.c:2980 __writepage+0x60/0x180 mm/page-writeback.c:2320 write_cache_pages+0x6f4/0x10c0 mm/page-writeback.c:2255 generic_writepages mm/page-writeback.c:2346 [inline] generic_writepages+0xe2/0x150 mm/page-writeback.c:2335 do_writepages+0x1ab/0x690 mm/page-writeback.c:2364 filemap_fdatawrite_wbc mm/filemap.c:407 [inline] filemap_fdatawrite_wbc+0x143/0x1b0 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:440 [inline] filemap_write_and_wait_range mm/filemap.c:718 [inline] filemap_write_and_wait_range+0xe1/0x1a0 mm/filemap.c:712 filemap_write_and_wait include/linux/fs.h:2865 [inline] sync_blockdev block/bdev.c:204 [inline] sync_blockdev+0x67/0x90 block/bdev.c:200 bdev_disk_changed+0x18b/0x1100 block/partitions/core.c:678 blkdev_get_whole+0x206/0x2d0 block/bdev.c:684 blkdev_get_by_dev.part.0+0x5c6/0xc70 block/bdev.c:826 blkdev_get_by_dev+0x6b/0x80 block/bdev.c:860 blkdev_reread_part block/ioctl.c:103 [inline] blkdev_common_ioctl+0x13a2/0x1910 block/ioctl.c:525 blkdev_ioctl+0x2ca/0x800 block/ioctl.c:603 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fcb3b36d0e7 Code: 3c 1c e8 1c ff ff ff 85 c0 79 87 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 61 9d 0c 00 f7 d8 64 89 01 48 RSP: 002b:00007ffee23af318 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fcb3b36d0e7 RDX: 0000000000000000 RSI: 000000000000125f RDI: 000000000000000c RBP: 000055a7a7961370 R08: 0000000000000008 R09: 000055a7a795ca60 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffee23af4f8 R13: 000000000000000c R14: 0000000000000000 R15: 0000000000000000