Received: by 10.213.65.68 with SMTP id h4csp1309894imn; Sun, 8 Apr 2018 00:10:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+2rj58ZaTjgQA0GH7W7Bwkg4hAUoHTQ8f3Scw79BMWLCNrITLNtxywIoAl4DEgFO9d+Uhg X-Received: by 10.99.56.8 with SMTP id f8mr22097564pga.374.1523171444950; Sun, 08 Apr 2018 00:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523171444; cv=none; d=google.com; s=arc-20160816; b=pqRcgxGpbYkjC3aZ87Ij5O0HEz9oiU6yIy4vtzqKWDkuKaUB4Cai+ojqddyyJ+zJxM tU9WU1sqTgZKuJ/h1DeXhtqU2shXqDGOixAlSDYu8GDnpw5n2md+BnYzIcFbUCwjGJTS OHjf1/yioW/Mj4QV1FjMI+zScyeqohGdy1oBmHE9X0k4fuu56VSR1nhEf6yYxKJC77c/ E9P0+505bKYEHFTxl+02VHDtdlQ3Mk65SZJdCmthtf0yhVfW6dL32ZeUuKjlhHzN2ZiG R8+XXJyA5Wo+8Qc3yVUVW7kxbrCk5+66Rd8BoAgQi4Oj79mIPiROy6CvLQNyTlO0b469 5I9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version:arc-authentication-results; bh=T9v4FjhwBwm4QENhMIKMPPy6rGuQrfEgwebrcxrSuBM=; b=hampHEYJnqXwAeNaCZzNACAOM69qDC+u4WrlFhQR/eJDr9n+iF8gKMRJUz0HTWRVDF AsZWGLTLkYSWEHxo8dI4aMELEtWMRotXsKMbe1qOTxK9YyPm9pV05MCCf2Ykwcn7JeRs n/oceTtU8Mr454+O4WV61sjFG/Ifmc1M5DRO4q64J9HT/qI7oUFozzBw7SlLwwsMHxUJ tEDF6pxJ8risDYwHnZzYwRIRk7Rb0ItfGr9+zOgqrbnA0LPHQFY5Nce3ONmWQBIB6MHe 5SYMNj0W7pZQmkkZ+ge9GzHzMsszm4iCzVxWwAnHnJxCtIVk/JLViG0vRlTC4ThXCeo7 POUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9si9599531pgc.202.2018.04.08.00.10.08; Sun, 08 Apr 2018 00:10:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751803AbeDHHHD (ORCPT + 99 others); Sun, 8 Apr 2018 03:07:03 -0400 Received: from mail-io0-f198.google.com ([209.85.223.198]:51224 "EHLO mail-io0-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751653AbeDHHHB (ORCPT ); Sun, 8 Apr 2018 03:07:01 -0400 Received: by mail-io0-f198.google.com with SMTP id e9so5047686ioj.18 for ; Sun, 08 Apr 2018 00:07:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=T9v4FjhwBwm4QENhMIKMPPy6rGuQrfEgwebrcxrSuBM=; b=kKE6P67gzQrumSqG0JaT5m/nxOJ5JHE+4y00VaVTHcBe6B3JJMFqtjiMrJ9sNDJ+YP BPxaarjUiv9DS+IFoUBG6SUrFIytwwlC8EDFXI8L5f8R7jpgN4BQTSJp8kgdysThKwB3 6g2mRcYhTSmSgDiOHbZiBrLw+n3pRV+UTMav8hETigQjzeoaGJDfgkzCdtL3XQSfN+Uf DprNhUWqFMB5lOnlQehrxLi5fuFncA6X5qH2pZM3UCyge/PVqKUa18Va/EfJMGgOcAmC G24n/l0ZowyJaQVmIyc4zKVFFsS70aYKpeVvyrQPdbM0RDp6hwroBO/ZDACAqIlZ04hH JihA== X-Gm-Message-State: ALQs6tDC07E2iGd/gYWWwycvXDLoL2nNGxLrQybKw07rnsw4ccY+95m4 OOslt4fHowBz+nNZjQHeCGgGbRC/ZdSqRQchXlKNyiquFhlS MIME-Version: 1.0 X-Received: by 2002:a24:7c0b:: with SMTP id a11-v6mr12897448itd.44.1523171221218; Sun, 08 Apr 2018 00:07:01 -0700 (PDT) Date: Sun, 08 Apr 2018 00:07:01 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000092ad87056950ef9e@google.com> Subject: KMSAN: uninit-value in af_alg_free_areq_sgls From: syzbot To: davem@davemloft.net, herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot hit the following crash on https://github.com/google/kmsan.git/master commit e2ab7e8abba47a2f2698216258e5d8727ae58717 (Fri Apr 6 16:24:31 2018 +0000) kmsan: temporarily disable visitAsmInstruction() to help syzbot syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=9c251bdd09f83b92ba95 So far this crash happened 11 times on https://github.com/google/kmsan.git/master. C reproducer: https://syzkaller.appspot.com/x/repro.c?id=5551473324720128 syzkaller reproducer: https://syzkaller.appspot.com/x/repro.syz?id=4782073151750144 Raw console output: https://syzkaller.appspot.com/x/log.txt?id=5003160619843584 Kernel config: https://syzkaller.appspot.com/x/.config?id=6627248707860932248 compiler: clang version 7.0.0 (trunk 329391) IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+9c251bdd09f83b92ba95@syzkaller.appspotmail.com It will help syzbot understand when the bug is fixed. See footer for details. If you forward the report, please keep this part and the footer. ================================================================== BUG: KMSAN: uninit-value in atomic_sub arch/x86/include/asm/atomic.h:65 [inline] BUG: KMSAN: uninit-value in af_alg_free_areq_sgls+0x5ff/0xb20 crypto/af_alg.c:669 CPU: 1 PID: 3568 Comm: syzkaller909997 Not tainted 4.16.0+ #82 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 atomic_sub arch/x86/include/asm/atomic.h:65 [inline] af_alg_free_areq_sgls+0x5ff/0xb20 crypto/af_alg.c:669 af_alg_free_resources+0x66/0xf0 crypto/af_alg.c:1033 _aead_recvmsg crypto/algif_aead.c:321 [inline] aead_recvmsg+0x9a4/0x2960 crypto/algif_aead.c:334 aead_recvmsg_nokey+0x129/0x160 crypto/algif_aead.c:452 sock_recvmsg_nosec net/socket.c:803 [inline] sock_recvmsg+0x1d0/0x230 net/socket.c:810 ___sys_recvmsg+0x3fb/0x810 net/socket.c:2205 __sys_recvmsg net/socket.c:2250 [inline] SYSC_recvmsg+0x298/0x3c0 net/socket.c:2262 SyS_recvmsg+0x54/0x80 net/socket.c:2257 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 RIP: 0033:0x43ff29 RSP: 002b:00007ffd9919c808 EFLAGS: 00000207 ORIG_RAX: 000000000000002f RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff29 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 R10: 00000000004002c8 R11: 0000000000000207 R12: 0000000000401850 R13: 00000000004018e0 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:188 kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan.c:314 __kmalloc+0x23c/0x350 mm/slub.c:3791 kmalloc include/linux/slab.h:517 [inline] sock_kmalloc+0x14e/0x270 net/core/sock.c:1986 af_alg_get_rsgl+0x427/0xe10 crypto/af_alg.c:1149 _aead_recvmsg crypto/algif_aead.c:163 [inline] aead_recvmsg+0x953/0x2960 crypto/algif_aead.c:334 aead_recvmsg_nokey+0x129/0x160 crypto/algif_aead.c:452 sock_recvmsg_nosec net/socket.c:803 [inline] sock_recvmsg+0x1d0/0x230 net/socket.c:810 ___sys_recvmsg+0x3fb/0x810 net/socket.c:2205 __sys_recvmsg net/socket.c:2250 [inline] SYSC_recvmsg+0x298/0x3c0 net/socket.c:2262 SyS_recvmsg+0x54/0x80 net/socket.c:2257 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 ================================================================== --- This bug is generated by a dumb bot. It may contain errors. See https://goo.gl/tpsmEJ for details. Direct all questions to syzkaller@googlegroups.com. syzbot will keep track of this bug report. If you forgot to add the Reported-by tag, once the fix for this bug is merged into any tree, please reply to this email with: #syz fix: exact-commit-title If you want to test a patch for this bug, please reply with: #syz test: git://repo/address.git branch and provide the patch inline or as an attachment. To mark this as a duplicate of another syzbot report, please reply with: #syz dup: exact-subject-of-another-report If it's a one-off invalid bug report, please reply with: #syz invalid Note: if the crash happens again, it will cause creation of a new bug report. Note: all commands must start from beginning of the line in the email body.