From: kernel test robot <lkp@intel.com>
To: Daniel Borkmann <daniel@iogearbox.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [cilium:pr/bpf-tproxy 8/8] include/net/request_sock.h:117:29: error: use of undeclared identifier 'sock_pfree_cnt'; did you mean 'sock_kfree_s'?
Date: Thu, 16 Apr 2026 19:36:40 +0800 [thread overview]
Message-ID: <202604161903.vnGm95M9-lkp@intel.com> (raw)
tree: https://github.com/cilium/linux.git pr/bpf-tproxy
head: df7aabea1249e933d8d0f5caff085026de1cd217
commit: df7aabea1249e933d8d0f5caff085026de1cd217 [8/8] bpf: Support SOCK_RCU_FREE sockets in bpf_sk_assign on egress
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20260416/202604161903.vnGm95M9-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260416/202604161903.vnGm95M9-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/202604161903.vnGm95M9-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from init/do_mounts.c:23:
In file included from include/linux/nfs_fs.h:32:
In file included from include/linux/sunrpc/clnt.h:29:
In file included from include/net/ipv6.h:12:
In file included from include/linux/ipv6.h:103:
In file included from include/linux/tcp.h:20:
In file included from include/net/inet_connection_sock.h:21:
In file included from include/net/inet_sock.h:24:
>> include/net/request_sock.h:117:29: error: use of undeclared identifier 'sock_pfree_cnt'; did you mean 'sock_kfree_s'?
117 | skb->destructor == sock_pfree_cnt;
| ^~~~~~~~~~~~~~
| sock_kfree_s
include/net/sock.h:1901:6: note: 'sock_kfree_s' declared here
1901 | void sock_kfree_s(struct sock *sk, void *mem, int size);
| ^
1 error generated.
vim +117 include/net/request_sock.h
86
87 /**
88 * skb_steal_sock - steal a socket from an sk_buff
89 * @skb: sk_buff to steal the socket from
90 * @refcounted: is set to true if the socket is reference-counted
91 * @prefetched: is set to true if the socket was assigned from bpf
92 */
93 static inline struct sock *skb_steal_sock(struct sk_buff *skb,
94 bool *refcounted, bool *prefetched)
95 {
96 struct sock *sk = skb->sk;
97
98 if (!sk) {
99 *prefetched = false;
100 *refcounted = false;
101 return NULL;
102 }
103
104 *prefetched = skb_sk_is_prefetched(skb);
105 if (*prefetched) {
106 #if IS_ENABLED(CONFIG_SYN_COOKIES)
107 if (sk->sk_state == TCP_NEW_SYN_RECV && inet_reqsk(sk)->syncookie) {
108 struct request_sock *req = inet_reqsk(sk);
109
110 *refcounted = false;
111 sk = req->rsk_listener;
112 req->rsk_listener = NULL;
113 return sk;
114 }
115 #endif
116 *refcounted = sk_is_refcounted(sk) ||
> 117 skb->destructor == sock_pfree_cnt;
118 } else {
119 *refcounted = true;
120 }
121
122 skb->destructor = NULL;
123 skb->sk = NULL;
124 return sk;
125 }
126
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-04-16 11:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202604161903.vnGm95M9-lkp@intel.com \
--to=lkp@intel.com \
--cc=daniel@iogearbox.net \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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