🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14689

Re: [PATCH] xfrm: avoid stale tunnel pointers in deferred input callbacks

#14689
From: kernel test robot
Date: Wed, 11 Nov 2026 21:26
73 lines
13171 bytes
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@intel.com/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@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/202611120519.EG3LbKfu-lkp@intel.com/

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
Technical Details
Message-ID: <202611120519.EG3LbKfu-lkp@intel.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361283-linux-kernel-netdev=dewy.ru
References: <20261111094629.230568-1-yaojun8558363@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361283-linux-kernel-netdev=dewy.ru
From: lkp@intel.com (kernel test robot)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] xfrm: avoid stale tunnel pointers in deferred input
 callbacks
Date: Thu, 12 Nov 2026 05:26:42 +0800
Organization: Usenet Network
Message-ID: <202611120519.EG3LbKfu-lkp@intel.com>
References: <20261111094629.230568-1-yaojun8558363@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="941562"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:zf+iI8EHQJgzCh8druz+HwAy7lA= sha256:b11uNW4zZP8xtn5tHDQLpCxqfXooIROyry0j0LRdwA8=
	sha1:2B5mMURyGb2hIf3Z+XixBdfgUdY= sha256:EMCzW/hWEaJp8j951mpgy2bjOFikedlF6ZZ9K5gAgJs=
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 506BC113FD4; Thu, 12 Nov 2026 00:28:08 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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,
	URIBL_BLOCKED=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 LdvEYxO-i0Z5;
	Thu, 12 Nov 2026 00:28:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-361283-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 EC641113FD2; Thu, 12 Nov 2026 00:27:54 +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 0547F39FC1; Wed, 11 Nov 2026 21:27:10 +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=1794432422;
	b=1euIWyTxoCTo3pDM/hGRD0CqyKaZT8B3kpWfzDoN/QytTcUT3EGxVM9hV5x0I+/p+gYP
	 8oEEFr91FTfIxk0q54Y19uGAfnhraDM9HvstUqLa1O4AyGXDXbcHdRB51N7tSuwmtKKth
	 +sz8c5vXHPTZQaeDZipc4QQqY5/lPfn5xT++OQbZSwQJEsiTdBV2nVLHN/+UD70QagLkd
	 gPSDNRso/ANHBiyQPPCCfkPRzPmh4n7eOFo9TfTH1TOgSTUbvUy0w0KioKjU2HhleeXJm
	 rCVZLcuvkA7HrLlJ5wOspUerXOoKAvufMNZRbLNNiVUWFxMCh/Wksutpu389pZbrMpw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794432422;
	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=qmzMLIvZ7smf+narAzjytGAazldlSomsPSAlkZFNulc=;
	b=2z3hl5Cf3bJ90+sw+SeQ+kbs5QET2bh4Ejz3e2kAC+ZL3OfUYaoJZ626KDIbF5Ty/NIM
	 SEQi1EXVXc76v1WsSSxGsAzrQFdGAGHJv4hfStztDlAoLQPih5NDcA/6BvknJo3FughoC
	 JAiGLLULNB83JYUJiuVMNUSv4aio7Be37vEghGD5t1rh5uXl0CY1PJCH4JGFs9bBFovTP
	 ny/YhVRNBLKU3+hR2l1BL1V07RCqRVoXD3CRxArTnIWHrsvM6DgeSUlvkcdkE3kFLIliR
	 +chiXrSQL5NQd/RGot7V4V028/0qvNjqFOr7iWxJHi3lVJDrtM6M138jcCN6+dqeCiQ==
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=fifOHr67;
	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 70F8C606A881;
	Wed, 11 Nov 2026 21:27:02 +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=fifOHr67
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.15
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794432421;
	b=t9opjXmVJLCcEPPqMeajAThRQHR656nE3YTovYNV7SmzpgSUC5U38XKpYB6OwZW3Vc2F
	 jD5jzj+/ku0rSs93S0OeUS1bA6VyfQyqVvdghnD0gfbzeu2sLJX6aV6zhukpARmtAuYXD
	 q37Yz8rulWzuYqxMsDsCLuEtf0J2wUaUsHbudyem9T/PBMnf2E6s7n5EPWkm+40Mk8S/P
	 dlhIp22N9Je1cMzBnZ6atjhR9lhXxyrQZo9ZGoXZmZk3Dg++WZ9Q4+zNBN14pFkZ+QXXn
	 WGiq0YcRT0kIhwnme8cGbqyvU0L/jeSZ61DNuXVpeUdXD6C5aZ6oB76IfhNJVIWLrIA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794432421;
	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=qmzMLIvZ7smf+narAzjytGAazldlSomsPSAlkZFNulc=;
	b=LMHReDtBfti2xCkw+75QaW9zzlxnHPKLIWN/sFsIzJZfmhNrAqANQG7XFLDR37aNcvCh
	 Tf+X7+zM2jWgY3B4Sl/KtfYLHy1DvcRH2uYnDH5bo0b4V5XcPnciWrFut1vQMDpJGigux
	 PyspaCFQDYj6Kz5c43Lug57k2i6jW9DQDy28UoPj0sJIXzKdbVJiVypkuqWKPtpNmswdy
	 88VHgmpsRd5shPxnHncQtZbJC221CYWCrtG/p4qNTR5356DCQyTJFvvoDDdwOf5WZfcCj
	 WKdJfMVLICOMfjaA9NsKG5cRn3/jX1zjPB4S4UgfEV/S7/sYsxWJEBdIQWQFDb4pIdg==
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=fifOHr67;
	arc=none smtp.remote-ip=192.198.163.15
X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15])
	(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 023D7606A321;
	Wed, 11 Nov 2026 21:27:00 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 023D7606A321
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/simple;
  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
  t=1794432421; x=1825968421;
  h=date:from:to:cc:subject:message-id:references:
   mime-version:in-reply-to;
  bh=QvooamukB6dLXpxKs4gwsx2mS4fo83sCV47G3gexn70=;
  b=fifOHr67mes4CkI0CfSbUCoIyti6ntrtgL/9NQpkPLfXbc14N4c2o88x
   yEPOflQHsbbhS4pDGcEuOyPyieNccSPZ+09hvV+odym6kTn1TbNO8sP4+
   TmFuNCsbpgmYRsL7SizBTqN2u2TqZ7b6CAU5vTyQG9l+WkWX1ATDJbbAz
   qlsqacmNb1H65QxBI/Etcgz46x7EEyKqCB+uZHuZ83qOeZg3aXxIFII2Y
   g61NsYy/LpHuZ4siN3DsXO0egGCgOu8KSPje9k4o7g+KzlGQte+F8Eu3F
   OyI+osZ/OiNeP0SIHhx/DggTRt/TQFMWUwCD4zDuVeJiE7pWHC2YzFiuv
   Q==;
X-CSE-ConnectionGUID: 8g/GJGV7RjSdKMl+dotW6A==
X-CSE-MsgGUID: tyJNI4dtT+OHPLTBh1O/Sw==
X-IronPort-AV: E=McAfee;i="6800,10657,11963"; a="3219837"
X-IronPort-AV: E=Sophos;i="6.27,208,1787036400"; 
   d="scan'208";a="3219837"
X-Received: from fmviesa008.fm.intel.com ([10.60.135.148])
  by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2026 13:27:01 -0800
X-CSE-ConnectionGUID: y+YSjkWNSHydpwcX7GiPYw==
X-CSE-MsgGUID: qBY9x3i4QfaSV++Y/CbwsQ==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.27,208,1787036400"; 
   d="scan'208";a="8821606"
X-Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150])
  by fmviesa008.fm.intel.com with ESMTP; 11 Nov 2026 13:26:58 -0800
X-Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2)
	(envelope-from <lkp@intel.com>)
	id 1xRFqI-00000000zmP-3f2T;
	Wed, 11 Nov 2026 21:26:54 +0000
X-Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, horms@kernel.org, steffen.klassert@secunet.com,
	herbert@gondor.apana.org.au, dsahern@kernel.org, idosch@nvidia.com,
	Jun Yao <yaojun8558363@gmail.com>
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: <20261111094629.230568-1-yaojun8558363@gmail.com>