===================================================== BUG: KMSAN: uninit-value in u128_xor include/crypto/b128ops.h:66 [inline] BUG: KMSAN: uninit-value in be128_xor include/crypto/b128ops.h:72 [inline] BUG: KMSAN: uninit-value in gf128mul_4k_lle+0x202/0x2b0 crypto/gf128mul.c:394 CPU: 0 PID: 11876 Comm: syz-executor.2 Not tainted 5.8.0-rc5-syzkaller #0 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+0x1df/0x240 lib/dump_stack.c:118 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:121 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215 u128_xor include/crypto/b128ops.h:66 [inline] be128_xor include/crypto/b128ops.h:72 [inline] gf128mul_4k_lle+0x202/0x2b0 crypto/gf128mul.c:394 ghash_update+0x9cc/0x1130 crypto/ghash-generic.c:101 crypto_shash_update+0x4e9/0x550 crypto/shash.c:106 shash_ahash_update crypto/shash.c:262 [inline] shash_async_update+0x113/0x1d0 crypto/shash.c:270 crypto_ahash_update include/crypto/hash.h:547 [inline] gcm_hash_update crypto/gcm.c:213 [inline] gcm_hash_assoc_remain_continue crypto/gcm.c:322 [inline] gcm_hash_assoc_continue crypto/gcm.c:353 [inline] gcm_hash_init_continue crypto/gcm.c:378 [inline] gcm_hash+0x15d6/0x23f0 crypto/gcm.c:408 gcm_encrypt_continue crypto/gcm.c:433 [inline] crypto_gcm_encrypt+0x720/0x9d0 crypto/gcm.c:462 crypto_aead_encrypt+0xf2/0x180 crypto/aead.c:94 tls_do_encryption net/tls/tls_sw.c:528 [inline] tls_push_record+0x2fcd/0x4ad0 net/tls/tls_sw.c:762 bpf_exec_tx_verdict+0x1572/0x24a0 net/tls/tls_sw.c:802 tls_sw_do_sendpage+0x12b8/0x1af0 net/tls/tls_sw.c:1213 tls_sw_sendpage+0x19f/0x220 net/tls/tls_sw.c:1277 inet_sendpage+0x1ab/0x2c0 net/ipv4/af_inet.c:828 kernel_sendpage net/socket.c:3642 [inline] sock_sendpage+0x1e1/0x2c0 net/socket.c:945 pipe_to_sendpage+0x38c/0x4c0 fs/splice.c:448 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x565/0xf00 fs/splice.c:626 splice_from_pipe fs/splice.c:661 [inline] generic_splice_sendpage+0x1d5/0x2d0 fs/splice.c:834 do_splice_from fs/splice.c:846 [inline] direct_splice_actor+0x1fd/0x580 fs/splice.c:1016 splice_direct_to_actor+0x6b2/0xf50 fs/splice.c:971 do_splice_direct+0x342/0x580 fs/splice.c:1059 do_sendfile+0x101b/0x1d40 fs/read_write.c:1540 __do_sys_sendfile64 fs/read_write.c:1601 [inline] __se_sys_sendfile64+0x2bb/0x360 fs/read_write.c:1587 __x64_sys_sendfile64+0x56/0x70 fs/read_write.c:1587 do_syscall_64+0xb0/0x150 arch/x86/entry/common.c:386 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c1d9 Code: Bad RIP value. RSP: 002b:00007f7ef2b60c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000025a00 RCX: 000000000045c1d9 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 000000000078bf48 R08: 0000000000000000 R09: 0000000000000000 R10: 000004000000d810 R11: 0000000000000246 R12: 000000000078bf0c R13: 0000000000c9fb6f R14: 00007f7ef2b619c0 R15: 000000000078bf0c Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310 __msan_chain_origin+0x50/0x90 mm/kmsan/kmsan_instr.c:165 crypto_xor include/crypto/algapi.h:148 [inline] ghash_update+0xa83/0x1130 crypto/ghash-generic.c:100 crypto_shash_update+0x4e9/0x550 crypto/shash.c:106 shash_ahash_update crypto/shash.c:262 [inline] shash_async_update+0x113/0x1d0 crypto/shash.c:270 crypto_ahash_update include/crypto/hash.h:547 [inline] gcm_hash_update crypto/gcm.c:213 [inline] gcm_hash_assoc_remain_continue crypto/gcm.c:322 [inline] gcm_hash_assoc_continue crypto/gcm.c:353 [inline] gcm_hash_init_continue crypto/gcm.c:378 [inline] gcm_hash+0x15d6/0x23f0 crypto/gcm.c:408 gcm_encrypt_continue crypto/gcm.c:433 [inline] crypto_gcm_encrypt+0x720/0x9d0 crypto/gcm.c:462 crypto_aead_encrypt+0xf2/0x180 crypto/aead.c:94 tls_do_encryption net/tls/tls_sw.c:528 [inline] tls_push_record+0x2fcd/0x4ad0 net/tls/tls_sw.c:762 bpf_exec_tx_verdict+0x1572/0x24a0 net/tls/tls_sw.c:802 tls_sw_do_sendpage+0x12b8/0x1af0 net/tls/tls_sw.c:1213 tls_sw_sendpage+0x19f/0x220 net/tls/tls_sw.c:1277 inet_sendpage+0x1ab/0x2c0 net/ipv4/af_inet.c:828 kernel_sendpage net/socket.c:3642 [inline] sock_sendpage+0x1e1/0x2c0 net/socket.c:945 pipe_to_sendpage+0x38c/0x4c0 fs/splice.c:448 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x565/0xf00 fs/splice.c:626 splice_from_pipe fs/splice.c:661 [inline] generic_splice_sendpage+0x1d5/0x2d0 fs/splice.c:834 do_splice_from fs/splice.c:846 [inline] direct_splice_actor+0x1fd/0x580 fs/splice.c:1016 splice_direct_to_actor+0x6b2/0xf50 fs/splice.c:971 do_splice_direct+0x342/0x580 fs/splice.c:1059 do_sendfile+0x101b/0x1d40 fs/read_write.c:1540 __do_sys_sendfile64 fs/read_write.c:1601 [inline] __se_sys_sendfile64+0x2bb/0x360 fs/read_write.c:1587 __x64_sys_sendfile64+0x56/0x70 fs/read_write.c:1587 do_syscall_64+0xb0/0x150 arch/x86/entry/common.c:386 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310 __msan_chain_origin+0x50/0x90 mm/kmsan/kmsan_instr.c:165 __crypto_xor+0x1eb/0x1470 crypto/algapi.c:1000 crypto_xor include/crypto/algapi.h:152 [inline] crypto_ctr_crypt_segment crypto/ctr.c:59 [inline] crypto_ctr_crypt+0x3d2/0xa90 crypto/ctr.c:113 crypto_skcipher_encrypt+0xf2/0x180 crypto/skcipher.c:635 crypto_gcm_encrypt+0x4af/0x9d0 crypto/gcm.c:461 crypto_aead_encrypt+0xf2/0x180 crypto/aead.c:94 tls_do_encryption net/tls/tls_sw.c:528 [inline] tls_push_record+0x2fcd/0x4ad0 net/tls/tls_sw.c:762 bpf_exec_tx_verdict+0x1572/0x24a0 net/tls/tls_sw.c:802 tls_sw_do_sendpage+0x12b8/0x1af0 net/tls/tls_sw.c:1213 tls_sw_sendpage+0x19f/0x220 net/tls/tls_sw.c:1277 inet_sendpage+0x1ab/0x2c0 net/ipv4/af_inet.c:828 kernel_sendpage net/socket.c:3642 [inline] sock_sendpage+0x1e1/0x2c0 net/socket.c:945 pipe_to_sendpage+0x38c/0x4c0 fs/splice.c:448 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x565/0xf00 fs/splice.c:626 splice_from_pipe fs/splice.c:661 [inline] generic_splice_sendpage+0x1d5/0x2d0 fs/splice.c:834 do_splice_from fs/splice.c:846 [inline] direct_splice_actor+0x1fd/0x580 fs/splice.c:1016 splice_direct_to_actor+0x6b2/0xf50 fs/splice.c:971 do_splice_direct+0x342/0x580 fs/splice.c:1059 do_sendfile+0x101b/0x1d40 fs/read_write.c:1540 __do_sys_sendfile64 fs/read_write.c:1601 [inline] __se_sys_sendfile64+0x2bb/0x360 fs/read_write.c:1587 __x64_sys_sendfile64+0x56/0x70 fs/read_write.c:1587 do_syscall_64+0xb0/0x150 arch/x86/entry/common.c:386 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:144 kmsan_internal_alloc_meta_for_pages mm/kmsan/kmsan_shadow.c:269 [inline] kmsan_alloc_page+0xb9/0x180 mm/kmsan/kmsan_shadow.c:293 __alloc_pages_nodemask+0x56a2/0x5dc0 mm/page_alloc.c:4889 alloc_pages_current+0x672/0x990 mm/mempolicy.c:2292 alloc_pages include/linux/gfp.h:545 [inline] push_pipe+0x605/0xb70 lib/iov_iter.c:537 __pipe_get_pages lib/iov_iter.c:1278 [inline] pipe_get_pages_alloc lib/iov_iter.c:1385 [inline] iov_iter_get_pages_alloc+0x18a9/0x21c0 lib/iov_iter.c:1403 default_file_splice_read fs/splice.c:385 [inline] do_splice_to+0x4fc/0x14f0 fs/splice.c:871 splice_direct_to_actor+0x45c/0xf50 fs/splice.c:950 do_splice_direct+0x342/0x580 fs/splice.c:1059 do_sendfile+0x101b/0x1d40 fs/read_write.c:1540 __do_sys_sendfile64 fs/read_write.c:1601 [inline] __se_sys_sendfile64+0x2bb/0x360 fs/read_write.c:1587 __x64_sys_sendfile64+0x56/0x70 fs/read_write.c:1587 do_syscall_64+0xb0/0x150 arch/x86/entry/common.c:386 entry_SYSCALL_64_after_hwframe+0x44/0xa9 =====================================================