Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 2 UID: 0 PID: 6989 Comm: syz.2.327 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:md_handle_request+0x805/0x1230 drivers/md/md.c:417 Code: f9 e8 ff 9b 54 f9 e8 2a 00 70 f9 48 8b 44 24 28 42 80 3c 30 00 0f 85 b4 08 00 00 49 8b 5f 08 48 8d 7b 18 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 a9 08 00 00 48 8b 43 18 4c 89 ee 4c 89 ff e8 RSP: 0018:ffffc90003787420 EFLAGS: 00010206 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888058e88000 RSI: ffffffff889db2e6 RDI: 0000000000000018 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffc900037874a8 R13: ffff888036f5e140 R14: dffffc0000000000 R15: ffff88802819e000 FS: 00007f5e8b3886c0(0000) GS:ffff8880d46be000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f37399ecc40 CR3: 00000000382fd000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000109 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: md_submit_bio+0x1e9/0x350 drivers/md/md.c:458 __submit_bio block/blk-core.c:681 [inline] __submit_bio+0x20e/0x3d0 block/blk-core.c:670 __submit_bio_noacct block/blk-core.c:724 [inline] submit_bio_noacct_nocheck+0x736/0xc00 block/blk-core.c:792 submit_bio_noacct+0xc8e/0x2130 block/blk-core.c:925 blk_crypto_submit_bio include/linux/blk-crypto.h:212 [inline] __bh_submit+0x8b0/0xbb0 fs/buffer.c:1144 bh_submit fs/buffer.c:1158 [inline] __bh_read+0x7c/0x1b0 fs/buffer.c:2952 bh_read_nowait include/linux/buffer_head.h:510 [inline] __block_write_begin_int+0x15a7/0x19c0 fs/buffer.c:2068 iomap_write_begin+0x18b2/0x2470 fs/iomap/buffered-io.c:1104 iomap_write_iter fs/iomap/buffered-io.c:1232 [inline] iomap_file_buffered_write+0x480/0xab0 fs/iomap/buffered-io.c:1313 blkdev_buffered_write block/fops.c:718 [inline] blkdev_write_iter+0x575/0xd30 block/fops.c:784 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6af/0x1050 fs/read_write.c:687 ksys_pwrite64 fs/read_write.c:794 [inline] __do_sys_pwrite64 fs/read_write.c:802 [inline] __se_sys_pwrite64 fs/read_write.c:799 [inline] __x64_sys_pwrite64+0x1eb/0x250 fs/read_write.c:799 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5e8a59f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5e8b388028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f5e8a826630 RCX: 00007f5e8a59f559 RDX: 0000000000000020 RSI: 0000200000000500 RDI: 0000000000000005 RBP: 00007f5e8a636b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5e8a8266c8 R14: 00007f5e8a826630 R15: 00007ffdbaf96088 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:md_handle_request+0x805/0x1230 drivers/md/md.c:417 Code: f9 e8 ff 9b 54 f9 e8 2a 00 70 f9 48 8b 44 24 28 42 80 3c 30 00 0f 85 b4 08 00 00 49 8b 5f 08 48 8d 7b 18 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 a9 08 00 00 48 8b 43 18 4c 89 ee 4c 89 ff e8 RSP: 0018:ffffc90003787420 EFLAGS: 00010206 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888058e88000 RSI: ffffffff889db2e6 RDI: 0000000000000018 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffc900037874a8 R13: ffff888036f5e140 R14: dffffc0000000000 R15: ffff88802819e000 FS: 00007f5e8b3886c0(0000) GS:ffff8880d46be000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f37399ecc40 CR3: 00000000382fd000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000109 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: f9 stc 1: e8 ff 9b 54 f9 call 0xf9549c05 6: e8 2a 00 70 f9 call 0xf9700035 b: 48 8b 44 24 28 mov 0x28(%rsp),%rax 10: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) 15: 0f 85 b4 08 00 00 jne 0x8cf 1b: 49 8b 5f 08 mov 0x8(%r15),%rbx 1f: 48 8d 7b 18 lea 0x18(%rbx),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 0f 85 a9 08 00 00 jne 0x8de 35: 48 8b 43 18 mov 0x18(%rbx),%rax 39: 4c 89 ee mov %r13,%rsi 3c: 4c 89 ff mov %r15,%rdi 3f: e8 .byte 0xe8