Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1063455ybp; Fri, 11 Oct 2019 08:27:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4mem0ys4+Vq5ND1CIzx2Bj5PfLUcUrBHjsmY4SkYdp+ECmYuR3PXuRxHHhPQcC4a+Cyfz X-Received: by 2002:a17:906:3f87:: with SMTP id b7mr14220818ejj.107.1570807635324; Fri, 11 Oct 2019 08:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570807635; cv=none; d=google.com; s=arc-20160816; b=eu5IPY0yzsDAX8s8M984INud3BBpVQ1OuCVAJzZXe+DU/Q7OMbZ/x3dpKA4/GvkxcF i1oaq+VFyJZE1nyxmV1o5VxQNHatxRCY8pf3YyCtnnutcwP2PquoI6v73rTowg9j/1Dv TsUdopkJEVwnUqFPKxmjFChVTD5K2NZFzf9bcPq888rpjEgQAYRbdpzFlqyhKhunD+01 eD4iagvnobSRvA5htJgp2MTMbzUMBfb83XNcR91adjdVSoP1BIZRzZqBw9Y/2FshVaI/ kD/bvXS/UGj2g18j7UUpIStzjpu3PTtjtIIXS5KY0nbcA9sSHBmWXxgOhIEsLrAgXYrF Pa7w== 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=M2Zk83UHjuHOijfJsrKFxRFCeO8Fg9AWHxC+LcAN1hg=; b=cbR7MmaWcchjzQMTFnLGaFnFnP5gRCO55VrcPaf6/aPNz3RH/nQ+76kvn8hSYzYnW+ CI3YHuh+ERgPFlolqGnP/yFtS03gDStjrCX2FJku2bOV0RT5VABMFDK068npJ6ia9D8U 3jgvm/r9rYJuLtfIgo3r4ed+FEqlTf6m3FXnoIlNEUzJsmBA7pNf+lJimLrhHQoQhrK6 m7pqwVBOCpT79RxHZUPgQptGpgl5k8CfQaseULOpQkjn71XjsAAQO1zGhPrFguhoDZip imgs9UUR4uU6rOirac1rhNrb3i6L8g/XgwgcmKS1KNAcQkmhOpbZBtV94U7X2TCChCEw XQjw== 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 br24si5477484ejb.101.2019.10.11.08.26.51; Fri, 11 Oct 2019 08:27:15 -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 S1726910AbfJKPYD (ORCPT + 99 others); Fri, 11 Oct 2019 11:24:03 -0400 Received: from mail-io1-f72.google.com ([209.85.166.72]:47335 "EHLO mail-io1-f72.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbfJKPYD (ORCPT ); Fri, 11 Oct 2019 11:24:03 -0400 Received: by mail-io1-f72.google.com with SMTP id k14so15131058iot.14 for ; Fri, 11 Oct 2019 08:24: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=M2Zk83UHjuHOijfJsrKFxRFCeO8Fg9AWHxC+LcAN1hg=; b=SDmP0rtvKXnOwQ8cCK2SsOLas38vzgUg7rtCFEaljrF9aQtejO09Iy9oZdyJ73Ux3F 4FFoJphkne7czpkHovxUgYh2WQuwZRLA6b3K5BUZb6PDNOhoKyl1+cLEz88Dn/uXEL70 p41hTR0Zh5FktQpJjTg0YLvYYnyRuTCLeL+N0hOYVsu7rLPx7AuGoSyjqT+Q5A6iWKCU WQoaJAXW92YLZAox/QToQvJtNb8XWrS1FR5pAA0VyBfCyTQ3T/Vg4x8ZyPCSSuZKUHZ5 4o6WK68G3+3JW4XAhphKZv8k2myT9LeEyzs/nAMB1D/4Q7Ac7BDqEPp6LcqvlfuY9QD6 GS3Q== X-Gm-Message-State: APjAAAVkiPj04akU0MqA3uQIj8XE4t7pnzNoSdLtJ3zjopUCBtrP+lI7 Hzk01ODZ6h2Wd/H3gBgT8T7s931cbtv0Yx9PhxuxJH8RdQYE MIME-Version: 1.0 X-Received: by 2002:a5e:8819:: with SMTP id l25mr24986ioj.18.1570807441129; Fri, 11 Oct 2019 08:24:01 -0700 (PDT) Date: Fri, 11 Oct 2019 08:24:01 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000008a083f0594a41bf1@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 sd_revalidate_disk ===================================================== BUG: KMSAN: uninit-value in check_disk_change+0x423/0x4b0 fs/block_dev.c:1499 CPU: 1 PID: 23508 Comm: scsi_id Not tainted 5.3.0-rc7+ #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+0x13a/0x2b0 mm/kmsan/kmsan_report.c:108 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:250 media_not_present drivers/scsi/sd.c:1527 [inline] sd_spinup_disk drivers/scsi/sd.c:2096 [inline] sd_revalidate_disk+0x4d2/0xbef0 drivers/scsi/sd.c:3114 check_disk_change+0x423/0x4b0 fs/block_dev.c:1499 sd_open+0x471/0x8e0 drivers/scsi/sd.c:1356 __blkdev_get+0x4a8/0x2480 fs/block_dev.c:1569 blkdev_get+0x228/0x6d0 fs/block_dev.c:1707 blkdev_open+0x36b/0x490 fs/block_dev.c:1846 do_dentry_open+0xda7/0x1810 fs/open.c:797 vfs_open+0xaf/0xe0 fs/open.c:906 do_last fs/namei.c:3416 [inline] path_openat+0x17f4/0x6bb0 fs/namei.c:3533 do_filp_open+0x2b8/0x710 fs/namei.c:3563 do_sys_open+0x642/0xa30 fs/open.c:1089 __do_sys_open fs/open.c:1107 [inline] __se_sys_open+0xad/0xc0 fs/open.c:1102 __x64_sys_open+0x4a/0x70 fs/open.c:1102 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x7f7c9e529120 Code: 48 8b 15 1b 4d 2b 00 f7 d8 64 89 02 83 c8 ff c3 90 90 90 90 90 90 90 90 90 90 83 3d d5 a4 2b 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 5e 8c 01 00 48 89 04 24 RSP: 002b:00007fff97dee0a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fff97dee5c0 RCX: 00007f7c9e529120 RDX: 00007fff97dee3c0 RSI: 0000000000000800 RDI: 00007fff97dee3c0 RBP: 00000000017ac010 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff97dee5c0 R13: 00007fff97dee3c0 R14: 00000000017ac010 R15: 0000000000000000 Local variable description: ----sshdr.i@sd_revalidate_disk Variable was created at: sd_spinup_disk drivers/scsi/sd.c:3108 [inline] sd_revalidate_disk+0x2d3/0xbef0 drivers/scsi/sd.c:3114 check_disk_change+0x423/0x4b0 fs/block_dev.c:1499 ===================================================== Tested on: commit: 1e76a3e5 kmsan: replace __GFP_NO_KMSAN_SHADOW with kmsan_i.. git tree: https://github.com/google/kmsan.git console output: https://syzkaller.appspot.com/x/log.txt?x=144fd0a0e00000 kernel config: https://syzkaller.appspot.com/x/.config?x=f03c659d0830ab8d dashboard link: https://syzkaller.appspot.com/bug?extid=e7d46eb426883fb97efd compiler: clang version 9.0.0 (/home/glider/llvm/clang 80fee25776c2fb61e74c1ecb1a523375c2500b69) patch: https://syzkaller.appspot.com/x/patch.diff?x=110434ab600000