Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp59371lfe; Fri, 15 Apr 2022 19:26:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoLs0ilLFDwmLk7J+xyXH1ys+Pk0vKa0YkfR6rb8xOV7QeZ+jDDz3A6E2u56y6oKnju76b X-Received: by 2002:a63:4d66:0:b0:399:14fa:2acc with SMTP id n38-20020a634d66000000b0039914fa2accmr1417270pgl.558.1650076013930; Fri, 15 Apr 2022 19:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650076013; cv=none; d=google.com; s=arc-20160816; b=O3delS6aLURIP/QRyT9jPj24KXiUzX/PE4nPEGpDl2R4p5k2if8sfPugAlafDesaJd Q7t53xGjzyN1k3kk0tb2TMAs2y2pS4JAMx4omPG4/DPke1AVmbqRy8NxZl8LqNGxeckI NBW4+RrfeTiaJ8T0jDg8tYv8Pe7OUuNuxaxNoi1dAytiIDawEsDHiknMa/uRb+f/fhuw spQMZdJ88Vc46vxcMv1h73+BniWzUxb6DS5geil1VbjPBiLI4Wn9HT92Uhx9b25QZLa+ P55E/1OMTbIdUcqvQQWMadyWPXy1lkwTl2Ax9dXuqRqqa2XSX4TQdh02VggvinGeinmf dgJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NESzHONVGHV1/N4uLS6c1aCk5FCEsth/0gslXnhuKfY=; b=lebfgKUYbCswOajCQT2xAr0se7K0RxE6/ueySffgq1A5N7KwWo6LyF8f4dnc5q3cF9 1+WR18ncRWZOwh0atG7PQXPIP8gKK8FJ/zObdrzPcRurdHGbEsz2Omwq/cjWm4M/FfIZ P0nCIvKS28tEmCs6fY68zLmxMunCyL11aN73zYJ+7Aoqhj73XTPj1TLR0Zu2M7R9mIUa +EqNuLerhjsj/gUn6UWiG7T5dI0wXI3rCfA5dQKY9cZgoXxvdvsSxdjem11YnIZOkmzE RCOMb3DGw7/PEWXiffPl9IW+HwzSEnJl2J5cYZlRivYfuEoH+icDYTENJgqb8ctYrShM mV8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GpFfJTrY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i129-20020a625487000000b004fdada2b1d5si2802382pfb.327.2022.04.15.19.26.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GpFfJTrY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 28DFF3982A; Fri, 15 Apr 2022 18:39:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348503AbiDOB5W (ORCPT + 99 others); Thu, 14 Apr 2022 21:57:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232685AbiDOB5S (ORCPT ); Thu, 14 Apr 2022 21:57:18 -0400 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E786F25D8; Thu, 14 Apr 2022 18:54:49 -0700 (PDT) Received: by mail-vs1-xe35.google.com with SMTP id n5so6067419vsc.4; Thu, 14 Apr 2022 18:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NESzHONVGHV1/N4uLS6c1aCk5FCEsth/0gslXnhuKfY=; b=GpFfJTrYpLb4f5smSC1AgjdadlQH27G2xQ/t8C5/n8C8iJcq2AfCdJRUMH3Z5z3/jt vsAU6PxIHZSZihti9gULyoO/Fg4HAkBGlK9ezI7c99EGP6NZzpg93h0SQAgqZ3A6GmmQ 4Nycutx3Z9TlixucaQswnCwdJ32B2adJRAJ2+YzwQHGsswBuXHT3YjtNodySRZDRTbw0 kbiVL+ejBr9a82fO0BQCnyvxwmrlFyEeojj0l3vRklcACV1NF0+JKHBE1PkfBJFt0+2s VfKjSFh3HMCSuUTLQyK0IpJI1uvZnzXG3SviA73t4xzAhYfqGISNeGpRkLFWSsq7GVFA sXMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NESzHONVGHV1/N4uLS6c1aCk5FCEsth/0gslXnhuKfY=; b=M8oEVAZWgpS0hG9qiB4U882jH6yKb0hEiv5WdJnwJ8Z/u/2Bh8FTSmq8esXadArc5z EG1poz8uCsYZJZ7+IiH+9Gbsv0ELqVmmHhYSqh8O4EMCwTTtghGzKxjhg9sLlVAPEC4V KwwAq/caQ0WAZUa2nDPefve1y18gJRRXx+6Hnqd7UERuHPnvW1TdEDwOiUl+L8etrpdE +BWDdypps5OUrU1GtZmgMRKd5ZsySK7L3TbUqU0Hr32QMhIOabMkmHhjZ299zKeqKC1H CrWL/y8dlgQJho8i6goSf5KE5/+4xCGO8lL4XUzOxEwj+OaKD78Adn0WJCyjRTjBX0Gl XoOQ== X-Gm-Message-State: AOAM532OB58XFFlAyvWe2t/Sq0OqtI8Xa5vASQT5WuYCyH0qwgojweyb 2xm9KM32YOhYXI0o5GPw3yTH/Toh0qEvtvb8ON8= X-Received: by 2002:a67:e252:0:b0:32a:39d8:77b6 with SMTP id w18-20020a67e252000000b0032a39d877b6mr156399vse.9.1649987689054; Thu, 14 Apr 2022 18:54:49 -0700 (PDT) MIME-Version: 1.0 References: <000000000000a2518505dc34a817@google.com> In-Reply-To: <000000000000a2518505dc34a817@google.com> From: David Kahurani Date: Fri, 15 Apr 2022 04:54:37 +0300 Message-ID: Subject: Re: [syzbot] KMSAN: uninit-value in ax88179_led_setting To: syzbot Cc: arnd@arndb.de, Dan Carpenter , davem@davemloft.net, Alexander Potapenko , jackychou@asix.com.tw, Jann Horn , jgg@ziepe.ca, kbuild-all@lists.01.org, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, lkp@intel.com, netdev@vger.kernel.org, pabeni@redhat.com, Pavel Skripkin , Phillip Potter , syzkaller-bugs@googlegroups.com Content-Type: multipart/mixed; boundary="000000000000174d4a05dca7b298" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000174d4a05dca7b298 Content-Type: text/plain; charset="UTF-8" Made some changes, got to test this again just to be sure. #syz test https://github.com/google/kmsan.git master On Sat, Apr 9, 2022 at 11:40 AM syzbot wrote: > > Hello, > > syzbot has tested the proposed patch and the reproducer did not trigger any issue: > > Reported-and-tested-by: syzbot+d3dbdf31fbe9d8f5f311@syzkaller.appspotmail.com > > Tested on: > > commit: 33d9269e Revert "kernel: kmsan: don't instrument stack.. > git tree: https://github.com/google/kmsan.git master > kernel config: https://syzkaller.appspot.com/x/.config?x=d830111cc3be873 > dashboard link: https://syzkaller.appspot.com/bug?extid=d3dbdf31fbe9d8f5f311 > compiler: clang version 14.0.0 (/usr/local/google/src/llvm-git-monorepo 2b554920f11c8b763cd9ed9003f4e19b919b8e1f), GNU ld (GNU Binutils for Debian) 2.35.2 > patch: https://syzkaller.appspot.com/x/patch.diff?x=1130ceb7700000 > > Note: testing is done by a robot and is best-effort only. --000000000000174d4a05dca7b298 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-net-ax88179-add-proper-error-handling-of-usb-read-er.patch" Content-Disposition: attachment; filename="0001-net-ax88179-add-proper-error-handling-of-usb-read-er.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l1zs1aqb0 RnJvbSA1MjQzMGViZGJjZTAxOTIwMTllMWIzNTRmYjVjYmE0ODdlYmNmYjA5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEYXZpZCBLYWh1cmFuaSA8ay5rYWh1cmFuaUBnbWFpbC5jb20+ CkRhdGU6IFRodSwgMTQgQXByIDIwMjIgMTU6MTY6MDIgKzAzMDAKU3ViamVjdDogW1BBVENIXSBu ZXQ6IGF4ODgxNzk6IGFkZCBwcm9wZXIgZXJyb3IgaGFuZGxpbmcgb2YgdXNiIHJlYWQgZXJyb3Jz CgpSZWFkcyB0aGF0IGFyZSBsZXNzZXIgdGhhbiB0aGUgcmVxdWVzdGVkIHNpemUgbGVhZCB0byB1 bmluaXQtdmFsdWUgYnVncy4KQW4gZXhhbXBsZSBvZiBzdWNoIGEgYnVnIGNhbiBiZSBzZWVuIGJl bG93IHdoZXJlYnkgYSBsb2NhbCB2YXJ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