Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp11895pxv; Wed, 21 Jul 2021 14:05:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYiPvy1JXoG6gOVmR8FNWfdVFu80CZXQw6hM88LPB/o/ANM/meFPFb3I+SILRndLu9YCri X-Received: by 2002:a6b:b883:: with SMTP id i125mr28655084iof.104.1626901414164; Wed, 21 Jul 2021 14:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626901414; cv=none; d=google.com; s=arc-20160816; b=yr+yHkM09/AnU2KIAgwfwDHjT+zYLnux51n2GMohLEEmE35LQFwbViJCIPYJYn/Rwj 4bEZEezj2wacPm91EeDhpiKMZGTo/Ic47/s/hbPYQEIAap+B6astmZVKV3TWBD2G2hc7 TMNhHdqYk5PBguEXZIsCJyELnJV9wd5CXCHRypE51oIrbRBLq1lWDO13L8wx/SMskEX+ vBK9TFVMeMqP3HRwkMTZXxs8rvFAHB5VAsvkWUZkUIQWYoRF/uhtPkERsQhhb8ea5sO6 vaR6gdqZbxNaI4+WJgL7ID3wlPp3U17vRlYFBkM4z5ouPRrykDSPCIuPlL62818zb0xl IKMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pczuOG08c9MB8ZT6ecRJSOKIoePTS1H+A8aLkvNEwT0=; b=YD75jfT2pUYcEDA68bgXURNIWoiK2gLIrsB/rg0UP5vC3MM0GZ9SxtEmBsYxeYhuyK mAuLkVNacYlrTZ0P5ylJdQQU/cBru+MRMx6Wepnmdb68Z0e2wdzU7kZRT3RNKU10JlIV BJnZ0RLmsNlKgCAlI1FrB+zxKVjz3MkdBJbAp8IDWe87OPDslqRLIQg7TnxBH2ytgds2 29KlN3KHZHkCVnYIa0G0+IkCxg6HHFgNKUtHXjRvYOuAbq0QT6SRI4Y39I3SnILvodeX Qz6B+7NPBdHdnzQAyDL6EpsUARtD62EaVBKi3f61HMHGhRVcxxH1QWPCb60pjRzbe2ZT ceBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tEmHwzxB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si29289537ion.69.2021.07.21.14.03.22; Wed, 21 Jul 2021 14:03:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tEmHwzxB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232266AbhGUQCQ (ORCPT + 99 others); Wed, 21 Jul 2021 12:02:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:34082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbhGUQCP (ORCPT ); Wed, 21 Jul 2021 12:02:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CD87361245; Wed, 21 Jul 2021 16:42:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626885771; bh=7Ck9rmVTo0t8tKebV85ikRdarggjaTaFgG9+KzhlPfM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tEmHwzxBsUjnSAXt2vJ8e4mCZv5m3gwjhIliEOoWRX2M0d/zw4yTMTUMTBkKLsmpW zhINgPE9/Le84ZnGk3qcxQvMbSjFabOPJhN6h/51r6PJLfHnbSJErryzih7tm7Vnl/ 5eZp1FI+rlL6NVTx7t+fB53FVV9mUwVy3sGwuSuxMOjLnReHG8nh+qB8g5zFmVWQYn 960R7mhklWCUVtH8Pm9mkjxfyyHT811REVn2sX3Y2TDmq3oeqLYiUbe/PPXG7aaVA8 KQ8rG65IgqXiqT6AeGoTz8tGHKGsq4rHi1BHlN1tjksNS6nIHVqjPpG3x+qUjznxOr SJvkXYfuExqPA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1m6FIh-0001Y8-Le; Wed, 21 Jul 2021 18:42:27 +0200 Date: Wed, 21 Jul 2021 18:42:27 +0200 From: Johan Hovold To: Dongliang Mu Cc: Greg Kroah-Hartman , "David S. Miller" , Jakub Kicinski , Oliver Neukum , Anirudh Rayabharam , Dan Carpenter , Rustam Kovhaev , Zheng Yongjun , Emil Renner Berthing , syzbot+44d53c7255bb1aea22d2@syzkaller.appspotmail.com, YueHaibing , linux-usb@vger.kernel.org, "open list:NETWORKING [GENERAL]" , linux-kernel Subject: Re: [PATCH v3 1/2] usb: hso: fix error handling code of hso_create_net_device Message-ID: References: <20210714091327.677458-1-mudongliangabcd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 21, 2021 at 04:34:56PM +0200, Johan Hovold wrote: > On Wed, Jul 21, 2021 at 04:17:01PM +0800, Dongliang Mu wrote: > > On Wed, Jul 21, 2021 at 3:36 PM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Jul 14, 2021 at 05:13:22PM +0800, Dongliang Mu wrote: > > > > The current error handling code of hso_create_net_device is > > > > hso_free_net_device, no matter which errors lead to. For example, > > > > WARNING in hso_free_net_device [1]. > > > > > > > > Fix this by refactoring the error handling code of > > > > hso_create_net_device by handling different errors by different code. > > > > > > > > [1] https://syzkaller.appspot.com/bug?id=66eff8d49af1b28370ad342787413e35bbe76efe > > > > > > > > Reported-by: syzbot+44d53c7255bb1aea22d2@syzkaller.appspotmail.com > > > > Fixes: 5fcfb6d0bfcd ("hso: fix bailout in error case of probe") > > > > Signed-off-by: Dongliang Mu > > > > --- > > > > v1->v2: change labels according to the comment of Dan Carpenter > > > > v2->v3: change the style of error handling labels > > > > drivers/net/usb/hso.c | 33 +++++++++++++++++++++++---------- > > > > 1 file changed, 23 insertions(+), 10 deletions(-) > > > > > > Please resend the whole series, not just one patch of the series. > > > Otherwise it makes it impossible to determine what patch from what > > > series should be applied in what order. > > > > > > > Done. Please review the resend v3 patches. > > > > > All of these are now dropped from my queue, please fix up and resend. > > A version of this patch has already been applied to net-next. That was apparently net (not net-next). > No idea which version that was or why the second patch hasn't been > applied yet. > > Dongliang, if you're resending something here it should first be rebased > on linux-next (net-next). And the resend of v3 of both patches has now also been applied to net-next. Hopefully there are no conflicts between v2 and v3 but we'll see soon. Johan