critical target error, dev sr0, sector 731648 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 critical target error, dev sr0, sector 731904 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 critical target error, dev sr0, sector 732160 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 INFO: task syz-executor.1:9663 blocked for more than 143 seconds. Not tainted 6.3.0-next-20230428 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:27080 pid:9663 ppid:8834 flags:0x00000004 Call Trace: __schedule+0x9a9/0x2b10 schedule+0xdb/0x1a0 schedule_preempt_disabled+0x10/0x20 rwsem_down_write_slowpath+0x3dc/0x14a0 down_write+0x1c3/0x1f0 blkdev_fallocate+0x1e8/0x420 vfs_fallocate+0x48d/0xe30 __x64_sys_fallocate+0xd3/0x140 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x72/0xdc RIP: 0033:0x7f6435202b19 RSP: 002b:00007f6432778188 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f6435315f60 RCX: 00007f6435202b19 RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000003 RBP: 00007f643525cf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff817d9f3f R14: 00007f6432778300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8560acf0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd30 1 lock held by khungtaskd/25: #0: ffffffff8560b8c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 1 lock held by systemd-journal/87: 1 lock held by in:imklog/169: 1 lock held by syz-executor.4/9567: 1 lock held by syz-executor.1/9663: #0: ffff888008857428 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e8/0x420 ============================================= scsi_io_completion_action: 292 callbacks suppressed sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 13 c0 00 00 40 00 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 14 00 00 00 40 00 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 14 40 00 00 40 00 blk_print_req_error: 292 callbacks suppressed critical target error, dev sr0, sector 807168 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 14 80 00 00 40 00 critical target error, dev sr0, sector 807424 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 14 c0 00 00 40 00 critical target error, dev sr0, sector 807680 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 15 00 00 00 40 00 critical target error, dev sr0, sector 807936 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 15 40 00 00 40 00 critical target error, dev sr0, sector 808192 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 15 80 00 00 40 00 critical target error, dev sr0, sector 808448 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 15 c0 00 00 40 00 critical target error, dev sr0, sector 808704 op 0x1:(WRITE) flags 0x0 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 16 00 00 00 40 00 critical target error, dev sr0, sector 808960 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 critical target error, dev sr0, sector 809216 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 critical target error, dev sr0, sector 809472 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 scsi_io_completion_action: 298 callbacks suppressed sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 60 c0 00 00 40 00 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 61 00 00 00 40 00 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 61 40 00 00 40 00 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 61 80 00 00 40 00 blk_print_req_error: 299 callbacks suppressed critical target error, dev sr0, sector 886272 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 61 c0 00 00 40 00 critical target error, dev sr0, sector 886528 op 0x1:(WRITE) flags 0x0 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 62 00 00 00 40 00 critical target error, dev sr0, sector 886784 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 62 40 00 00 40 00 critical target error, dev sr0, sector 887040 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 62 80 00 00 40 00 critical target error, dev sr0, sector 887296 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 62 c0 00 00 40 00 critical target error, dev sr0, sector 887552 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s 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 03 63 00 00 00 40 00 critical target error, dev sr0, sector 887808 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 critical target error, dev sr0, sector 888064 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 critical target error, dev sr0, sector 888320 op 0x1:(WRITE) flags 0x4000 phys_seg 32 prio class 2 critical target error, dev sr0, sector 888576 op 0x1:(WRITE) flags 0x0 phys_seg 32 prio class 2