Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by kernel test robot
Mon, 30 Nov 2026 09:50
Re: [PATCH net 1/1] net: erspan: avoid out-of-bounds reads on short non-IP frames
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads