Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp39722lfv; Tue, 12 Apr 2022 16:23:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2LRkk8W1DoKysi4r49De9Zs7RgAl4DqdhRI+J0GjYDyyBda2QjjOSOMJPcVXPjpTaZfxE X-Received: by 2002:a65:6181:0:b0:39d:871:2199 with SMTP id c1-20020a656181000000b0039d08712199mr18305913pgv.521.1649805790960; Tue, 12 Apr 2022 16:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649805790; cv=none; d=google.com; s=arc-20160816; b=vT/3Gg5kKn1vaNuI/pwfvI8YWa0pILcrlf3ySzYwZ4lYljsxnq0JMjAXPjEUG14Lxv c7mfTodEINER20nKE/AqX4sEynJ5H6RAtWvt8K+eyUp/FPJsGxSlrIyn9E3l6BGqeZgm sHw0zeYYqK7nASADnO5mSsorvQgy3UvOVsiUpLncYdzwSh6FI2PIWbIdz50m77l2C3bz a3GJudYgIdiFoq5b+wZuOlft4fLwGCeafZ7Hfm/wtiICwglP8CltcAqtcpj9I2QkZzIc Vk+/7leE6a+r+GHa6u+Bcrh66/3+35xx9AFipsuosqAMlXSamt7BJGjgBaWIgQASamaw BtlQ== 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=ly8qeDVw7zF5NU0RjXFxoEFBwNsxc6leMxYfyV7Srm4=; b=F5JetxQggQo6AjM9weIfNCgmrYa8hNlPIKPT+9IKPxosOkYF54bS/B8Vj4lL9NJNzP P+kBE8K81cSPRzvniNJ6mJ7vRWWzx/H03P48+znrj1kUb9lzgCQGLdwE5EdBRXuVZl0y 9x6wdeflinVyA+z4BQvWqy6bGAxkg2VJJjrzf494WwBXmUFUesDgJ2uho7nRiUjlF7rV k4Tq5e3nC9n1kHWeQfgPXN0goVF065aMAD/q8AtnaJR5f0Gpce2gOS50g5pnfzEM/yPk UhlEur/xYGcTOx7SxdwGihxoVs1vsvaIwb0FBHvSx7NJWIXtS3zSuVlms0L7RYZCNBol SWYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HhWEYM04; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id g186-20020a636bc3000000b0038251581ab5si3956512pgc.291.2022.04.12.16.23.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:23:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HhWEYM04; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 CD9B119EC55; Tue, 12 Apr 2022 14:15:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234599AbiDKPSE (ORCPT + 99 others); Mon, 11 Apr 2022 11:18:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347749AbiDKPRn (ORCPT ); Mon, 11 Apr 2022 11:17:43 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 440861B1; Mon, 11 Apr 2022 08:15:29 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id r13so31605194ejd.5; Mon, 11 Apr 2022 08:15:29 -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=ly8qeDVw7zF5NU0RjXFxoEFBwNsxc6leMxYfyV7Srm4=; b=HhWEYM04cPm9rnN/yhveILDzOYkGL91YRYmt95vUt0Xgv++KwaofLEaM+QYcg1VQim eI+8pQNXd05xIfuyLgsNNEIRoBfHBpm81KD1h9KGUNXdIidTIjE6gnQJF1fsgYdka6Ju eDSXwT4zR9shC7vOcScpbX51j52JcYAxZVzsof3ujKii8CZ63XEujKBEgQA+cDmAoiEF ZPqeex0+BC9vd3sSSnsu7Z+BphG/Rxxx2IK1tra+rv8ssyh3ViK3TvtaezpGues37FuD djGUgqnavIroXqKNC5F7CcH0V0Fkv+6gZe2SaPp9o3MRi4T49ZUOZwP32XVOtHoHkG5f U5Gg== 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=ly8qeDVw7zF5NU0RjXFxoEFBwNsxc6leMxYfyV7Srm4=; b=xC7uQUS59FKcySJ5xwxG2m96rRCmozoJWHO81YK9k7SsXPXy6ifZLhV10XsqysI/2K qp9wgjl5FhtFQ524msdGINg0rbPIoVvL+IyoYxH/le4Mut1ZKeHs/Pz1y6fGcNKqrvFj 8c34nv/DsKruSZFOZCWa2HSB0uKeNDelRejgnuBhoPpVm1INuC0AwoC4stV0hJM4bdUC r+fNb0l88luKufha1h95eaBCzr0lRJOcC5r+Am+Qz2sWpcFPsTjmwJff1urjZRXWlzyI XzrzgEGs8DJUhbB1LD18wPINMNqjfO4LoxggCIzVHnpcFMYEFmUh8t9xKOPiFfNBwHwl P/Lg== X-Gm-Message-State: AOAM5321Azab5BTryhtLkcZpS8C3W1hNmvPpI5bh6rVLXP3KPJXvj7yO ipnnKDPK2RyH1sdM87JGNsCSWUNFAyf2MFsRzU/c6Py8srs= X-Received: by 2002:a17:907:968e:b0:6db:aed5:43c8 with SMTP id hd14-20020a170907968e00b006dbaed543c8mr30685289ejc.636.1649690127832; Mon, 11 Apr 2022 08:15:27 -0700 (PDT) MIME-Version: 1.0 References: <20220404151036.265901-1-k.kahurani@gmail.com> <6b6a8f5c-ceb9-ce97-bf79-d7634b433135@gmail.com> In-Reply-To: <6b6a8f5c-ceb9-ce97-bf79-d7634b433135@gmail.com> From: Andy Shevchenko Date: Mon, 11 Apr 2022 18:11:14 +0300 Message-ID: Subject: Re: [PATCH] net: ax88179: add proper error handling of usb read errors To: Pavel Skripkin Cc: David Kahurani , netdev , syzbot+d3dbdf31fbe9d8f5f311@syzkaller.appspotmail.com, "David S. Miller" , Jason Gunthorpe , Jakub Kicinski , Linux Kernel Mailing List , USB , Phillip Potter , syzkaller-bugs , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" 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 On Tue, Apr 5, 2022 at 3:05 AM Pavel Skripkin wrote: > On 4/4/22 18:10, David Kahurani wrote: > > Reads that are lesser than the requested size lead to uninit-value bugs. Qualify > > such reads as errors and handle them correctly. > I'd personally cut this log a bit and would add this part of the initial > report > > Local variable eeprom.i created at: > ax88179_check_eeprom drivers/net/usb/ax88179_178a.c:1045 [inline] > ax88179_led_setting+0x2e2/0x30b0 drivers/net/usb/ax88179_178a.c:1168 > ax88179_bind+0xe75/0x1990 drivers/net/usb/ax88179_178a.c:1411 > > Since it shows exactly where problem comes from. > > I do not insist, just IMO I insist though. It will reduce the resource consumption (i.e. storage and network load on cloning / pulling) a lot (taking into account multiplier of how many Linux kernel source copies are around the globe) and hence become more environmentally friendly. -- With Best Regards, Andy Shevchenko