🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by kernel test robot Mon, 30 Nov 2026 10:55
Re: [PATCH net 1/1] net: erspan: avoid out-of-bounds reads on short non-IP frames
#24563
Author: kernel test robot
Date: Mon, 30 Nov 2026 10:55
74 lines
12022 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: x86_64-buildonly-randconfig-1005-20261130 (https://download.01.org/0day-ci/archive/20261130/20261130185021.1198OdiG-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130185021.1198OdiG-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/20261130185021.1198OdiG-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from net/sched/act_tunnel_key.c:14:
>> include/net/erspan.h:211:9: error: call to undeclared function 'pskb_inet_may_pull'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     211 |         return pskb_inet_may_pull(skb);
         |                ^
   1 error generated.


vim +/pskb_inet_may_pull +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