Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp776669ybp; Fri, 11 Oct 2019 04:18:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgpTZSMvI2E4C0DOe4u3XWMnh/GehsBzJ2pWH3aCZdK1RyMRqiqHVYIhLq4nr3mDsRQWec X-Received: by 2002:a17:906:70c7:: with SMTP id g7mr13591138ejk.9.1570792697368; Fri, 11 Oct 2019 04:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570792697; cv=none; d=google.com; s=arc-20160816; b=C05+iZ0GJKp66pej991zcxcqaPSEqHzlz/k3K9pvh83yC0n8ItzlDCEBrQLi8aSv9P ZnmNy1yGYpv/UbLO5dZhtfafufiobe07g0A7VG/Clmh3wHXrzjLFQil6kfndMaYSAT4x WTuWaxbj521+QFWUuBamrXbR56tK+oe/OAuYf4Dvls6QFR8gyfm+HfDxizSJn/d3EqqP /4mriO2dpm5ZWRSZUpM9pOUJf/eMKGY8hGgEFF9Xhc607UKRTSGQjLyQz2n9PWjmRRE4 2BFnW0mqvWbbwopVpDncp1lxXjVQzZZ5eF8+6TLjvMRFBHLvdzeJvmy2htjuq5ZbMnx0 Btrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=VlmC3FzMBaeFdi8vKdtcQ+jsZk6Q6WwIVRbhfWm5BOY=; b=Is9i7mp4dsc2qcnit/8UCyxEGfoxdQkqrPacCRTLxNsCequtCVtJo5toT3UvSaDENJ x+hb6qXAZ3X3eS6eZEX9/oOYbsgpLteCQEV/N4DV2A1SI0nmCMPq6jEQSLL++Ia5x8+1 8dce44E5t522re6OWG5qzcqRKstVUmkAlObSE+Nmh6VLkrk/yLKNLD7DikBzd2eTk5zt akatSNDbSRvZKriBOr1YgPLzWWDHnigvfJIltQR04dLVb+kNIt46sfHFr3Ej+/ETXV43 AjHpPAKEWeqiUQOVwRGUq2TnAj7IUveRzdb0SPIuQGm2PigEXUR7pyocvDYI7APQlt+s 6ebQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hmEs5ubV; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si5481990ejj.108.2019.10.11.04.17.54; Fri, 11 Oct 2019 04:18:17 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hmEs5ubV; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727907AbfJKLRh (ORCPT + 99 others); Fri, 11 Oct 2019 07:17:37 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44458 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727226AbfJKLRh (ORCPT ); Fri, 11 Oct 2019 07:17:37 -0400 Received: by mail-pf1-f194.google.com with SMTP id q21so5886642pfn.11; Fri, 11 Oct 2019 04:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=VlmC3FzMBaeFdi8vKdtcQ+jsZk6Q6WwIVRbhfWm5BOY=; b=hmEs5ubVyP+9yFN5vhfrZRNiRHGIm/4+9CF0qg7KeaatHP681U9J2YkTTARsVVGmLH /LgKw8pGN1EhJggSGOPRQD20+b7RxlPK8kqokgmODoNJ+fk3KB81GItuVE8Z1jHNaVPd IjvYk0LsvlUx7KuNlXd+2AcFc+6QW9379pLGyYpWobN94jjnal3+vxAnKiPnfDfe5icw sO6k22ic/4fex3wCD9Cmax/JozcCKN1IG2jE7cJtMKbok0Xf2PRwsvmt9Xm2l1ZlYq4f NDgT8hPAbl/aajx10ahKrGqV3dcOzaCNkUfx4e7xi5NrZJR2ZAwCurCiilDj5n3PNaa7 zzCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=VlmC3FzMBaeFdi8vKdtcQ+jsZk6Q6WwIVRbhfWm5BOY=; b=H54xXsAxGjnR4dtzj7L3XxSzO4wk8WnjYRiFFuq4yAZQNly6LikKzAetFZr9WzrgNv lPqzvETThFt4eBCAwQf23a4MVkYCxsSa+NP7ql1bP3/u3iw55X8EL/QUb3QhbX42QURT +SwZgX3xtlRD40VDR7LwuNis59vLQm4MKFwAVa2BVUiLTtGrqUMwLjJxsrx3Qg6mNFLW l0xCd6xrjtxRmK98zFOeKaaHbdMCzeeNA4UrqV2LomUyfEWuGCiqOhx8hdBiheBfgHT7 NJmaK/KAI6OfUYKob5yx3Y2qNKhkMQ5ZdicqrtMFW0Xrho8NyMSMDlJDuxcYDdRgP2Pr ap9w== X-Gm-Message-State: APjAAAVCDtd0trp9SB9sbFKOGCdbMIqa0pnGBTYBWWaBKTh+DBp5OyrY 1PHZ7GGx9ixodZmhV6dBC+9Utzel7pw= X-Received: by 2002:a17:90a:730a:: with SMTP id m10mr17082622pjk.78.1570792656558; Fri, 11 Oct 2019 04:17:36 -0700 (PDT) Received: from localhost ([2402:3a80:139e:d60:aa0c:2692:c558:75f5]) by smtp.gmail.com with ESMTPSA id w14sm22001108pge.56.2019.10.11.04.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 04:17:36 -0700 (PDT) Date: Fri, 11 Oct 2019 16:47:32 +0530 From: Jas K To: syzbot+e7d46eb426883fb97efd@syzkaller.appspotmail.com Cc: stern@rowland.harvard.edu, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-kernel@vger.kernel.org Subject: Re: KMSAN: uninit-value in alauda_check_media Message-ID: <20191011111732.GA25982@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.1 (2019-06-15) 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 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);