================================================================== BUG: KMSAN: uninit-value in atomic_sub arch/x86/include/asm/atomic.h:69 [inline] BUG: KMSAN: uninit-value in af_alg_free_areq_sgls+0x61f/0xb80 crypto/af_alg.c:668 CPU: 0 PID: 14114 Comm: syz-executor4 Not tainted 4.18.0-rc5+ #29 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+0x185/0x1e0 lib/dump_stack.c:113 kmsan_report+0x195/0x2c0 mm/kmsan/kmsan.c:982 __msan_warning+0x7d/0xe0 mm/kmsan/kmsan_instr.c:645 atomic_sub arch/x86/include/asm/atomic.h:69 [inline] af_alg_free_areq_sgls+0x61f/0xb80 crypto/af_alg.c:668 af_alg_free_resources+0x66/0xf0 crypto/af_alg.c:1032 _skcipher_recvmsg crypto/algif_skcipher.c:152 [inline] skcipher_recvmsg+0x16c9/0x19b0 crypto/algif_skcipher.c:165 sock_recvmsg_nosec net/socket.c:814 [inline] sock_recvmsg+0x1d6/0x230 net/socket.c:821 ___sys_recvmsg+0x41e/0x850 net/socket.c:2287 __sys_recvmsg net/socket.c:2336 [inline] __do_sys_recvmsg net/socket.c:2346 [inline] __se_sys_recvmsg net/socket.c:2343 [inline] __x64_sys_recvmsg+0x3a4/0x510 net/socket.c:2343 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x455ab9 Code: 1d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f5574e61c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002f RAX: ffffffffffffffda RBX: 00007f5574e626d4 RCX: 0000000000455ab9 RDX: 0000000000000000 RSI: 0000000020001480 RDI: 0000000000000015 RBP: 000000000072bf48 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004c0af6 R14: 00000000004d0ee8 R15: 0000000000000001 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline] kmsan_internal_poison_shadow+0xc8/0x1d0 mm/kmsan/kmsan.c:181 kmsan_kmalloc+0xa1/0x120 mm/kmsan/kmsan_hooks.c:91 __kmalloc+0x147/0x370 mm/slub.c:3782 kmalloc include/linux/slab.h:518 [inline] sock_kmalloc+0x14e/0x270 net/core/sock.c:1996 af_alg_get_rsgl+0x427/0xe10 crypto/af_alg.c:1148 _skcipher_recvmsg crypto/algif_skcipher.c:81 [inline] skcipher_recvmsg+0x555/0x19b0 crypto/algif_skcipher.c:165 sock_recvmsg_nosec net/socket.c:814 [inline] sock_recvmsg+0x1d6/0x230 net/socket.c:821 ___sys_recvmsg+0x41e/0x850 net/socket.c:2287 __sys_recvmsg net/socket.c:2336 [inline] __do_sys_recvmsg net/socket.c:2346 [inline] __se_sys_recvmsg net/socket.c:2343 [inline] __x64_sys_recvmsg+0x3a4/0x510 net/socket.c:2343 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================