From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48386C76186 for ; Tue, 23 Jul 2019 22:55:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17DA521926 for ; Tue, 23 Jul 2019 22:55:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389617AbfGWWz2 (ORCPT ); Tue, 23 Jul 2019 18:55:28 -0400 Received: from mga07.intel.com ([134.134.136.100]:7084 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbfGWWz2 (ORCPT ); Tue, 23 Jul 2019 18:55:28 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jul 2019 15:55:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,300,1559545200"; d="scan'208";a="344894564" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 23 Jul 2019 15:55:20 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1hq3gm-000AZ3-AB; Wed, 24 Jul 2019 06:55:20 +0800 Date: Wed, 24 Jul 2019 06:54:58 +0800 From: kbuild test robot To: Nikolay Aleksandrov Cc: kbuild-all@01.org, Martin Weinelt , bridge@lists.linux-foundation.org, Roopa Prabhu , netdev@vger.kernel.org Subject: [PATCH] fix noderef.cocci warnings Message-ID: <20190723225458.GA3376@lkp-kbuild04> References: <908e9e90-70cc-7bbe-f83f-0810c9ef3925@cumulusnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <908e9e90-70cc-7bbe-f83f-0810c9ef3925@cumulusnetworks.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.5.23 (2014-03-12) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: kbuild test robot net/bridge/br_multicast.c:999:8-14: ERROR: application of sizeof to pointer sizeof when applied to a pointer typed expression gives the size of the pointer Generated by: scripts/coccinelle/misc/noderef.cocci Fixes: 17c91348ed8b ("Use-after-free in br_multicast_rcv") CC: Nikolay Aleksandrov Signed-off-by: kbuild test robot --- url: https://github.com/0day-ci/linux/commits/Nikolay-Aleksandrov/net-bridge-mcast-fix-possible-uses-of-stale-pointers/20190702-083354 br_multicast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -996,7 +996,7 @@ static int br_ip6_multicast_mld2_report( return -EINVAL; _nsrcs = skb_header_pointer(skb, nsrcs_offset, - sizeof(_nsrcs), &__nsrcs); + sizeof(*_nsrcs), &__nsrcs); if (!_nsrcs) return -EINVAL;