general protection fault in crypt_setkey

Status: premoderation: reported C repro on 2026/10/27 02:07
Reported-by: syzbot+53df28fb5f7606dd2142@syzkaller.appspotmail.com
First crash: 3d17h, last: 2d17h
▶ ▼ Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in crypt_setkey dm prio:low 2 syz, C 9 2d14h 6h13m 0/29 upstream: reported C repro on 2026/10/30 13:00

Sample crash report:
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: 1 UID: 0 PID: 312 Comm: syz-executor171 Not tainted syzkaller #0 89738cdce93e33c1079eaf7360b55d01ca9e3330
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 56 15 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:ffffc900011ef6a0 EFLAGS: 00010247

RAX: 0000000000000000 RBX: 0000000000000010 RCX: ffff888106f94f00
RDX: ffff8881053de000 RSI: 0000000000000020 RDI: 0000000000000004
RBP: ffffc900011ef750 R08: ffff8881053de0bf R09: 1ffff11020a7bc17
R10: dffffc0000000000 R11: ffffed1020a7bc18 R12: 0000000010000000
R13: dffffc0000000000 R14: 0000000000000020 R15: 0000000000000000
FS:  000055557287d3c0(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557e18a8c308 CR3: 000000011fdca000 CR4: 00000000003526b0
Call Trace:
 <TASK>
 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+0x126/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:0x7fd3a412ddb9
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffca6909718 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffca6909848 RCX: 00007fd3a412ddb9
RDX: 0000200000000540 RSI: 00000000c138fd09 RDI: 0000000000000003
RBP: 0000000000000001 R08: 00007ffca6909848 R09: 00007ffca6909848
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffca6909838
R13: 0000000000000002 R14: 00007fd3a41beca0 R15: 0000000000000002
 </TASK>
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 56 15 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:ffffc900011ef6a0 EFLAGS: 00010247
RAX: 0000000000000000 RBX: 0000000000000010 RCX: ffff888106f94f00
RDX: ffff8881053de000 RSI: 0000000000000020 RDI: 0000000000000004
RBP: ffffc900011ef750 R08: ffff8881053de0bf R09: 1ffff11020a7bc17
R10: dffffc0000000000 R11: ffffed1020a7bc18 R12: 0000000010000000
R13: dffffc0000000000 R14: 0000000000000020 R15: 0000000000000000
FS:  000055557287d3c0(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557e18a8c308 CR3: 000000011fdca000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
   0:	00 74 09 e8          	add    %dh,-0x18(%rcx,%rcx,1)
   4:	56                   	push   %rsi
   5:	15 e1 fd 48 8b       	adc    $0x8b48fde1,%eax
   a:	55                   	push   %rbp
   b:	d0 4c 8b ba          	rorb   $1,-0x46(%rbx,%rcx,4)
   f:	f8                   	clc
  10:	02 00                	add    (%rax),%al
  12:	00 8b 5d cc 44 29    	add    %cl,0x2944cc5d(%rbx)
  18:	f3 49 8d 7f 04       	repz 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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/27 02:07 android16-6.12 e9c13b0731b0 168cb7a2 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in crypt_setkey
2026/10/28 02:07 android16-6.12 4db94d79f511 96923c60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in crypt_setkey
* Struck through repros no longer work on HEAD.