------------[ cut here ]------------ Trying to write to read-only block-device loop0 (partno 0) WARNING: CPU: 1 PID: 8517 at block/blk-core.c:704 bio_check_ro block/blk-core.c:704 [inline] WARNING: CPU: 1 PID: 8517 at block/blk-core.c:704 submit_bio_checks+0x1ac3/0x1f70 block/blk-core.c:832 Modules linked in: CPU: 1 PID: 8517 Comm: syz-executor486 Not tainted 5.10.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:704 [inline] RIP: 0010:submit_bio_checks+0x1ac3/0x1f70 block/blk-core.c:832 Code: 0f 85 50 04 00 00 8b 9b 6c 05 00 00 48 8d 74 24 58 48 89 ef e8 4e 0d fe ff 48 c7 c7 80 87 9b 89 48 89 c6 89 da e8 b9 ce 0b 05 <0f> 0b 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 80 3c 02 RSP: 0018:ffffc9000169f118 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888020e1cec0 RSI: ffffffff8158c835 RDI: fffff520002d3e15 RBP: ffff88801170f140 R08: 0000000000000001 R09: ffff8880b9f2011b R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880186ce120 R13: 1ffff920002d3e2a R14: ffff88801170f150 R15: ffff88801170f148 FS: 0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005580b2707fc0 CR3: 000000002c60f000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: submit_bio_noacct+0x81/0xe30 block/blk-core.c:1044 submit_bio+0x263/0x5b0 block/blk-core.c:1129 submit_bh_wbc+0x685/0x8e0 fs/buffer.c:3054 __block_write_full_page+0x837/0x12f0 fs/buffer.c:1810 block_write_full_page+0x205/0x260 fs/buffer.c:2980 __writepage+0x60/0x180 mm/page-writeback.c:2311 write_cache_pages+0x754/0x1190 mm/page-writeback.c:2246 generic_writepages mm/page-writeback.c:2337 [inline] generic_writepages+0xe2/0x150 mm/page-writeback.c:2326 do_writepages+0xec/0x290 mm/page-writeback.c:2352 __filemap_fdatawrite_range+0x2a1/0x380 mm/filemap.c:422 filemap_write_and_wait_range mm/filemap.c:655 [inline] filemap_write_and_wait_range+0xe1/0x1c0 mm/filemap.c:649 filemap_write_and_wait include/linux/fs.h:2649 [inline] __sync_blockdev fs/block_dev.c:509 [inline] sync_blockdev fs/block_dev.c:518 [inline] __blkdev_put+0x69a/0x890 fs/block_dev.c:1767 blkdev_close+0x8c/0xb0 fs/block_dev.c:1851 __fput+0x285/0x920 fs/file_table.c:281 task_work_run+0xdd/0x190 kernel/task_work.c:151 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0xb64/0x29b0 kernel/exit.c:809 do_group_exit+0x125/0x310 kernel/exit.c:906 get_signal+0x42a/0x1f10 kernel/signal.c:2758 arch_do_signal+0x82/0x2390 arch/x86/kernel/signal.c:811 exit_to_user_mode_loop kernel/entry/common.c:161 [inline] exit_to_user_mode_prepare+0x100/0x1a0 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x38/0x260 kernel/entry/common.c:266 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x44a759 Code: Unable to access opcode bytes at RIP 0x44a72f. RSP: 002b:00007f4ef8b52d98 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00000000006dcc48 RCX: 000000000044a759 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000006dcc48 RBP: 00000000006dcc40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc4c R13: 3de76bbc993b2572 R14: c301ad5d89e03611 R15: 2cb1db97edb102bb