Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1085286ybp; Fri, 11 Oct 2019 08:44:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9jFHs7WZ2+YLJSLUXcV9me+GjXZgkNNtCsF3AzylkxPfNvuqgxPeM/U2M830CzlpaEEH/ X-Received: by 2002:aa7:d8c7:: with SMTP id k7mr14228855eds.138.1570808664031; Fri, 11 Oct 2019 08:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570808664; cv=none; d=google.com; s=arc-20160816; b=BJyuAeM88YaKHLhFPGVfSv16o48DKtKvG6xhOHGw3iaYrgdDQwhUHuGCUTJjX9ehdw 9BVjdNepAkg88VDPBnGQ4CznKXE/3rWSYHLAGYURPJN7RiLiV4yUbQkKs/nTJZRj+0+n iv4VjyvuhrNwBA99hVuJxU8vu3lXelHR+GxTRdIAnBoA5XV/12Uzd7tYBKhjU9E+FqvR MzuWPN3USOGUDBVt/o/B6+x3iefF3FJnGY7yGu9iEtRUk7gchchkTUVj+oO1eWcVrUCf OtydDB8qjj5lXqS2Y6ZooblepSD1DV49Hh4LtX53XL4pfS6ZZffX4SHsf8tRXPR2JXTW rfGw== 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:in-reply-to :date:mime-version; bh=kFsPfbIuVLLP06mBsnv++deRNxJoBeYlYpS0DCBKJRY=; b=vvSyipZbHkV0DUHqtMsiQLZcpjzaEBjsAIGPyxQgMEVVGny+OEZhbTP+7si74SZ/am komScohlmdor2ih4TtUDk839WnQP7yQlvHxG0Pzt3wLELEnsTDT7YaX1co6mDvAOB3RA fDmmphHBpF10Z+SMNv6mmqjAHBHnINAsnMvSZia7TOeYDSlobT7WGOBkCoX/YK94JSDw U7JN4qBf/hsacmaXNdPGTtMu3kWZLy6ozweD47yH22reHRCrb4JvjxLoKHaO0dowDdKV RvxAXCym227KfpefjOGHCuNFQMvhsukshNIyUrlATL3BXw7PX/XH7BsdUj/R3WyvpeZQ rLOg== 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 a24si5443947ejg.127.2019.10.11.08.44.00; Fri, 11 Oct 2019 08:44:24 -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 S1728112AbfJKPmC (ORCPT + 99 others); Fri, 11 Oct 2019 11:42:02 -0400 Received: from mail-io1-f72.google.com ([209.85.166.72]:36712 "EHLO mail-io1-f72.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726642AbfJKPmC (ORCPT ); Fri, 11 Oct 2019 11:42:02 -0400 Received: by mail-io1-f72.google.com with SMTP id g126so15275806iof.3 for ; Fri, 11 Oct 2019 08:42: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:in-reply-to:message-id:subject :from:to; bh=kFsPfbIuVLLP06mBsnv++deRNxJoBeYlYpS0DCBKJRY=; b=C6suu0TGyqce7a2MqUkf6PmVfi6gQ9lFBqD1xH0Aoj/qD8JaylAzDEZdw/JBaT+5Cx tLbGnUJE3P1ErU+3wwVDym2NjTCWyVr81KGukm5XDjRjHj2br6EQ/jiEyelzcLcSuQjQ DQPKsrHionx8fht6jy+8lKIec5A/cYqTwcLaaONXVyB5M1c2/xtlCtCVQ0ku2XJUMpxQ KJ/rk725T/w+deQZ1TrIgnLWgfWOUm4noyDUIkRvLA4Wf4o9ziEkFNIHgOv/QZEdj0+R U8T3ayGxXnEk1/EKw0eztJ9gIrnJsdePaZZMg6bNxRVQuOz3v1l/f3AFq5MUbWyTHZlx 0DIw== X-Gm-Message-State: APjAAAVKW/Joqhh88I+AIObzQ6inadH5Anw90IIsLJA0BRMd6Zdc6on5 Kqo2xLUUtkZQ5+rMST9h+kMq92ALkh5jSuCgwETteNn5t/Sj MIME-Version: 1.0 X-Received: by 2002:a5e:9b04:: with SMTP id j4mr106545iok.45.1570808521184; Fri, 11 Oct 2019 08:42:01 -0700 (PDT) Date: Fri, 11 Oct 2019 08:42:01 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000ea5bf90594a45b81@google.com> Subject: Re: KMSAN: uninit-value in alauda_check_media From: syzbot To: glider@google.com, gregkh@linuxfoundation.org, jaskaransingh7654321@gmail.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, stern@rowland.harvard.edu, syzkaller-bugs@googlegroups.com, usb-storage@lists.one-eyed-alien.net 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 has tested the proposed patch but the reproducer still triggered crash: KMSAN: uninit-value in alauda_check_media ===================================================== BUG: KMSAN: uninit-value in alauda_transport+0x462/0x57f0 drivers/usb/storage/alauda.c:1138 CPU: 1 PID: 11015 Comm: usb-storage Not tainted 5.4.0-rc2+ #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+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x14c/0x2c0 mm/kmsan/kmsan_report.c:110 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:245 alauda_check_media+0x344/0x3310 drivers/usb/storage/alauda.c:461 alauda_transport+0x462/0x57f0 drivers/usb/storage/alauda.c:1138 usb_stor_invoke_transport+0xf5/0x27e0 drivers/usb/storage/transport.c:606 usb_stor_transparent_scsi_command+0x5d/0x70 drivers/usb/storage/protocol.c:108 usb_stor_control_thread+0xca6/0x11a0 drivers/usb/storage/usb.c:380 kthread+0x4b5/0x4f0 kernel/kthread.c:256 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:355 Local variable description: ----status@alauda_check_media Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 11015 Comm: usb-storage Tainted: G B 5.4.0-rc2+ #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+0x191/0x1f0 lib/dump_stack.c:113 panic+0x3c9/0xc1e kernel/panic.c:220 kmsan_report+0x2b4/0x2c0 mm/kmsan/kmsan_report.c:133 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:245 alauda_check_media+0x344/0x3310 drivers/usb/storage/alauda.c:461 alauda_transport+0x462/0x57f0 drivers/usb/storage/alauda.c:1138 usb_stor_invoke_transport+0xf5/0x27e0 drivers/usb/storage/transport.c:606 usb_stor_transparent_scsi_command+0x5d/0x70 drivers/usb/storage/protocol.c:108 usb_stor_control_thread+0xca6/0x11a0 drivers/usb/storage/usb.c:380 kthread+0x4b5/0x4f0 kernel/kthread.c:256 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:355 Kernel Offset: disabled Rebooting in 86400 seconds.. Tested on: commit: c40e5c97 kmsan: drop some dead code in kmsan_shadow.c git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=153ba453600000 kernel config: https://syzkaller.appspot.com/x/.config?x=49548798e87d32d7 dashboard link: https://syzkaller.appspot.com/bug?extid=e7d46eb426883fb97efd compiler: clang version 9.0.0 (/home/glider/llvm/clang 80fee25776c2fb61e74c1ecb1a523375c2500b69)