================================================================== BUG: KMSAN: uninit-value in __arch_swab64 arch/x86/include/uapi/asm/swab.h:31 [inline] BUG: KMSAN: uninit-value in __fswab64 include/uapi/linux/swab.h:68 [inline] BUG: KMSAN: uninit-value in gf128mul_x_lle include/crypto/gf128mul.h:184 [inline] BUG: KMSAN: uninit-value in gf128mul_init_4k_lle+0x212/0x5c0 crypto/gf128mul.c:352 CPU: 0 PID: 5832 Comm: syz-executor7 Not tainted 4.16.0+ #84 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 __arch_swab64 arch/x86/include/uapi/asm/swab.h:31 [inline] __fswab64 include/uapi/linux/swab.h:68 [inline] gf128mul_x_lle include/crypto/gf128mul.h:184 [inline] gf128mul_init_4k_lle+0x212/0x5c0 crypto/gf128mul.c:352 ghash_setkey+0x185/0x280 crypto/ghash-generic.c:45 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 crypto_gcm_setkey+0xa3c/0xc10 crypto/gcm.c:146 crypto_aead_setkey+0x373/0x4c0 crypto/aead.c:62 aead_setkey+0xa0/0xc0 crypto/algif_aead.c:526 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:0x455379 RSP: 002b:00007f7590a8fc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f7590a906d4 RCX: 0000000000455379 RDX: 0000000000000001 RSI: 0000000000000117 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000020 R09: 0000000000000000 R10: 0000000020ff8000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000519 R14: 00000000006faaf8 R15: 0000000000000000 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_save_stack mm/kmsan/kmsan.c:293 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:684 kmsan_memcpy_origins+0x11d/0x170 mm/kmsan/kmsan.c:526 __msan_memcpy+0x19f/0x1f0 mm/kmsan/kmsan_instr.c:470 gf128mul_init_4k_lle+0x99/0x5c0 crypto/gf128mul.c:350 ghash_setkey+0x185/0x280 crypto/ghash-generic.c:45 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 crypto_gcm_setkey+0xa3c/0xc10 crypto/gcm.c:146 crypto_aead_setkey+0x373/0x4c0 crypto/aead.c:62 aead_setkey+0xa0/0xc0 crypto/algif_aead.c:526 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 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_save_stack mm/kmsan/kmsan.c:293 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:684 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:521 __crypto_xor+0x23c/0x16b0 crypto/algapi.c:1012 crypto_xor include/crypto/algapi.h:210 [inline] crypto_ctr_crypt_inplace+0x29a/0x3a0 crypto/ctr.c:115 crypto_ctr_crypt+0x54c/0x7d0 crypto/ctr.c:142 skcipher_crypt_blkcipher crypto/skcipher.c:623 [inline] skcipher_encrypt_blkcipher+0x222/0x320 crypto/skcipher.c:632 crypto_skcipher_encrypt include/crypto/skcipher.h:443 [inline] crypto_gcm_setkey+0x6a3/0xc10 crypto/gcm.c:137 crypto_aead_setkey+0x373/0x4c0 crypto/aead.c:62 aead_setkey+0xa0/0xc0 crypto/algif_aead.c:526 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 Local variable description: ----vla@crypto_ctr_crypt_inplace Variable was created at: crypto_ctr_crypt_inplace+0x19a/0x3a0 crypto/ctr.c:109 crypto_ctr_crypt+0x54c/0x7d0 crypto/ctr.c:142 ==================================================================