Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1655173iob; Sat, 14 May 2022 16:08:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1LJILCM3PuyxSTCDDDDAB8azGKPjB6gmKkwrfs1M7EQJw4LHiKNgFFsm5Ckvac25RhSVU X-Received: by 2002:a05:6000:1f91:b0:20c:54e5:fbbb with SMTP id bw17-20020a0560001f9100b0020c54e5fbbbmr8887381wrb.557.1652569705811; Sat, 14 May 2022 16:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652569705; cv=none; d=google.com; s=arc-20160816; b=CpLhQRWJP6Hy9Ie2fqSqGb2Hiex93JlNs2PkguTCPpBSJ4LOhXFyYZ54bKi0p8gVJ9 lPQ+/3pNb/NQg4PRC4OWPOtYT+SHqVmQ1XZOpztOMJwNqTbn5VByJtG7JoUceRKMCaKI rDQfixu2wItQlpjLC0w+xRIs0o5xHTmbWNFueUX0ZRc6DepKy/rnKN+XVgCv+P4vf8fq /5G95SDyMnRvOfICgfV8Nog4P5ovSUgE2/6YYuNKwYz7eD6FYkxU8z06xfTHtrU9ImRK txwoBXT0dOsRD5MXiCk+F31sW4YMnAB8DFHEd+MpC0Is0PxoN8bVLdOwk1BxHJkiUAcY k0aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=pS1wtzs1IwDDz2mD9jlYi8ZaLWHZtdCebfHrT1hZXBo=; b=nJcYkCY668XhD5oiuFxMcaKPU+38HdV61WI45d7+e0uXYkUH7+1Jlnm5ylDQKxfUaQ K76iXUFfAS4KAmOf2BLGnobchHWLwgooRSsjcV7JSxgQh9YcUaqYU9yBWA0jo/NmAx37 MozL7BN5Tiwak/vDJAH6Tj4gfHRGQxpzf3nrgwi+Sr4XnGQg6gv3kuFnHO0pCVYX3Az4 7OIIWAUonGvWUuVkXBLVX3da8zLEEiYj15M1PgSpT/8tAS3V0NgPCwhSQwHmesJoEYRN AKPwP2IiGlF9iFYOojaXYYvA/wNeHRjiscaBgsbBqeqW6dKvpGRizEcdjuk+W78dAzX3 YO6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OfAgFgrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020adfec08000000b0020cd372f080si5432627wrn.426.2022.05.14.16.07.59; Sat, 14 May 2022 16:08:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OfAgFgrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234492AbiENQvV (ORCPT + 99 others); Sat, 14 May 2022 12:51:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234455AbiENQvS (ORCPT ); Sat, 14 May 2022 12:51:18 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A88E65DF; Sat, 14 May 2022 09:51:17 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id d19so19350027lfj.4; Sat, 14 May 2022 09:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to; bh=pS1wtzs1IwDDz2mD9jlYi8ZaLWHZtdCebfHrT1hZXBo=; b=OfAgFgrL+gGwZNOmkEHt31hAez5ZveQYLav4JgJ7tWsKIRdYPiypkwXpHCnzbKV9f0 LBaFX7a5KwBDW+gXtcAqMXXLPLmb8G54IA125cVr5AdCJEHvbxYQ3RALtYgik9e90Svv qDDPlLnlftQanfSsJ62ZfCDnlBX37z5KNPmPx7GXjxOyCJDsXRPig7FUudup6FlmcGVg RkXq7NgU+INdXeICViOC8AqqUbCEPoCMsuozzxlSPL+KLoGVd+AtBkzX5s6pRv1ydYma otllMj6zNzfJN/wvwEooGj6O9seN2ww28ouKpxBdEZ54t/QMdv+7c+9pjIq1M9HF2BJd glew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to; bh=pS1wtzs1IwDDz2mD9jlYi8ZaLWHZtdCebfHrT1hZXBo=; b=yA4SxuzWsbGQmvahWgfChjo4vlWF+o4b8uXHq7xnmQ2ruRkBIcORm/5DeN4jNDdUXm GNycJ44+Vl4mokzx3mfy83DyrYZD7UrTSDGCfwnAlTKARLXJtXgJ6+1oUNFc0dOecRYv yohvhm2gO3MceUYZrdJyT3pONEEGlKYaMaZz3TMyT2urAgGvdq9MgnKAj+Y+/X0TyhnV kS1j6nmgCAguFgV0Vc3I4iJLtGqtpWx2Tdw31Y4LnE1VLJas9PMKOvPboU/GIpK/rk0n OI+CAtRgIErleOjYMAinKrkCiEHZE966Ptg3z51n3kd8XkqBt22vPwO/uQ8pBouw5JIn VW8w== X-Gm-Message-State: AOAM5331zyVrwdiCzBVKPKNwg1SJ5LPNHx+3j4hlwZ+rb9oxGWLmFk+x +6u+ujdpXHga/WDUFTNWBeA= X-Received: by 2002:a19:914b:0:b0:472:10c:84ae with SMTP id y11-20020a19914b000000b00472010c84aemr7030255lfj.572.1652547075248; Sat, 14 May 2022 09:51:15 -0700 (PDT) Received: from [192.168.1.11] ([217.117.245.216]) by smtp.gmail.com with ESMTPSA id v5-20020ac25925000000b0047255d211a2sm756385lfi.209.2022.05.14.09.51.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 May 2022 09:51:14 -0700 (PDT) Message-ID: Date: Sat, 14 May 2022 19:51:12 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] net: ax88179: add proper error handling of usb read errors Content-Language: en-US To: David Kahurani , netdev@vger.kernel.org Cc: syzbot+d3dbdf31fbe9d8f5f311@syzkaller.appspotmail.com, davem@davemloft.net, jgg@ziepe.ca, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, phil@philpotter.co.uk, syzkaller-bugs@googlegroups.com, arnd@arndb.de, dan.carpenter@oracle.com References: <20220514133234.33796-1-k.kahurani@gmail.com> From: Pavel Skripkin In-Reply-To: <20220514133234.33796-1-k.kahurani@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------0cILCLmmlWJTpGId7T5QmWPf" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------0cILCLmmlWJTpGId7T5QmWPf Content-Type: multipart/mixed; boundary="------------0P0tWxYVtMRXZyKgCjwtnX00"; protected-headers="v1" From: Pavel Skripkin To: David Kahurani , netdev@vger.kernel.org Cc: syzbot+d3dbdf31fbe9d8f5f311@syzkaller.appspotmail.com, davem@davemloft.net, jgg@ziepe.ca, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, phil@philpotter.co.uk, syzkaller-bugs@googlegroups.com, arnd@arndb.de, dan.carpenter@oracle.com Message-ID: Subject: Re: [PATCH] net: ax88179: add proper error handling of usb read errors References: <20220514133234.33796-1-k.kahurani@gmail.com> In-Reply-To: <20220514133234.33796-1-k.kahurani@gmail.com> --------------0P0tWxYVtMRXZyKgCjwtnX00 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SGkgRGF2aWQsDQoNCk9uIDUvMTQvMjIgMTY6MzIsIERhdmlkIEthaHVyYW5pIHdyb3RlOg0K PiBSZWFkcyB0aGF0IGFyZSBsZXNzZXIgdGhhbiB0aGUgcmVxdWVzdGVkIHNpemUgbGVhZCB0 byB1bmluaXQtdmFsdWUgYnVncy4NCj4gSW4gdGhpcyBwYXJ0aWN1bGFyIGNhc2UgYSB2YXJp YWJsZSB3aGljaCB3YXMgc3VwcG9zZWQgdG8gYmUgaW5pdGlhbGl6ZWQNCj4gYWZ0ZXIgYSBy ZWFkIGlzIGxlZnQgdW5pbml0aWFsaXplZCBhZnRlciBhIHBhcnRpYWwgcmVhZC4NCj4gDQo+ IFF1YWxpZnkgc3VjaCByZWFkcyBhcyBlcnJvcnMgYW5kIGhhbmRsZSB0aGVtIGNvcnJlY3Rs eSBhbmQgd2hpbGUgYXQgaXQNCj4gY29udmVydCB0aGUgcmVhZGVyIGZ1bmN0aW9ucyB0byBy ZXR1cm4gemVybyBvbiBzdWNjZXNzIGZvciBlYXNpZXIgZXJyb3INCj4gaGFuZGxpbmcuDQo+ IA0KPiBG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b3RsaW4uY29tL2xpbnV4L2xhdGVzdC9zb3VyY2UvZHJpdmVycy9uZXQvdXNiL2FzaXhfY29t bW9uLmMjTDc4DQoNCg0KV2l0aCByZWdhcmRzLA0KUGF2ZWwgU2tyaXBraW4NCg== --------------0P0tWxYVtMRXZyKgCjwtnX00-- --------------0cILCLmmlWJTpGId7T5QmWPf Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEER3XL3TplLQE8Qi40bk1w61LbBA0FAmJ/3gAFAwAAAAAACgkQbk1w61LbBA0W mw/+O76ErrFXVhA2Lpz+tCEplaWuszzrd553T7IlHED3aVE4p0qtyIv8LYjn+mE9D+3KAOfOuI+t BqkX7KR85/mgbxBQrYFCxrnD+192FBKBoGqKRMhi4gpmeiMpvzYyY8YJGMMg5cHWk4JpmXnq0FtV HHBpIg+4jSmrBzyVWVN7x5QETVXT3Qfc3zBPTIqsm3nvu7yIqV8fUBTFxLPKavITv/jwCsCw3cFk /ucVUOuhDKaKrD9Ux21C1Q5VXm5Z7CiGg9bmUimcI7ipuAWo1wlWEAkp6oyO2QySk7L9KFBpSz0V IumgGN6BsHb4e5oDd9PQvxLqdK0TpuZB2EMmeZQBY9iDPnwCiB1HXR5fzrsLC06ZoYIKvfeb3JFy 4w2VZcM3ZpImjpi7aMG6nOofjC27mLBE9yP9dpV4rEjkKJbNQLFkkAI06qDT1Sz0EGPeYJGDdaTp hzP+k4Nd1q95yOEjzwlbjP+m9QSMSSS2jLmKTfJj8YJpawaJDt0n1hjSrZboc9PM52cERy0soJtN p3m3xuI0Gsjpo9HWxdcSeus/XaOVPOO76beJaKdL2ddLHgZOJibY/mk4nOh7pUrlJpn3LbDuxs7u tXhSrK5hXUFwW8w3coib+WYz9aDlY84U3W0EVWka2FgPYNCD8fxywWSy58xV4YoUytqJNHzaQyCu +Vg= =Pfq8 -----END PGP SIGNATURE----- --------------0cILCLmmlWJTpGId7T5QmWPf--