===================================================== BUG: KMSAN: uninit-value in kmsan_check_memory+0xd/0x10 mm/kmsan/kmsan_hooks.c:428 CPU: 0 PID: 12690 Comm: syz-executor.0 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 kmsan_internal_check_memory+0x19d/0x3d0 mm/kmsan/kmsan.c:443 kmsan_check_memory+0xd/0x10 mm/kmsan/kmsan_hooks.c:428 instrument_copy_to_user include/linux/instrumented.h:91 [inline] copyout lib/iov_iter.c:142 [inline] _copy_to_iter+0x3d4/0x26e0 lib/iov_iter.c:631 copy_to_iter include/linux/uio.h:138 [inline] memcpy_to_msg include/linux/skbuff.h:3571 [inline] hash_recvmsg+0x927/0xd30 crypto/algif_hash.c:221 ____sys_recvmsg+0xf58/0x1020 net/socket.c:886 ___sys_recvmsg net/socket.c:2617 [inline] __sys_recvmsg+0x4c0/0xb50 net/socket.c:2651 __compat_sys_recvmsg net/compat.c:494 [inline] __do_compat_sys_recvmsg net/compat.c:501 [inline] __se_compat_sys_recvmsg+0xa7/0xc0 net/compat.c:498 __ia32_compat_sys_recvmsg+0x4a/0x70 net/compat.c:498 do_syscall_32_irqs_on arch/x86/entry/common.c:430 [inline] __do_fast_syscall_32+0x2aa/0x400 arch/x86/entry/common.c:477 do_fast_syscall_32+0x6b/0xd0 arch/x86/entry/common.c:505 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:554 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f38549 Code: Bad RIP value. RSP: 002b:00000000f5d120cc EFLAGS: 00000296 ORIG_RAX: 0000000000000174 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000020000140 RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 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 michael_final+0x5e3/0x700 crypto/michael_mic.c:126 crypto_shash_final crypto/shash.c:160 [inline] shash_async_final+0x3bd/0x470 crypto/shash.c:275 crypto_ahash_op+0x1c6/0x6c0 crypto/ahash.c:370 crypto_ahash_final+0x8c/0xb0 crypto/ahash.c:381 hash_recvmsg+0x589/0xd30 crypto/algif_hash.c:215 ____sys_recvmsg+0xf58/0x1020 net/socket.c:886 ___sys_recvmsg net/socket.c:2617 [inline] __sys_recvmsg+0x4c0/0xb50 net/socket.c:2651 __compat_sys_recvmsg net/compat.c:494 [inline] __do_compat_sys_recvmsg net/compat.c:501 [inline] __se_compat_sys_recvmsg+0xa7/0xc0 net/compat.c:498 __ia32_compat_sys_recvmsg+0x4a/0x70 net/compat.c:498 do_syscall_32_irqs_on arch/x86/entry/common.c:430 [inline] __do_fast_syscall_32+0x2aa/0x400 arch/x86/entry/common.c:477 do_fast_syscall_32+0x6b/0xd0 arch/x86/entry/common.c:505 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:554 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c 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 michael_update+0x62d/0x890 crypto/michael_mic.c:87 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] hash_sendpage+0x8ef/0xdf0 crypto/algif_hash.c:168 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_compat_sys_sendfile fs/read_write.c:1622 [inline] __se_compat_sys_sendfile+0x301/0x3c0 fs/read_write.c:1605 __ia32_compat_sys_sendfile+0x56/0x70 fs/read_write.c:1605 do_syscall_32_irqs_on arch/x86/entry/common.c:430 [inline] __do_fast_syscall_32+0x2aa/0x400 arch/x86/entry/common.c:477 do_fast_syscall_32+0x6b/0xd0 arch/x86/entry/common.c:505 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:554 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c 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_compat_sys_sendfile fs/read_write.c:1622 [inline] __se_compat_sys_sendfile+0x301/0x3c0 fs/read_write.c:1605 __ia32_compat_sys_sendfile+0x56/0x70 fs/read_write.c:1605 do_syscall_32_irqs_on arch/x86/entry/common.c:430 [inline] __do_fast_syscall_32+0x2aa/0x400 arch/x86/entry/common.c:477 do_fast_syscall_32+0x6b/0xd0 arch/x86/entry/common.c:505 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:554 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Bytes 0-3 of 8 are uninitialized Memory access of size 8 starts at ffff997f76aba2b8 =====================================================