R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffdc2e7733f R14: 00007f8b49bd4300 R15: 0000000000022000 ------------[ cut here ]------------ Trying to write to read-only block-device sr0 (partno 0) WARNING: CPU: 0 PID: 5162 at block/blk-core.c:704 bio_check_ro block/blk-core.c:704 [inline] WARNING: CPU: 0 PID: 5162 at block/blk-core.c:704 submit_bio_checks+0x1577/0x18d0 block/blk-core.c:832 Modules linked in: CPU: 0 PID: 5162 Comm: kworker/u4:5 Not tainted 5.10.105 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Workqueue: writeback wb_workfn (flush-11:0) RIP: 0010:bio_check_ro block/blk-core.c:704 [inline] RIP: 0010:submit_bio_checks+0x1577/0x18d0 block/blk-core.c:832 Code: 03 00 00 45 8b a4 24 a4 05 00 00 48 89 ef 48 8d 74 24 50 e8 7b 32 fe ff 48 c7 c7 40 65 3a 84 48 89 c6 44 89 e2 e8 18 3c eb 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:ffff888046cef118 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 1ffff11008d9de29 RCX: 0000000000000000 RDX: ffff888043580000 RSI: ffffffff81293d03 RDI: ffffed1008d9de15 RBP: ffff8880448db500 R08: 0000000000000001 R09: ffff88806ce37b4f R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff88800d9a6080 R14: ffff8880448db510 R15: ffff8880448db508 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564c55313678 CR3: 0000000044908000 CR4: 0000000000350ef0 Call Trace: submit_bio_noacct+0x7a/0xce0 block/blk-core.c:1042 submit_bio+0xf3/0x4e0 block/blk-core.c:1127 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 __writeback_single_inode+0x10a/0xd90 fs/fs-writeback.c:1467 writeback_sb_inodes+0x56e/0xfc0 fs/fs-writeback.c:1729 __writeback_inodes_wb+0xbe/0x270 fs/fs-writeback.c:1798 wb_writeback+0x710/0xab0 fs/fs-writeback.c:1904 wb_check_old_data_flush fs/fs-writeback.c:2006 [inline] wb_do_writeback fs/fs-writeback.c:2059 [inline] wb_workfn+0x821/0x1010 fs/fs-writeback.c:2088 process_one_work+0x9a9/0x1590 kernel/workqueue.c:2279 worker_thread+0x61d/0x1310 kernel/workqueue.c:2425 kthread+0x38f/0x470 kernel/kthread.c:313 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:296 irq event stamp: 1137115 hardirqs last enabled at (1137127): [] console_unlock+0x929/0xb30 kernel/printk/printk.c:2559 hardirqs last disabled at (1137138): [] console_unlock+0x835/0xb30 kernel/printk/printk.c:2474 softirqs last enabled at (1136180): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (1136169): [] asm_call_irq_on_stack+0x12/0x20 ---[ end trace 4d88f81617d692cc ]--- sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=3s sr 1:0:0:0: [sr0] tag#0 Sense Key : Illegal Request [current] sr 1:0:0:0: [sr0] tag#0 Add. Sense: Invalid command operation code sr 1:0:0:0: [sr0] tag#0 CDB: Write(10) 2a 00 00 00 00 00 00 00 02 00 blk_update_request: critical target error, dev sr0, sector 0 op 0x1:(WRITE) flags 0x100000 phys_seg 8 prio class 0 Buffer I/O error on dev sr0, logical block 0, lost async page write Buffer I/O error on dev sr0, logical block 1, lost async page write Buffer I/O error on dev sr0, logical block 2, lost async page write Buffer I/O error on dev sr0, logical block 3, lost async page write Buffer I/O error on dev sr0, logical block 4, lost async page write Buffer I/O error on dev sr0, logical block 5, lost async page write Buffer I/O error on dev sr0, logical block 6, lost async page write Buffer I/O error on dev sr0, logical block 7, lost async page write kmemleak: 24 new suspected memory leaks (see /sys/kernel/debug/kmemleak)