Re: [PATCH] xfrm: avoid stale tunnel pointers in deferred input callbacks
From: kernel test robot
Date: Wed Nov 11 2026 - 16:27:29 EST
Hi Jun,
kernel test robot noticed the following build errors:
[auto build test ERROR on klassert-ipsec-next/master]
[also build test ERROR on klassert-ipsec/master net/main net-next/main linus/master v7.4-rc2 next-20261110]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jun-Yao/xfrm-avoid-stale-tunnel-pointers-in-deferred-input-callbacks/20261111-174629
base: https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next.git master
patch link: https://lore.kernel.org/r/20261111094629.230568-1-yaojun8558363%40gmail.com
patch subject: [PATCH] xfrm: avoid stale tunnel pointers in deferred input callbacks
config: nios2-defconfig (https://download.01.org/0day-ci/archive/20261112/202611120519.EG3LbKfu-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261112/202611120519.EG3LbKfu-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611120519.EG3LbKfu-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from net/core/sock.c:134:
include/net/xfrm.h: In function 'xfrm_tunnel_info_add':
>> include/net/xfrm.h:777:16: error: implicit declaration of function 'skb_ext_add'; did you mean 'skb_ext_del'? [-Werror=implicit-function-declaration]
777 | return skb_ext_add(skb, SKB_EXT_XFRM_TUNNEL);
| ^~~~~~~~~~~
| skb_ext_del
>> include/net/xfrm.h:777:33: error: 'SKB_EXT_XFRM_TUNNEL' undeclared (first use in this function); did you mean 'DST_XFRM_TUNNEL'?
777 | return skb_ext_add(skb, SKB_EXT_XFRM_TUNNEL);
| ^~~~~~~~~~~~~~~~~~~
| DST_XFRM_TUNNEL
include/net/xfrm.h:777:33: note: each undeclared identifier is reported only once for each function it appears in
include/net/xfrm.h: In function 'xfrm_tunnel_info':
>> include/net/xfrm.h:783:16: error: implicit declaration of function 'skb_ext_find'; did you mean 'skb_ext_copy'? [-Werror=implicit-function-declaration]
783 | return skb_ext_find(skb, SKB_EXT_XFRM_TUNNEL);
| ^~~~~~~~~~~~
| skb_ext_copy
include/net/xfrm.h:783:34: error: 'SKB_EXT_XFRM_TUNNEL' undeclared (first use in this function); did you mean 'DST_XFRM_TUNNEL'?
783 | return skb_ext_find(skb, SKB_EXT_XFRM_TUNNEL);
| ^~~~~~~~~~~~~~~~~~~
| DST_XFRM_TUNNEL
include/net/xfrm.h: In function 'xfrm_tunnel_info_clear':
include/net/xfrm.h:788:26: error: 'SKB_EXT_XFRM_TUNNEL' undeclared (first use in this function); did you mean 'DST_XFRM_TUNNEL'?
788 | skb_ext_del(skb, SKB_EXT_XFRM_TUNNEL);
| ^~~~~~~~~~~~~~~~~~~
| DST_XFRM_TUNNEL
cc1: some warnings being treated as errors
vim +777 include/net/xfrm.h
773
774 static inline struct xfrm_tunnel_info *
775 xfrm_tunnel_info_add(struct sk_buff *skb)
776 {
> 777 return skb_ext_add(skb, SKB_EXT_XFRM_TUNNEL);
778 }
779
780 static inline const struct xfrm_tunnel_info *
781 xfrm_tunnel_info(const struct sk_buff *skb)
782 {
> 783 return skb_ext_find(skb, SKB_EXT_XFRM_TUNNEL);
784 }
785
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki