From: kernel test robot <lkp@intel.com>
To: Ren Wei <weir@nebusec.ai>, 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
Date: Mon, 30 Nov 2026 17:50:45 +0800 [thread overview]
Message-ID: <20261130174405.kwTPP0hI-lkp@intel.com> (raw)
In-Reply-To: <c06f54ca06d68861e2b56ffcd25b2cedac04476a.1795833342.git.rakukuip@gmail.com>
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
prev parent reply other threads:[~2026-11-30 9:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 5:22 [PATCH net 0/1] net: erspan: avoid out-of-bounds reads on short non-IP frames Ren Wei
2026-11-30 5:22 ` [PATCH net 1/1] " Ren Wei
2026-11-30 9:50 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130174405.kwTPP0hI-lkp@intel.com \
--to=lkp@intel.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=kuba@kernel.org \
--cc=matthias.may@westermo.com \
--cc=mvohra@vmware.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=rakukuip@gmail.com \
--cc=sashiko-bot@kernel.org \
--cc=u9012063@gmail.com \
--cc=vega@nebusec.ai \
--cc=weir@nebusec.ai \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox