syzbot


KMSAN: uninit-value in crypto_aes_expand_key

Status: closed as invalid on 2018/06/27 14:58
Subsystems: crypto
[Documentation on labels]
First crash: 2700d, last: 2685d

Sample crash report:
==================================================================
BUG: KMSAN: uninit-value in crypto_aes_expand_key+0x6d1/0x1dc0 crypto/aes_generic.c:1242
CPU: 0 PID: 3586 Comm: syzkaller839455 Not tainted 4.16.0+ #83
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x185/0x1d0 lib/dump_stack.c:53
 kmsan_report+0x142/0x240 mm/kmsan/kmsan.c:1067
 __msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:676
 crypto_aes_expand_key+0x6d1/0x1dc0 crypto/aes_generic.c:1242
 crypto_aes_set_key+0x9d/0x180 crypto/aes_generic.c:1294
 setkey+0x50f/0x5a0 crypto/cipher.c:60
 crypto_cipher_setkey include/linux/crypto.h:1552 [inline]
 crypto_xcbc_digest_setkey+0x4b7/0x570 crypto/xcbc.c:77
 crypto_shash_setkey crypto/shash.c:66 [inline]
 shash_async_setkey+0x337/0x4c0 crypto/shash.c:218
 crypto_ahash_setkey+0x31a/0x470 crypto/ahash.c:201
 hash_setkey+0x8b/0xa0 crypto/algif_hash.c:420
 alg_setkey crypto/af_alg.c:223 [inline]
 alg_setsockopt+0x6c5/0x740 crypto/af_alg.c:256
 SYSC_setsockopt+0x4b8/0x570 net/socket.c:1849
 SyS_setsockopt+0x76/0xa0 net/socket.c:1828
 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x3d/0xa2
RIP: 0033:0x43fdf9
RSP: 002b:00007ffe1ec2d2f8 EFLAGS: 00000217 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fdf9
RDX: 0000000000000001 RSI: 0000000000000117 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000010 R09: 00000000004002c8
R10: 0000000020001f3a R11: 0000000000000217 R12: 0000000000401720
R13: 00000000004017b0 R14: 0000000000000000 R15: 0000000000000000

Local variable description: ----vla@crypto_xcbc_digest_setkey
Variable was created at:
 crypto_xcbc_digest_setkey+0x12e/0x570 crypto/xcbc.c:68
 crypto_shash_setkey crypto/shash.c:66 [inline]
 shash_async_setkey+0x337/0x4c0 crypto/shash.c:218
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/14 18:50 https://github.com/google/kmsan.git master 35ff515e4bda 7a67784c .config console log report syz C ci-upstream-kmsan-gce
2018/04/21 13:37 https://github.com/google/kmsan.git master 48c6a2b0ab1b d23fcf6c .config console log report ci-upstream-kmsan-gce
2018/04/19 10:47 https://github.com/google/kmsan.git master 48c6a2b0ab1b d1b2ef69 .config console log report ci-upstream-kmsan-gce
2018/04/14 18:25 https://github.com/google/kmsan.git master 35ff515e4bda 7a67784c .config console log report ci-upstream-kmsan-gce
2018/04/07 03:17 https://github.com/google/kmsan.git master e2ab7e8abba4 d613535f .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.