syzbot


KMSAN: uninit-value in keyctl_pkey_params_get

Status: closed as invalid on 2021/12/14 11:42
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1474d, last: 1416d

Sample crash report:
==================================================================
BUG: KMSAN: uninit-value in keyctl_pkey_params_parse security/keys/keyctl_pkey.c:56 [inline]
BUG: KMSAN: uninit-value in keyctl_pkey_params_get+0x29c/0x7d0 security/keys/keyctl_pkey.c:96
CPU: 0 PID: 6781 Comm: syz-executor808 Not tainted 4.20.0-rc2+ #88
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x32d/0x480 lib/dump_stack.c:113
 kmsan_report+0x19f/0x300 mm/kmsan/kmsan.c:911
 __msan_warning+0x76/0xc0 mm/kmsan/kmsan_instr.c:415
 keyctl_pkey_params_parse security/keys/keyctl_pkey.c:56 [inline]
 keyctl_pkey_params_get+0x29c/0x7d0 security/keys/keyctl_pkey.c:96
 keyctl_pkey_params_get_2 security/keys/keyctl_pkey.c:130 [inline]
 keyctl_pkey_verify+0x2e2/0x890 security/keys/keyctl_pkey.c:293
 __do_sys_keyctl security/keys/keyctl.c:1768 [inline]
 __se_sys_keyctl+0x112c/0x1af0 security/keys/keyctl.c:1637
 __x64_sys_keyctl+0x62/0x80 security/keys/keyctl.c:1637
 do_syscall_64+0xcf/0x110 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x440129
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffdb5c1f8d8 EFLAGS: 00000286 ORIG_RAX: 00000000000000fa
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440129
RDX: 00000000200002c0 RSI: 00000000200000c0 RDI: 000000000000001c
RBP: 00000000006ca018 R08: 0000000020000380 R09: 0000000000000000
R10: 00000000fffffd2a R11: 0000000000000286 R12: 00000000004019b0
R13: 0000000000401a40 R14: 0000000000000000 R15: 0000000000000000

Local variable description: ----args.i@keyctl_pkey_params_get
Variable was created at:
 keyctl_pkey_params_get+0xaa/0x7d0 security/keys/keyctl_pkey.c:83
 keyctl_pkey_params_get_2 security/keys/keyctl_pkey.c:130 [inline]
 keyctl_pkey_verify+0x2e2/0x890 security/keys/keyctl_pkey.c:293
==================================================================

