Article View: linux.kernel.netdev
Article #24541Re: [PATCH net 1/1] net: erspan: avoid out-of-bounds reads on short non-IP frames
From: kernel test robot
Date: Mon, 30 Nov 2026 09:50
Date: Mon, 30 Nov 2026 09:50
76 lines
12030 bytes
12030 bytes
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 <lkp@intel.com>
| 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
Technical Details
Message-ID:
<20261130174405.kwTPP0hI-lkp@intel.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374086-linux-kernel-netdev=dewy.ruReferences:
<c06f54ca06d68861e2b56ffcd25b2cedac04476a.1795833342.git.rakukuip@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374086-linux-kernel-netdev=dewy.ru From: lkp@intel.com (kernel test robot) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 1/1] net: erspan: avoid out-of-bounds reads on short non-IP frames Date: Mon, 30 Nov 2026 17:50:45 +0800 Organization: Usenet Network Message-ID: <20261130174405.kwTPP0hI-lkp@intel.com> References: <c06f54ca06d68861e2b56ffcd25b2cedac04476a.1795833342.git.rakukuip@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1397397"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:7rTX83Oo62MiqIhCfBm2PPqsEyw= sha256:YhqZSe/JbYPKDdwiVMNh4iW4ofxYX6ia13rjQ7o5UsQ= sha1:FemIJ+nBsPKAOLzYQpFzxOp+OoE= sha256:2FUPpDf2KelAF71w0Uq+9E/9tPfF9bwqZqxtqU+t6TU= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id DA98F125FCC; Mon, 30 Nov 2026 12:53:05 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.152 X-Spam-Status: No, score=-3.152 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=intel.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DyivPMy2UfWS; Mon, 30 Nov 2026 12:53:01 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-374086-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=intel.com X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 4D031125FD2; Mon, 30 Nov 2026 12:52:52 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 050AE263D4; Mon, 30 Nov 2026 09:52:05 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796032306; b=hc7mKKBFJXy9CZXivnDY5Gm6x5IRnHlwZiklRCa56iLwWbik9PXPiF0pA/JkceeuTb08 aREA66i5yxma31C1kOh7SHv68ykYDH8Z6xPPCJwu43inj/nxAScgAfQELRfnRcFGbxndN nu/UMIs0zYsgOrBulWZwZ3GEZrCkOJ4+EhWprFSM4AGWEufynfIk4XleS2DsVZPgNQwX5 q+Up8AWtl3J/EVemx5c9zMSCc9NA8KRovkYvB8iz5sAaJKhB2a8sl+9BmzxEbue0FABen SYSt2TwxB8Br6ARCmf6UfoTOV79zWBl/fnmLZDSIWb/xioAQn+0mFTAEpmsl+OQmf+Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796032306; h=X-Original-To:Received: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: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=j7k51NckT0UiaUT5qMqzZn7CC6OXV55p63FTD51RtT4=; b=J2Y7qfYuR6M7y7fscRRv68T/zslnP8RP49qmQvXyd3DNyYj4fSC4d24FSIWoRa6YenYX ZMWfOHvPi7H3+SrhZBIrN9iU7oCtZd70yLmPY0E8pSn691d3mntccJ8zJFFS/Jz5DD5sZ f1iriVeTHtq/dQBIlyvOXtodnwkCtgI0qHs0aH1BoA8W+r48vT7mDbJTB2Dd0G/zeK9Gs qf3vAM4rfxt1z0z1a2yimHC5VtOtbSqUxA3QLwyH8Is3+3FjJsTPmPRrIOHETyOcjVgUf /9nftJaoLXacQUMiBRFyxxQErOngiFmYzsbHXC/oEl2P08ThwZblU596FeTM/JIThAQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lUTDgu0N; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA0DC60A2629; Mon, 30 Nov 2026 09:51:46 +0000 (UTC) X-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 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.19 X-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== X-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== X-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 X-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 <netdev@vger.kernel.org>; Mon, 30 Nov 2026 09:51:44 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E4FA1606A6B0 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com X-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" X-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" X-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 X-Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from <lkp@intel.com>) id 1xXy2r-00000001aSb-1tui; Mon, 30 Nov 2026 09:51:37 +0000 X-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 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <c06f54ca06d68861e2b56ffcd25b2cedac04476a.1795833342.git.rakukuip@gmail.com>