Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp290707yba; Fri, 3 May 2019 01:47:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwFnbylWjuSe+XOQ0oZCFHa2FaQFZ/GhFIvdGhSL0ug1guxgHIeqxHVicekSz85xEZNIAe X-Received: by 2002:a63:4553:: with SMTP id u19mr8453945pgk.353.1556873229031; Fri, 03 May 2019 01:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556873229; cv=none; d=google.com; s=arc-20160816; b=n1I0j8vtRDlaipvCeQssWhwcMNkX2z5ykFwVy997B1tujfwtD6juW7w20pN7YJ2ARD MoLZAcSiZ40YEwZCSmztnDDydupbTcmaaHIBBmsvwa3PykES2rjRn2j12AD9iwOGLv8M kqghAsaekBkNvuUe0GsFehnK75JXAZ1SVwCdlXcuMcNsWGfi46qsIKfeXSz57n3W4OzK yyXdaPzcIAXKFzdvn+pB2LUMm9TEeaZwzk+SMtppaQ3J2A82UiEJfAW7IcUyO/2qsBgk vZ9P/eXC3xD2AnHoMnZB2Ohf8uzFVlx7wHD8bWL04Jtd/BtEgkXVsyHpDl9iInyWrvWp VYAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=riMsw6gdEitvAd0TLVwFZPbMhtBJ0rIOUVFv56UHckA=; b=tE473xQSwMLlC0MeNDx/WRgW92Xg0/v9/IIaABvoiJGGnT0neT8BE8RomKGcJ45GWF JWhD0cGVkh0y+kRXxfy2nsNf7fM7Z0H3dt2lAPG6I1K/Bueuvv+rblcpVhbb8F9z7oGT dfDAox9sJZvDPKFd1u798/8xdeVIaP0fHuPIoRAeqGMwS+Gr8blhitSsbC9eZ1Pk6mHp Slt03AsdFudeVamCiDnoWeZc0qRpz+OTXgYTfJZPDhn+eCmO5E9wEzaQZtuEf2pDLy25 8bT5ObGr4eOHTlVRIookLqQw6IIRC+XMeAkzgp6lljNcDCVAVExeNVvtKgUd7AUkHtuF bEsA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19si1468717pgh.333.2019.05.03.01.46.53; Fri, 03 May 2019 01:47:09 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726887AbfECIeB (ORCPT + 99 others); Fri, 3 May 2019 04:34:01 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:50555 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbfECIeA (ORCPT ); Fri, 3 May 2019 04:34:00 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 9C28E80377; Fri, 3 May 2019 10:33:49 +0200 (CEST) Date: Fri, 3 May 2019 10:33:59 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Li RongQing , Stefan Schmidt , "Sasha Levin (Microsoft)" Subject: Re: [PATCH 4.19 10/72] ieee802154: hwsim: propagate genlmsg_reply return code Message-ID: <20190503083359.GC5834@amd> References: <20190502143333.437607839@linuxfoundation.org> <20190502143334.278374504@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6zdv2QT/q3FMhpsV" Content-Disposition: inline In-Reply-To: <20190502143334.278374504@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6zdv2QT/q3FMhpsV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-05-02 17:20:32, Greg Kroah-Hartman wrote: > [ Upstream commit 19b39a25388e71390e059906c979f87be4ef0c71 ] >=20 > genlmsg_reply can fail, so propagate its return code > diff --git a/drivers/net/ieee802154/mac802154_hwsim.c b/drivers/net/ieee8= 02154/mac802154_hwsim.c > index 624bff4d3636..f1ed1744801c 100644 > --- a/drivers/net/ieee802154/mac802154_hwsim.c > +++ b/drivers/net/ieee802154/mac802154_hwsim.c > @@ -332,7 +332,7 @@ static int hwsim_get_radio_nl(struct sk_buff *msg, st= ruct genl_info *info) > goto out_err; > } > =20 > - genlmsg_reply(skb, info); > + res =3D genlmsg_reply(skb, info); > break; > } How does the bug manifest for the user and is it severe enough? Should this free the skb when it is signalling an error? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --6zdv2QT/q3FMhpsV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlzL/PcACgkQMOfwapXb+vJWnQCgugyfXV5OAsDsuIiwJURwLqDp FtEAoJUgUHX2bJuNHYGWG6tYU92cQ+Pw =pVLA -----END PGP SIGNATURE----- --6zdv2QT/q3FMhpsV--