------------[ cut here ]------------ Trying to write to read-only block-device loop1 (partno 0) WARNING: CPU: 0 PID: 24400 at block/blk-core.c:705 bio_check_ro block/blk-core.c:705 [inline] WARNING: CPU: 0 PID: 24400 at block/blk-core.c:705 submit_bio_checks+0x1577/0x18d0 block/blk-core.c:833 Modules linked in: CPU: 0 PID: 24400 Comm: syz-executor.1 Not tainted 5.10.56 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:bio_check_ro block/blk-core.c:705 [inline] RIP: 0010:submit_bio_checks+0x1577/0x18d0 block/blk-core.c:833 Code: 03 00 00 45 8b a4 24 64 05 00 00 48 89 ef 48 8d 74 24 50 e8 6b 36 fe ff 48 c7 c7 a0 51 3a 84 48 89 c6 44 89 e2 e8 18 ca d3 01 <0f> 0b 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 80 3c 02 RSP: 0018:ffff888022a37598 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 1ffff11004546eb9 RCX: 0000000000000000 RDX: ffff88803ea4e500 RSI: ffffffff812930d3 RDI: ffffed1004546ea5 RBP: ffff8880243c2300 R08: 0000000000000001 R09: ffff88806ce2facf R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff88800dc5d470 R14: ffff8880243c2310 R15: ffff8880243c2308 FS: 0000000001797400(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffbb825f08 CR3: 00000000232fc000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: submit_bio_noacct+0x7a/0xce0 block/blk-core.c:1045 submit_bio+0xf3/0x4e0 block/blk-core.c:1130 submit_bh_wbc.constprop.0+0x580/0x770 fs/buffer.c:3054 __block_write_full_page+0x7d3/0x1050 fs/buffer.c:1810 block_write_full_page+0x21c/0x290 fs/buffer.c:2980 __writepage+0x67/0x180 mm/page-writeback.c:2311 write_cache_pages+0x57f/0xef0 mm/page-writeback.c:2246 generic_writepages mm/page-writeback.c:2337 [inline] generic_writepages+0xe2/0x150 mm/page-writeback.c:2326 do_writepages+0xee/0x290 mm/page-writeback.c:2352 __filemap_fdatawrite_range mm/filemap.c:422 [inline] __filemap_fdatawrite mm/filemap.c:430 [inline] filemap_flush+0x235/0x2e0 mm/filemap.c:457 __sync_blockdev fs/block_dev.c:529 [inline] __sync_blockdev+0xa1/0xe0 fs/block_dev.c:524 __sync_filesystem fs/sync.c:40 [inline] sync_filesystem fs/sync.c:64 [inline] sync_filesystem+0x13d/0x270 fs/sync.c:48 generic_shutdown_super+0x70/0x370 fs/super.c:448 kill_block_super+0x9d/0xf0 fs/super.c:1446 deactivate_locked_super+0x99/0x160 fs/super.c:335 deactivate_super+0xad/0xd0 fs/super.c:366 cleanup_mnt+0x396/0x500 fs/namespace.c:1118 task_work_run+0xe2/0x1a0 kernel/task_work.c:151 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:164 [inline] exit_to_user_mode_prepare+0x155/0x160 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x38/0x230 kernel/entry/common.c:266 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x467a67 Code: ff d0 48 89 c7 b8 3c 00 00 00 0f 05 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffbb826648 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000115 RCX: 0000000000467a67 RDX: 00007fffbb82671a RSI: 0000000000000002 RDI: 00007fffbb826710 RBP: 00007fffbb826710 R08: 00000000ffffffff R09: 00007fffbb8264e0 R10: 0000000001798b43 R11: 0000000000000246 R12: 00000000004bee70 R13: 00007fffbb8277e0 R14: 0000000001798b00 R15: 00007fffbb827820 irq event stamp: 1072707 hardirqs last enabled at (1072717): [] console_unlock+0x929/0xb30 kernel/printk/printk.c:2552 hardirqs last disabled at (1072726): [] console_unlock+0x835/0xb30 kernel/printk/printk.c:2467 softirqs last enabled at (1072540): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (1072529): [] asm_call_irq_on_stack+0x12/0x20 ---[ end trace 0bd3b32ceabac7b1 ]--- audit: type=1326 audit(1628128275.348:84): auid=0 uid=0 gid=0 ses=4 subj=system_u:system_r:kernel_t:s0 pid=28051 comm="syz-executor.5" exe="/syz-executor.5" sig=9 arch=c000003e syscall=231 compat=0 ip=0x466609 code=0x0 Restarting kernel threads ... done. Restarting kernel threads ... done. Restarting kernel threads ... done. Restarting kernel threads ... done. Restarting kernel threads ... done. Restarting kernel threads ... done. Restarting kernel threads ... done.