From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.19 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796032306; b=j6+QU+1HZ8PT5hSy1G5lP7XGhe68l0jgQOHMOZIwBEd5I2dDsPvtksPbF1mC7fXFcEEg xGUDHJq3//HdI3wDpqj9u4tQSE6xiPGk905wDofiM/X9BP+PQ0UbPK7kcZAmOXXPtx532 fbvxiOa9bDDCnrfj+Qgc+XUHsuuw6oHy2gagmARbSPuxZjs5pZgqtWA0vglJrx03jzvSd DF7jfTZG02FXwZ2zjQCrojLPzEODNP4stXOxLlV9wQNk8Yq8+mPh4ZtTpmDvkrkZVppFb ZxYtX3s8PPC/WgKxmNSZRPEFutR1bipZ+sqaVL0XPMxX48Kl6NbJ8Fbblv+mwnmn63Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796032306; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=j7k51NckT0UiaUT5qMqzZn7CC6OXV55p63FTD51RtT4=; b=XF+mVdvSBUN5sccCzLsZZCDfXMVeim2SW7e0U/EVpFTCzXXEuFPH9D5lta0/vp2VIvZB l2iIS6Ct8zm4T5CYEPCOJb9a+druXhGWUnkjHCpx10BYeaBHX5Ltzfmj2IdrjUtF5zZZu vB2YBuSXIh0NVXslsvEkAJpIu7szYAuD/JX7necRD+yTjboENFJ+cldfmD5Poc3Aj71Kv t3T6AE2l+jNuvwgqFL2fd36js4LauB/ekYTrFeVZKVhugHzwWuVHUEsFYWg6Z5yqtU0H/ 8cuKK0gjJv0Bqij2IPigITDKfmBX9QWZfvNfzOsFEnllbCfd5QVrBGhMKm07fYSQY4w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lUTDgu0N; arc=none smtp.remote-ip=198.175.65.19 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4FA1606A6B0 for ; Mon, 30 Nov 2026 09:51:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E4FA1606A6B0 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lUTDgu0N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796032305; x=1827568305; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=j7k51NckT0UiaUT5qMqzZn7CC6OXV55p63FTD51RtT4=; b=lUTDgu0NyXr9DqeowWhq1VcMC+aq1oFOJEIzoupVS8SdpL76UGR6t6km V1FnfhvLhSPDiGT9/d618OUtJ62UXfT19COIRvAcnIzr5/GtqopCykk4O drWSeBX3a/J7R7qSwS1YXCujl5u5ozbF88k9zMaqDEnotyQSxsMooVrMh a2kpbqAp9i1xbyOLA/T71TLpjrvn2E2y8OXjng/kvFhWH2dyr58kTog3/ EtDyTbVJiMdvnNIxka1d32h6Qn+1aERJ6u1l6F3ci1hxthN8USiGnYZTO ZPT7JYFEu2ldgpcskAcU8g994OCHczh4TQ0p/ZXBx8ZTHwn84SqF60rAG w==; X-CSE-ConnectionGUID: z8M0FftGTtmyou/epKyXNg== X-CSE-MsgGUID: KSK9L3c/TV673GUdH0Olwg== X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4917369" X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="4917369" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 01:51:44 -0800 X-CSE-ConnectionGUID: 2lmUAS1TSFyBgdbv+dyz3A== X-CSE-MsgGUID: yaCYXlJbTm67i4t7NHkzcQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="13242639" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 30 Nov 2026 01:51:41 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xXy2r-00000001aSb-1tui; Mon, 30 Nov 2026 09:51:37 +0000 Date: Mon, 30 Nov 2026 17:50:45 +0800 From: kernel test robot To: Ren Wei , netdev@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, dsahern@kernel.org, idosch@nvidia.com, u9012063@gmail.com, mvohra@vmware.com, matthias.may@westermo.com, vega@nebusec.ai, sashiko-bot@kernel.org, rakukuip@gmail.com, weir@nebusec.ai Subject: Re: [PATCH net 1/1] net: erspan: avoid out-of-bounds reads on short non-IP frames Message-ID: <20261130174405.kwTPP0hI-lkp@intel.com> References: X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Ren, kernel test robot noticed the following build errors: [auto build test ERROR on net/main] url: https://github.com/intel-lab-lkp/linux/commits/Ren-Wei/net-erspan-avoid-out-of-bounds-reads-on-short-non-IP-frames/20261130-132241 base: net/main patch link: https://lore.kernel.org/r/c06f54ca06d68861e2b56ffcd25b2cedac04476a.1795833342.git.rakukuip%40gmail.com patch subject: [PATCH net 1/1] net: erspan: avoid out-of-bounds reads on short non-IP frames config: parisc-randconfig-1000-20261130 (https://download.01.org/0day-ci/archive/20261130/20261130174405.kwTPP0hI-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 13.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130174405.kwTPP0hI-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/20261130174405.kwTPP0hI-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from net/sched/cls_flower.c:29: include/net/erspan.h: In function 'erspan_xmit_prepare': >> include/net/erspan.h:211:16: error: implicit declaration of function 'pskb_inet_may_pull'; did you mean 'pskb_network_may_pull'? [-Werror=implicit-function-declaration] 211 | return pskb_inet_may_pull(skb); | ^~~~~~~~~~~~~~~~~~ | pskb_network_may_pull cc1: some warnings being treated as errors vim +211 include/net/erspan.h 175 176 static inline bool erspan_xmit_prepare(struct sk_buff *skb) 177 { 178 __be16 type = skb->protocol; 179 int maclen = ETH_HLEN; 180 int nhlen = 0; 181 182 if (!pskb_may_pull(skb, ETH_HLEN)) 183 return false; 184 185 skb_reset_mac_header(skb); 186 187 if (eth_type_vlan(type)) { 188 skb->mac_len = 0; 189 type = __vlan_get_protocol(skb, type, &maclen); 190 if (!type) 191 return false; 192 193 switch (type) { 194 #if IS_ENABLED(CONFIG_IPV6) 195 case htons(ETH_P_IPV6): 196 nhlen = sizeof(struct ipv6hdr); 197 break; 198 #endif 199 case htons(ETH_P_IP): 200 nhlen = sizeof(struct iphdr); 201 break; 202 } 203 204 if (!pskb_may_pull(skb, maclen + nhlen)) 205 return false; 206 207 skb_set_network_header(skb, maclen); 208 return true; 209 } 210 > 211 return pskb_inet_may_pull(skb); 212 } 213 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki