syzbot
BUG: bad usercopy in keyctl_pkey_e_d_s
Status:
premoderation: reported C repro on 2026/10/15 11:27
Bug presence:
origin:lts
[Documentation on labels]
Reported-by: syzbot+28611e3ede753ab6c8c9@syzkaller.appspotmail.com
First crash: 6d15h, last: 1d07h
▶
▼
Bug presence (2)
| Date |
Name |
Commit |
Repro |
Result |
| 2026/10/16 |
lts (merge base) |
e9f803bf2b03 |
C
|
[report] BUG: bad usercopy in keyctl_pkey_e_d_s
|
| 2026/10/16 |
upstream (ToT) |
90201351a862 |
C
|
Didn't crash |
Sample crash report:
usercopy: Kernel memory exposure attempt detected from SLUB object 'kmalloc-128' (offset 0, size 512)!
------------[ cut here ]------------
kernel BUG at mm/usercopy.c:103!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 312 Comm: syz-executor423 Not tainted syzkaller #0 f4dc25654f8255e5780388d900d0b326847aed68
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
RIP: 0010:usercopy_abort+0x89/0x90 mm/usercopy.c:103
Code: 89 cb 49 c7 c6 a0 14 37 86 4c 0f 44 f6 48 c7 c7 40 13 37 86 4c 89 de 4c 89 c9 4d 89 d1 50 53 41 56 e8 1b 75 ff ff 48 83 c4 18 <0f> 0b cc cc cc cc cc b8 b4 a1 67 01 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900011dfad0 EFLAGS: 00010292
RAX: 0000000000000066 RBX: 0000000000000000 RCX: bf9abaf8c5e67d00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900011dfae0 R08: ffffc900011df7a7 R09: 1ffff9200023bef4
R10: dffffc0000000000 R11: fffff5200023bef5 R12: ffff888100041a00
R13: 0000000000000001 R14: ffffffff863714a0 R15: 0000000000000000
FS: 000055556dbcc3c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005565cd8d8000 CR3: 000000010670a000 CR4: 00000000003526b0
Call Trace:
<TASK>
__check_heap_object+0xc7/0x110 mm/slub.c:5800
check_heap_object mm/usercopy.c:198 [inline]
__check_object_size+0x29a/0x870 mm/usercopy.c:257
check_object_size include/linux/thread_info.h:215 [inline]
check_copy_size include/linux/thread_info.h:251 [inline]
copy_to_user include/linux/uaccess.h:219 [inline]
keyctl_pkey_e_d_s+0x252/0x3b0 security/keys/keyctl_pkey.c:259
__do_sys_keyctl security/keys/keyctl.c:1997 [inline]
__se_sys_keyctl+0x780/0xe40 security/keys/keyctl.c:1874
__x64_sys_keyctl+0xc3/0xf0 security/keys/keyctl.c:1874
x64_sys_call+0x996/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:251
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:0x7fa6d912dc79
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:00007fffebd96858 EFLAGS: 00000246 ORIG_RAX: 00000000000000fa
RAX: ffffffffffffffda RBX: 00007fffebd96988 RCX: 00007fa6d912dc79
RDX: 0000000000000000 RSI: 0000200000000d80 RDI: 0000000000000019
RBP: 0000000000000001 R08: 0000200000000e40 R09: 00007fffebd96988
R10: 0000200000000dc0 R11: 0000000000000246 R12: 00007fffebd96978
R13: 0000000000000002 R14: 00007fa6d91beca0 R15: 0000000000000002
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:usercopy_abort+0x89/0x90 mm/usercopy.c:103
Code: 89 cb 49 c7 c6 a0 14 37 86 4c 0f 44 f6 48 c7 c7 40 13 37 86 4c 89 de 4c 89 c9 4d 89 d1 50 53 41 56 e8 1b 75 ff ff 48 83 c4 18 <0f> 0b cc cc cc cc cc b8 b4 a1 67 01 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900011dfad0 EFLAGS: 00010292
RAX: 0000000000000066 RBX: 0000000000000000 RCX: bf9abaf8c5e67d00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900011dfae0 R08: ffffc900011df7a7 R09: 1ffff9200023bef4
R10: dffffc0000000000 R11: fffff5200023bef5 R12: ffff888100041a00
R13: 0000000000000001 R14: ffffffff863714a0 R15: 0000000000000000
FS: 000055556dbcc3c0(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005565cd8d8000 CR3: 000000010670a000 CR4: 00000000003526b0
* Struck through repros no longer work on HEAD.