Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp777556ybp; Fri, 11 Oct 2019 04:19:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCLyi71l5keqZcrooUpwoCICGJqDr9/HmxBx+BOX6HQbm6QbHNsimjv3bIKUgLc5H/EKDg X-Received: by 2002:a17:906:f254:: with SMTP id gy20mr13766680ejb.180.1570792750457; Fri, 11 Oct 2019 04:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570792750; cv=none; d=google.com; s=arc-20160816; b=RdoVB9ItBuNPHu4rVpV/zhia3sg/jQ73Utyyza5Jz+H92hrtYYSUmF3kLpPMKDwJ50 x1YSyJYGCKWaqaMJnWVn7n9yIVCPuH4PmeX68vpAZesskxbEt4IeqPLVZz7JGAyx6pM2 bLvzBRvjnMvuwWgVfOVp/vAgsTUMP9w+XvPmL/domA/birGrW8HkAAW+m57lpNnpZ3vN rjcYj7OxGzEH1VldTtG6QJhNH23ZvfLA4kTlgcBP6bIa3YBDNckqs+OOV2KMCi8WM4/U jSD3Nliy4vg/puRF5iPagpOJAfVgKKcEAfaeluLidkIda27s+5pfyB1xbOctJWlO5MY4 NLRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:message-id:in-reply-to :date:mime-version; bh=J6IpSUQHDWERoX2AnvSyjcwg1RqT2lsBVSYteeT19hs=; b=ncsrJLrdnmue8UqJY9CeGRhk1r2BBumYB861F//GIgYEIff7C22p3L3Pbc/xP9E1R2 qjhfOXhma/nWlK5W8kV3OBqHOd21FRQXykCbl6x6q06umOE8EtHXFBPYmGVDcaQuZ+wq N/R6X8RnmLsKAzTRwWLNEXWxiFe872KRpdX3RJppuJUHb9u4I0aSS6bISD7NJNwnvL7Z Zl9yo+xqlzz1C+wbEAzsa69SYMlmEy5JsR4PF5NKLPWFSHTxa8+CZBW/BW8Ub5VcOF3X /1GxJNzMWgb8dxugfKgzp0Ox/yorlAlsp/hSTjPBAl4YJgU5OQcjUCDqsLrbONnzds9L efYg== 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 r3si5032585ejs.415.2019.10.11.04.18.46; Fri, 11 Oct 2019 04:19:10 -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 S1727929AbfJKLRl (ORCPT + 99 others); Fri, 11 Oct 2019 07:17:41 -0400 Received: from mail-io1-f72.google.com ([209.85.166.72]:55832 "EHLO mail-io1-f72.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727917AbfJKLRk (ORCPT ); Fri, 11 Oct 2019 07:17:40 -0400 Received: by mail-io1-f72.google.com with SMTP id r13so14181968ioj.22 for ; Fri, 11 Oct 2019 04:17:38 -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:cc; bh=J6IpSUQHDWERoX2AnvSyjcwg1RqT2lsBVSYteeT19hs=; b=jFQo/nDDSzESA/ySx4zEg2/GfvhbcjcVVuy21gZcCaDIOf9cRF3hDL3BaO5PYomEzs IkcTekKebxZLbd9KKp5iF9zxdhDBfEB4qrwDRzUK/zVgg9Yq3A9GAPYRxhNGiD2eV/V2 Fzol0e2tFWaPt3CKWZzoh0cauQCuYMdjSKJ4+ulwKBz/nH9WzKnpj/cFj/3SQEu/FcPA +dw9uOipUpWK913D9ee4z6tsbnUdXNEO7yAxbyg9alDts7LXokzWXfAXuWYIJNNHMV1v PK+udQKsLfW5qvwMwcchpLS+7Kqiy+ZnB2hJ/qMfPl7AAAP+WWW2kxue/Y6eMjUrTYVy hkMw== X-Gm-Message-State: APjAAAWCT5X1pfY86QKefmqO3w0zbRAQsehs7+LwdHVB3I7mbdNWhSDO BUgPiF4kzSWakr8eMJfMtOCPbygPtpywqUK9cQx4iD3zDY/8 MIME-Version: 1.0 X-Received: by 2002:a6b:5814:: with SMTP id m20mr16543044iob.242.1570792657772; Fri, 11 Oct 2019 04:17:37 -0700 (PDT) Date: Fri, 11 Oct 2019 04:17:37 -0700 In-Reply-To: <20191011111732.GA25982@localhost.localdomain> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000061e8090594a0aa4c@google.com> Subject: Re: Re: KMSAN: uninit-value in alauda_check_media From: syzbot To: Jas K Cc: gregkh@linuxfoundation.org, jaskaransingh7654321@gmail.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, stern@rowland.harvard.edu, usb-storage@lists.one-eyed-alien.net, 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 > Hi, just taking a crack at this. Hope you guys don't mind. > #syz test: https://github.com/google/kasan.git 1e76a3e5 KMSAN bugs can only be tested on https://github.com/google/kmsan.git tree because KMSAN tool is not upstreamed yet. See https://goo.gl/tpsmEJ#kmsan-bugs for details. > diff --git a/drivers/usb/storage/alauda.c b/drivers/usb/storage/alauda.c > index ddab2cd3d2e7..bb309b9ad65b 100644 > --- a/drivers/usb/storage/alauda.c > +++ b/drivers/usb/storage/alauda.c > @@ -452,7 +452,7 @@ static int alauda_init_media(struct us_data *us) > static int alauda_check_media(struct us_data *us) > { > struct alauda_info *info = (struct alauda_info *) us->extra; > - unsigned char status[2]; > + unsigned char *status = us->iobuf; > int rc; > rc = alauda_get_media_status(us, status);