Crashes (35):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2018/11/18 14:47 https://github.com/google/kmsan.git master cddc52641fd2 adf636a8 .config log report syz C
ci-upstream-kmsan-gce 2018/11/14 19:48 https://github.com/google/kmsan.git master 006aa39cddee 5f5f6d14 .config log report syz C
ci-upstream-kmsan-gce 2019/01/10 13:06 https://github.com/google/kmsan.git master 9945cd9f64dc db9b6579 .config log report
ci-upstream-kmsan-gce 2019/01/09 08:57 https://github.com/google/kmsan.git master 48128c3ca084 45c0c1b1 .config log report
ci-upstream-kmsan-gce 2019/01/08 10:26 https://github.com/google/kmsan.git master 48128c3ca084 37dd2683 .config log report
ci-upstream-kmsan-gce 2019/01/04 11:54 https://github.com/google/kmsan.git master 68006459ade0 7da23925 .config log report
ci-upstream-kmsan-gce 2019/01/02 14:10 https://github.com/google/kmsan.git master 8ba10281f9e5 f0491811 .config log report
ci-upstream-kmsan-gce 2018/12/28 11:47 https://github.com/google/kmsan.git master 79fc24ff6184 fc6ae81a .config log report
ci-upstream-kmsan-gce 2018/12/28 04:16 https://github.com/google/kmsan.git master 79fc24ff6184 af317504 .config log report
ci-upstream-kmsan-gce 2018/12/24 14:31 https://github.com/google/kmsan.git master e9021948e109 be79df56 .config log report
ci-upstream-kmsan-gce 2018/12/23 03:17 https://github.com/google/kmsan.git master 75b3ad224f19 e3bd7ab8 .config log report
ci-upstream-kmsan-gce 2018/12/17 11:24 https://github.com/google/kmsan.git master 0a602458c72c def91db3 .config log report
ci-upstream-kmsan-gce 2018/12/13 02:25 https://github.com/google/kmsan.git master 42db043be545 02613a41 .config log report
ci-upstream-kmsan-gce 2018/12/05 05:27 https://github.com/google/kmsan.git master 00f99f811392 f162ad97 .config log report
ci-upstream-kmsan-gce 2018/12/02 06:25 https://github.com/google/kmsan.git master 9fbf73b8d4af 5a581673 .config log report
ci-upstream-kmsan-gce 2018/11/29 20:13 https://github.com/google/kmsan.git master a311076453fe 4b6d14f2 .config log report
ci-upstream-kmsan-gce 2018/11/29 20:13 https://github.com/google/kmsan.git master a311076453fe 4b6d14f2 .config log report
ci-upstream-kmsan-gce 2018/11/29 18:48 https://github.com/google/kmsan.git master a311076453fe 4b6d14f2 .config log report
ci-upstream-kmsan-gce 2018/11/29 08:58 https://github.com/google/kmsan.git master fffec98ae2a6 4b6d14f2 .config log report
ci-upstream-kmsan-gce 2018/11/28 09:58 https://github.com/google/kmsan.git master fffec98ae2a6 4b6d14f2 .config log report
ci-upstream-kmsan-gce 2018/11/24 15:10 https://github.com/google/kmsan.git master fffec98ae2a6 ecc7c870 .config log report
ci-upstream-kmsan-gce 2018/11/23 16:06 https://github.com/google/kmsan.git master f97a6c2987cc 2b0dc848 .config log report
ci-upstream-kmsan-gce 2018/11/23 10:34 https://github.com/google/kmsan.git master 50031178f793 2b0dc848 .config log report
ci-upstream-kmsan-gce 2018/11/22 16:41 https://github.com/google/kmsan.git master 3ededcaa1606 2ee77802 .config log report
ci-upstream-kmsan-gce 2018/11/21 11:56 https://github.com/google/kmsan.git master 598a88bc28d3 5d9a3924 .config log report
ci-upstream-kmsan-gce 2018/11/20 08:10 https://github.com/google/kmsan.git master 2808e543aacb 9bc2a903 .config log report
ci-upstream-kmsan-gce 2018/11/19 22:10 https://github.com/google/kmsan.git master 2808e543aacb adf636a8 .config log report
ci-upstream-kmsan-gce 2018/11/19 11:22 https://github.com/google/kmsan.git master cddc52641fd2 adf636a8 .config log report
ci-upstream-kmsan-gce 2018/11/18 20:23 https://github.com/google/kmsan.git master cddc52641fd2 adf636a8 .config log report
ci-upstream-kmsan-gce 2018/11/18 09:35 https://github.com/google/kmsan.git master cddc52641fd2 adf636a8 .config log report
ci-upstream-kmsan-gce 2018/11/18 08:41 https://github.com/google/kmsan.git master cddc52641fd2 adf636a8 .config log report
ci-upstream-kmsan-gce 2018/11/18 01:58 https://github.com/google/kmsan.git master cddc52641fd2 adf636a8 .config log report
ci-upstream-kmsan-gce 2018/11/16 16:40 https://github.com/google/kmsan.git master cddc52641fd2 f5e275d1 .config log report
ci-upstream-kmsan-gce 2018/11/15 10:15 https://github.com/google/kmsan.git master 006aa39cddee 5f5f6d14 .config log report
ci-upstream-kmsan-gce 2018/11/13 19:20 https://github.com/google/kmsan.git master 006aa39cddee 5f5f6d14 .config log report
* Struck through repros no longer work on HEAD.