------------[ cut here ]------------ kernel BUG at kernel/cred.c:456! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9568 Comm: syz-executor.5 Not tainted 5.18.0-rc2-next-20220414-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:commit_creds+0xf33/0x1360 kernel/cred.c:456 Code: 84 d2 0f 85 94 03 00 00 45 8b 74 24 2c 89 de 44 89 f7 e8 80 d8 29 00 41 39 de 0f 85 03 f8 ff ff e9 10 f8 ff ff e8 6d d5 29 00 <0f> 0b e8 66 d5 29 00 0f 0b e8 5f d5 29 00 0f 0b 48 89 cf e8 15 68 RSP: 0018:ffffc9000f0f7c30 EFLAGS: 00010293 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: ffff88802140d7c0 RSI: ffffffff81502c83 RDI: ffff888024011e00 RBP: ffff888024011e00 R08: 0000000000000000 R09: 0000000026ac8900 R10: ffffffff83b213fc R11: 0000000000000000 R12: ffff88801e159500 R13: ffff88802140d7c0 R14: ffff88802140d7c0 R15: ffffed1004281bfc FS: 00007f6725f21700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020188000 CR3: 000000007c681000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: join_session_keyring+0x225/0x340 security/keys/process_keys.c:856 lookup_user_key+0xca9/0x1270 security/keys/process_keys.c:674 __do_sys_add_key+0x1d3/0x430 security/keys/keyctl.c:126 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f6724e890e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6725f21168 EFLAGS: 00000246 ORIG_RAX: 00000000000000f8 RAX: ffffffffffffffda RBX: 00007f6724f9bf60 RCX: 00007f6724e890e9 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000020000000 RBP: 00007f6724ee308d R08: fffffffffffffffd R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc130ea7ff R14: 00007f6725f21300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:commit_creds+0xf33/0x1360 kernel/cred.c:456 Code: 84 d2 0f 85 94 03 00 00 45 8b 74 24 2c 89 de 44 89 f7 e8 80 d8 29 00 41 39 de 0f 85 03 f8 ff ff e9 10 f8 ff ff e8 6d d5 29 00 <0f> 0b e8 66 d5 29 00 0f 0b e8 5f d5 29 00 0f 0b 48 89 cf e8 15 68 RSP: 0018:ffffc9000f0f7c30 EFLAGS: 00010293 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: ffff88802140d7c0 RSI: ffffffff81502c83 RDI: ffff888024011e00 RBP: ffff888024011e00 R08: 0000000000000000 R09: 0000000026ac8900 R10: ffffffff83b213fc R11: 0000000000000000 R12: ffff88801e159500 R13: ffff88802140d7c0 R14: ffff88802140d7c0 R15: ffffed1004281bfc FS: 00007f6725f21700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fec28ad53a5 CR3: 000000007c681000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400