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.5 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 E2669C06510 for ; Tue, 2 Jul 2019 03:34:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BBC49216C8 for ; Tue, 2 Jul 2019 03:34:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727035AbfGBDeO (ORCPT ); Mon, 1 Jul 2019 23:34:14 -0400 Received: from mga02.intel.com ([134.134.136.20]:29281 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727025AbfGBDeO (ORCPT ); Mon, 1 Jul 2019 23:34:14 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jul 2019 20:34:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,441,1557212400"; d="scan'208";a="362055970" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 01 Jul 2019 20:34:12 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1hi9Ya-000Fd1-0U; Tue, 02 Jul 2019 11:34:12 +0800 Date: Tue, 2 Jul 2019 11:33:11 +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: <20190702033311.GA22487@lkp-kbuild12> 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;