Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 390 Comm: syz.1.20 Not tainted syzkaller #0 7512b07cb8b2b81a08448db7682669b21f09f733 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 RIP: 0010:crypt_copy_authenckey drivers/md/dm-crypt.c:2476 [inline] RIP: 0010:crypt_setkey+0x1cc/0x990 drivers/md/dm-crypt.c:2497 Code: 00 74 09 e8 e6 12 e1 fd 48 8b 55 d0 4c 8b ba f8 02 00 00 8b 5d cc 44 29 f3 49 8d 7f 04 41 89 dc 41 0f cc 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 0b 07 00 00 45 89 67 04 4c 89 f8 48 c1 RSP: 0018:ffffc9000d10f6a0 EFLAGS: 00010247 RAX: 0000000000000000 RBX: 0000000000000010 RCX: 0000000000080000 RDX: ffff88810d73c800 RSI: 0000000000000a06 RDI: 0000000000000004 RBP: ffffc9000d10f750 R08: ffff88810d73c8bf R09: 1ffff11021ae7917 R10: dffffc0000000000 R11: ffffed1021ae7918 R12: 0000000010000000 R13: dffffc0000000000 R14: 0000000000000020 R15: 0000000000000000 FS: 00007f106b24e6c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2e3de0 CR3: 000000010b67a000 CR4: 00000000003526b0 Call Trace: crypt_set_key+0x340/0x6c0 drivers/md/dm-crypt.c:2719 crypt_ctr_cipher drivers/md/dm-crypt.c:3142 [inline] crypt_ctr+0x2156/0x3a80 drivers/md/dm-crypt.c:3329 dm_table_add_target+0x59f/0xcb0 drivers/md/dm-table.c:760 populate_table drivers/md/dm-ioctl.c:1494 [inline] table_load+0x2eb/0x7d0 drivers/md/dm-ioctl.c:1536 ctl_ioctl drivers/md/dm-ioctl.c:2107 [inline] dm_ctl_ioctl+0x8f0/0xde0 drivers/md/dm-ioctl.c:2129 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0x123/0x1b0 fs/ioctl.c:892 __x64_sys_ioctl+0x7f/0xa0 fs/ioctl.c:892 x64_sys_call+0x1878/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f106a39f559 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:00007f106b24e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f106a625fa0 RCX: 00007f106a39f559 RDX: 00002000000007c0 RSI: 00000000c138fd09 RDI: 0000000000000003 RBP: 00007f106a436b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f106a626038 R14: 00007f106a625fa0 R15: 00007ffe751d01a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:crypt_copy_authenckey drivers/md/dm-crypt.c:2476 [inline] RIP: 0010:crypt_setkey+0x1cc/0x990 drivers/md/dm-crypt.c:2497 Code: 00 74 09 e8 e6 12 e1 fd 48 8b 55 d0 4c 8b ba f8 02 00 00 8b 5d cc 44 29 f3 49 8d 7f 04 41 89 dc 41 0f cc 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 0b 07 00 00 45 89 67 04 4c 89 f8 48 c1 RSP: 0018:ffffc9000d10f6a0 EFLAGS: 00010247 RAX: 0000000000000000 RBX: 0000000000000010 RCX: 0000000000080000 RDX: ffff88810d73c800 RSI: 0000000000000a06 RDI: 0000000000000004 RBP: ffffc9000d10f750 R08: ffff88810d73c8bf R09: 1ffff11021ae7917 R10: dffffc0000000000 R11: ffffed1021ae7918 R12: 0000000010000000 R13: dffffc0000000000 R14: 0000000000000020 R15: 0000000000000000 FS: 00007f106b24e6c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f106a3ecc40 CR3: 000000010b67a000 CR4: 00000000003526b0 ---------------- Code disassembly (best guess): 0: 00 74 09 e8 add %dh,-0x18(%rcx,%rcx,1) 4: e6 12 out %al,$0x12 6: e1 fd loope 0x5 8: 48 8b 55 d0 mov -0x30(%rbp),%rdx c: 4c 8b ba f8 02 00 00 mov 0x2f8(%rdx),%r15 13: 8b 5d cc mov -0x34(%rbp),%ebx 16: 44 29 f3 sub %r14d,%ebx 19: 49 8d 7f 04 lea 0x4(%r15),%rdi 1d: 41 89 dc mov %ebx,%r12d 20: 41 0f cc bswap %r12d 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 0b 07 00 00 jne 0x742 37: 45 89 67 04 mov %r12d,0x4(%r15) 3b: 4c 89 f8 mov %r15,%rax 3e: 48 rex.W 3f: c1 .byte 0xc1