Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 5579 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:crypt_copy_authenckey drivers/md/dm-crypt.c:2396 [inline] RIP: 0010:crypt_setkey+0x1d7/0x980 drivers/md/dm-crypt.c:2417 Code: 14 24 4c 8b b2 58 06 00 00 8b 5c 24 0c 29 eb 49 8d 7e 04 41 89 df 41 0f cf 48 89 f8 48 c1 e8 03 49 bc 00 00 00 00 00 fc ff df <42> 0f b6 04 20 84 c0 0f 85 00 07 00 00 45 89 7e 04 4c 89 f0 48 c1 RSP: 0018:ffffc90001e27670 EFLAGS: 00010247 RAX: 0000000000000000 RBX: 0000000000000010 RCX: ffff8880369e8000 RDX: ffff88803b967000 RSI: 0000000000000020 RDI: 0000000000000004 RBP: 0000000000000020 R08: ffff88803b96712f R09: 1ffff1100772ce25 R10: dffffc0000000000 R11: ffffed100772ce26 R12: dffffc0000000000 R13: ffff88803b967120 R14: 0000000000000000 R15: 0000000010000000 FS: 0000555557c94500(0000) GS:ffff88808ac1d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc6caf89286 CR3: 00000000131de000 CR4: 0000000000352ef0 Call Trace: crypt_set_key+0x3a0/0x680 drivers/md/dm-crypt.c:2642 crypt_ctr_cipher drivers/md/dm-crypt.c:3067 [inline] crypt_ctr+0x2437/0x3c20 drivers/md/dm-crypt.c:3254 dm_table_add_target+0x58d/0xc70 drivers/md/dm-table.c:749 populate_table drivers/md/dm-ioctl.c:1602 [inline] table_load+0x325/0x8a0 drivers/md/dm-ioctl.c:1645 ctl_ioctl drivers/md/dm-ioctl.c:2221 [inline] dm_ctl_ioctl+0x9ec/0xe10 drivers/md/dm-ioctl.c:2243 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0f45d9f559 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:00007ffdcee0af18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0f46025fa0 RCX: 00007f0f45d9f559 RDX: 0000200000000540 RSI: 00000000c138fd09 RDI: 0000000000000003 RBP: 00007f0f45e36b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0f46025fac R14: 00007f0f46025fa0 R15: 00007f0f46025fa0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:crypt_copy_authenckey drivers/md/dm-crypt.c:2396 [inline] RIP: 0010:crypt_setkey+0x1d7/0x980 drivers/md/dm-crypt.c:2417 Code: 14 24 4c 8b b2 58 06 00 00 8b 5c 24 0c 29 eb 49 8d 7e 04 41 89 df 41 0f cf 48 89 f8 48 c1 e8 03 49 bc 00 00 00 00 00 fc ff df <42> 0f b6 04 20 84 c0 0f 85 00 07 00 00 45 89 7e 04 4c 89 f0 48 c1 RSP: 0018:ffffc90001e27670 EFLAGS: 00010247 RAX: 0000000000000000 RBX: 0000000000000010 RCX: ffff8880369e8000 RDX: ffff88803b967000 RSI: 0000000000000020 RDI: 0000000000000004 RBP: 0000000000000020 R08: ffff88803b96712f R09: 1ffff1100772ce25 R10: dffffc0000000000 R11: ffffed100772ce26 R12: dffffc0000000000 R13: ffff88803b967120 R14: 0000000000000000 R15: 0000000010000000 FS: 0000555557c94500(0000) GS:ffff88808ac1d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa71a216a10 CR3: 00000000131de000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 14 24 adc $0x24,%al 2: 4c 8b b2 58 06 00 00 mov 0x658(%rdx),%r14 9: 8b 5c 24 0c mov 0xc(%rsp),%ebx d: 29 eb sub %ebp,%ebx f: 49 8d 7e 04 lea 0x4(%r14),%rdi 13: 41 89 df mov %ebx,%r15d 16: 41 0f cf bswap %r15d 19: 48 89 f8 mov %rdi,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 49 bc 00 00 00 00 00 movabs $0xdffffc0000000000,%r12 27: fc ff df * 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 00 07 00 00 jne 0x737 37: 45 89 7e 04 mov %r15d,0x4(%r14) 3b: 4c 89 f0 mov %r14,%rax 3e: 48 rex.W 3f: c1 .byte 0xc1