Received: by 10.213.65.68 with SMTP id h4csp1074080imn; Sat, 24 Mar 2018 02:44:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELsoLCDwSYdrT7J4ilHgqrbL4US08472FAX5xepO5+fa4PZVTKtdqU7jPVTHLO1NdWKILEFs X-Received: by 2002:a17:902:9308:: with SMTP id bc8-v6mr28867037plb.189.1521884661058; Sat, 24 Mar 2018 02:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521884661; cv=none; d=google.com; s=arc-20160816; b=yFQ8U8aYuU60moPZMxqDad11b6Eq476KZuo85gBzxF21JMTBQ1t1tBd9bRkU5xfsqD doVpeoTdlNl9voCl0Qp4FyyFp0uYzOEEjhLMcX8WaRUlQ7vCk7veq/ID0VBEm45+Jf2M +8szzi4WtEBAEZxh7dwIbgl6RaRt6t1N1z+ufduvmCyUXX5xA+2bl+RVk5L1AIXht6No LcpN/WFFyT/c2ASnLIroJ06pcoT5FSJoFa1Erj1UfUTZXn1+lqA13NUGdGiMIygkuhF7 4T+MV4hpHWcvnHlDI9UD78yEHHjeU5wJoDMrxq1qv5cDR+DCZblA+5FIMWqcuEk1cLoc tJSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=vyE+KBVFeXT/NpZ8Mi2nz7CJdVx57yU4gmHB1qVjQIU=; b=eHa8K7KHlNPT5+9c/HXLtkSOsODm318GmEenpdUvNLylUiMGLT4FOauL1wkEchfSbw IwBtl27DxIrtUt+hPAvgivaJuSEzsem6HkUiogYDeBpG9og2nHH1AfHQDV4OcY9VRqJH mUTgYT6H9Kw5uJ5Mq9rL4ov8vua1V57RSp6BxNx5+XgAXCRx+Errn70m92Md3rTxGbvy 4OeOTri7TwTbozPslH8m+o6AyNzfgOtXgPpsBSqgqbL6sN/t05TPHvnWSqflr1jt6NyH yc+NgbZ7BB3JBOgQXITDAGCEgMlNTo+VGX6XFsL/HoLZRtjXyfE+oc0ZXEt2AJGyqpu6 V1Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=E7wL6MIF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5-v6si10025971plr.243.2018.03.24.02.44.06; Sat, 24 Mar 2018 02:44:21 -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; dkim=pass header.i=@narfation.org header.s=20121 header.b=E7wL6MIF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752007AbeCXJnM (ORCPT + 99 others); Sat, 24 Mar 2018 05:43:12 -0400 Received: from narfation.org ([79.140.41.39]:46670 "EHLO v3-1039.vlinux.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751797AbeCXJnK (ORCPT ); Sat, 24 Mar 2018 05:43:10 -0400 X-Greylist: delayed 412 seconds by postgrey-1.27 at vger.kernel.org; Sat, 24 Mar 2018 05:43:09 EDT Received: from sven-edge.localnet (p200300C593E1CBF90000000000004065.dip0.t-ipconnect.de [IPv6:2003:c5:93e1:cbf9::4065]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 91B82110126; Sat, 24 Mar 2018 10:36:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=narfation.org; s=20121; t=1521884176; bh=ix7hqy1wBTHhGYbUa67e8mb/iG1H71lRow3yEUyaT1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E7wL6MIFxkCrQJwHra+BXhOlrNU6gWauSe5gYFmHbE8UhPP+trz06Cmyt69Vm6OON zHRt8zZi97pY35TDueSiGMJBfap4P1yAcqA8QsM/eXNdvU/rEkP5sdsGo8xD+OhEcm QGEJf4CLlNJKwTayJdYXgxchzRjRODxzkkXJGmh4= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Cc: Colin King , Marek Lindner , Simon Wunderlich , Antonio Quartulli , "David S . Miller" , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [B.A.T.M.A.N.] [PATCH][next] batman-adv: don't pass a NULL hard_iface to batadv_hardif_put Date: Sat, 24 Mar 2018 10:36:15 +0100 Message-ID: <1552330.yTaGxcYA6e@sven-edge> In-Reply-To: <20180323225350.7350-1-colin.king@canonical.com> References: <20180323225350.7350-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1524434.qlbeyyzbMd"; micalg="pgp-sha512"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart1524434.qlbeyyzbMd Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" On Freitag, 23. M=E4rz 2018 23:53:50 CET Colin King wrote: > From: Colin Ian King >=20 > In the case where hard_iface is NULL, the error path may pass a null > pointer to batadv_hardif_put causing a null pointer dereference error. > Avoid this by only calling the function if hard_iface not null. >=20 > Detected by CoverityScan, CID#1466456 ("Explicit null dereferenced") >=20 > Fixes: 53dd9a68ba68 ("batman-adv: add multicast flags netlink support") > Signed-off-by: Colin Ian King > --- > net/batman-adv/multicast.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Queued up for David in batadv/net-next as d5863c47d725 [1] Now I only have to find out why I didn't receive the mail about this=20 from coverity. Thanks, Sven [1] https://git.open-mesh.org/linux-merge.git/commit/d5863c47d7255448ec0171= 3cbdb4f94b370d86ad --nextPart1524434.qlbeyyzbMd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAlq2HA8ACgkQXYcKB8Em e0a3UhAA1jf+py/wrYYigdPHLlWb8Sbh6grH14VWxKIvqbAoTegxIp6i97/HuoJ/ CHZoOzFzzGm7zpuNDTLIMhn9ltRKiYLdG4gOWqc/zQnwQvegaA9GGxUN6rn2qCo9 B49zyESlAS7AReauoGJVycydYvp7RspbMRamYOd2g6HE0J1N8BquHdyJqIhYUs8c lXSZ90GCrguSjWIOzJfm2YOqKKDNRLxqOLEuO+UsqjEN9T/ZA6wn8pdWcH32aRPt sG2RuP4p1mEPpsRksxPr4XbNvqfWnQfybuqLf3WCq/4yMbkA9s4O2hRiqKc/wj5o fcQXd3fobm+5dHHd9uhBqz0Pop30lmrULhwv3zrzysu+yVHekGMlHf9696wsuXAD ibOhgFOCkFELgDVAkrDZWVM9r2igFYMbc5igmNZx7gzRPWk04IBWAEyi28K/ptrN AsieFJ13vbfSGcvCK972MUTKrUJSuYhyd67GToMvN3fx/l2gaiwFllh1jMeTIU5B Xc0zhtOWocBqJaw4UKPJ5OodxBKINmfJ0JJYyrb7LejIWksxBygcxHeGUnJPmrYu MsOnQDmq5fgeeQz6KUZRxC1dNu3CTetXFWOC2cep7Isl1P3qBmnxwUIVSoXXVNEw OdIPtMwX1NLwVSz+wVAWRQE0JriUbSR/R/5J8/AdzsdpSjQ9WS4= =IINO -----END PGP SIGNATURE----- --nextPart1524434.qlbeyyzbMd--