Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5062942ybx; Sun, 10 Nov 2019 06:12:32 -0800 (PST) X-Google-Smtp-Source: APXvYqzsJZxe7IrKESnZHUMo2QiXVKAePwtiUaT26lw5qGJzqAatDgblYNPDc0tHhP/4ruUorGnC X-Received: by 2002:a50:ed12:: with SMTP id j18mr21838459eds.172.1573395152357; Sun, 10 Nov 2019 06:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573395152; cv=none; d=google.com; s=arc-20160816; b=Oj3yUIDLDrhyc28A+koN8NFUDHDEWsXlgZJovZKe8La+StegD2L/6JY2fyQmQEjRhi 8b7RDPY1oDkdo3Tks/J6odRL0HtgJu5PS8mEt7WkI9nw8wWjoy7Y5CSu6M2CmRsIxd9l DQ7hlOAUm1SpE5AFRHdgUNyR8bTdX0Fj6iStRq1qVZ/L2qwJ02YqW7ORXdHHwS+3P5Kz D+InMAwDvRTyJNJK72qIwY5eSKHnPns2AICDqivabqfVtgcHKr1PxI+SJAPhZnd7JGUb 9t8q6ceQEq1GnJKqkFVMdsnJPlDTOYc3P/G8Bsq4MqFk2t1HJwKolHr9SEP8ac8MPYZp 67gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:dkim-signature; bh=h8eMClpCjaC9/eG1emZN+Rx3CQQJyECB4vddmHzKxA0=; b=AII81yjjTro4Ozb8PhvH7dI9y3KGXjW56bLw53Vu2ttg1ZP4rUlI5NxWkGnxWvfGiT byRhoKqrlL52L/pUJmgEjC/4ZmFZiFUrzqjy+OUyELZFaVSS/WUxb4zR2qMMdv5/V7ER Ylr6TTvqSNUaxkQ3LYbKnmquzQ8GNpFXaLJx+RpHg/ZwVnOg/DaIShCgZdg89bQFIWp/ aM8XpwBDFJue++zjzyJuCqKd0ZqLyqlKK3euYsU9auC2QkBGjHDevVUNOgTBGhw1/tY3 AOigkO1HVan+7GDa9itVF+MrKK/SZczwkfQK0S5WTjlDoFDuS6+zeGgl9bGmDsS6XIQX HEOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Gy1/Ts2u"; 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 w2si8811084edf.32.2019.11.10.06.12.09; Sun, 10 Nov 2019 06:12:32 -0800 (PST) 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="Gy1/Ts2u"; 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 S1726778AbfKJOLR (ORCPT + 99 others); Sun, 10 Nov 2019 09:11:17 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42795 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbfKJOLR (ORCPT ); Sun, 10 Nov 2019 09:11:17 -0500 Received: by mail-pf1-f195.google.com with SMTP id s5so8540696pfh.9; Sun, 10 Nov 2019 06:11:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=h8eMClpCjaC9/eG1emZN+Rx3CQQJyECB4vddmHzKxA0=; b=Gy1/Ts2uVJ0mxHGyMcSKWA7jVhlc2aWT4GeKJ+wCJ1+g1vnuRtSXJWXaqTUj+nJsOd JKZUNvluHsgZmZijJ8sTQbr93abNK+YvsKkmRpWawnEwUTT1Kq1BHB0sGRdSxkeD6mZY IWOdFQYA55TkivXHi4DfC5n74lntpRzKspuHnAttV/8MG25Akfwg6EHBYJEJsyRzLPfT inIP9tfU2yvU22QLl7j9mylQo9bqpeJW0587mVb45jNs6gGNdC/XdOZC/+sziBi6Z+FK 4I4SF1A3aAW5Jidv7wZcH6raZ01M6sKZsFTCKJCq9K26UQa7QG3RaqQC8V2uTaVTTUus kTEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=h8eMClpCjaC9/eG1emZN+Rx3CQQJyECB4vddmHzKxA0=; b=WNcJg2rBfZeDwyfzc1HXbGygb4qRpK8fyX4Ucxekgx+cZh5wmYgGeSUcQckagMF1bQ CtlvWtb7kWiT+J/JXihTIwGRYwH7NdeUFEHpT8LloZOIi7GnBHYg5E/4uZDN+/9WMGG3 wNsXTnqx6xIfv1ZFQe+Wa2+7MtbvS6xcnQekqBs7UqPywCd5UFVVXSRyeivzvdoMrIN5 fKlIGGxAZ2KA7fNc51/DJaEMrA5uSBmuvbq5E+qvSeUNa4uIEHF6ji4/G8PqixDBVJQp msVcELG6Dx66WKavQt+siPXmuBFDrQd1E4+SSTQI5xQZ9OGelO9Wt4w39xoddtbHUzoV OKhQ== X-Gm-Message-State: APjAAAVXurtucj9AXxFNAXbDb0DCnK905JpUJU/Ky37puxgbLE2rWb6y z3O50Vo4wae9MTCTVCRSojU= X-Received: by 2002:a17:90a:a483:: with SMTP id z3mr26513359pjp.55.1573395076245; Sun, 10 Nov 2019 06:11:16 -0800 (PST) Received: from ?IPv6:2405:4800:58f7:3f8f:27cb:abb4:d0bd:49cb? ([2405:4800:58f7:3f8f:27cb:abb4:d0bd:49cb]) by smtp.gmail.com with ESMTPSA id w26sm17012987pfj.123.2019.11.10.06.11.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Nov 2019 06:11:15 -0800 (PST) Cc: tranmanphong@gmail.com, syzbot+7dc7c28d4577bbe55b10@syzkaller.appspotmail.com, gregkh@linuxfoundation.org, glider@google.com, hslester96@gmail.com, kstewart@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, tglx@linutronix.de, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: Re: [PATCH] usb: asix: Fix uninit-value in asix_mdio_write To: David Miller References: <0000000000009763320594f993ee@google.com> <20191107004404.23707-1-tranmanphong@gmail.com> <20191107.152118.922830217121663373.davem@davemloft.net> From: Phong Tran Message-ID: <5679efce-797a-ea2c-f7fb-882ac450e9d2@gmail.com> Date: Sun, 10 Nov 2019 21:11:11 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191107.152118.922830217121663373.davem@davemloft.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/19 6:21 AM, David Miller wrote: > From: Phong Tran > Date: Thu, 7 Nov 2019 07:44:04 +0700 > >> The local variables use without initilization value. >> This fixes the syzbot report. >> >> Reported-by: syzbot+7dc7c28d4577bbe55b10@syzkaller.appspotmail.com >> >> Test result: >> >> https://groups.google.com/d/msg/syzkaller-bugs/3H_n05x_sPU/sUoHhxgAAgAJ >> >> Signed-off-by: Phong Tran > > There are several more situations in this file where the data blob passed > to asix_read_cmd() is read without pre-initialization not checking the > return value from asix_read_cmd(). > > So, syzbot can see some of them but not all of them, yet all of them > are buggy and should be fixed. > > These kinds of patches drive me absolutely crazy :-) > > Really, one of two things needs to happen, either asix_read_cmd() clears > the incoming buffer unconditionally, thank you for your suggestion. Sent Patch v2 reply-to this mail thread. regards, Phong.