------------[ cut here ]------------ Trying to write to read-only block-device loop4 (partno 0) WARNING: CPU: 0 PID: 11113 at block/blk-core.c:590 bio_check_ro block/blk-core.c:590 [inline] WARNING: CPU: 0 PID: 11113 at block/blk-core.c:590 submit_bio_checks+0x1700/0x1bf0 block/blk-core.c:703 Modules linked in: CPU: 0 PID: 11113 Comm: udevd Not tainted 5.17.0-rc2-syzkaller-00167-gdcb85f85fa6f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bio_check_ro block/blk-core.c:590 [inline] RIP: 0010:submit_bio_checks+0x1700/0x1bf0 block/blk-core.c:703 Code: 00 00 45 0f b6 a4 24 50 05 00 00 48 8d 74 24 60 48 89 ef e8 62 45 fe ff 48 c7 c7 80 30 04 8a 48 89 c6 44 89 e2 e8 1d 3e 3e 05 <0f> 0b e9 a0 f3 ff ff e8 c4 57 b0 fd e8 cf 2a 82 05 31 ff 89 c3 89 RSP: 0018:ffffc9000495f4a0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88801a884fd8 RCX: 0000000000000000 RDX: ffff88807f6f9d00 RSI: ffffffff815fb318 RDI: fffff5200092be86 RBP: ffff8880289098c0 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815f507e R11: 0000000000000000 R12: 0000000000000000 R13: ffff8880289098d0 R14: ffff888011085c00 R15: ffff88801a88526c FS: 00007f1150865840(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f11520af280 CR3: 000000007f569000 CR4: 00000000003506e0 Call Trace: __submit_bio+0xaf/0x360 block/blk-core.c:802 __submit_bio_noacct_mq block/blk-core.c:881 [inline] submit_bio_noacct block/blk-core.c:907 [inline] submit_bio_noacct+0x6c9/0x8a0 block/blk-core.c:896 submit_bio block/blk-core.c:968 [inline] submit_bio+0x1ea/0x430 block/blk-core.c:926 submit_bh_wbc+0x5e8/0x7e0 fs/buffer.c:3055 __block_write_full_page+0x8bb/0x13a0 fs/buffer.c:1809 block_write_full_page+0x14d/0x190 fs/buffer.c:2981 __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:384 [inline] filemap_fdatawrite_wbc+0x143/0x1b0 mm/filemap.c:374 __filemap_fdatawrite_range mm/filemap.c:417 [inline] filemap_write_and_wait_range mm/filemap.c:669 [inline] filemap_write_and_wait_range+0xe1/0x1a0 mm/filemap.c:663 filemap_write_and_wait include/linux/fs.h:2794 [inline] sync_blockdev block/bdev.c:199 [inline] sync_blockdev block/bdev.c:195 [inline] blkdev_put+0x473/0x950 block/bdev.c:900 blkdev_close+0x6a/0x80 block/fops.c:515 __fput+0x286/0x9f0 fs/file_table.c:311 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f11509bcfc3 Code: 48 ff ff ff b8 ff ff ff ff e9 3e ff ff ff 66 0f 1f 84 00 00 00 00 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 RSP: 002b:00007ffdb7d3be78 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 00007f11508656a8 RCX: 00007f11509bcfc3 RDX: 000000000000001c RSI: 00007ffdb7d3b678 RDI: 0000000000000008 RBP: 00007f115209ab70 R08: 0000000000000007 R09: 00007f11520971d0 R10: 000000000185d0cb R11: 0000000000000246 R12: 0000000000000002 R13: 00007f115208f5e0 R14: 0000000000000008 R15: 00007f1152075910