* [cel:topic-rpc-with-tls-upcall 15/18] net/tls/af_tlsh.c:243: undefined reference to `inet6_release'
@ 2022-01-22 12:32 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-22 12:32 UTC (permalink / raw)
To: Chuck Lever; +Cc: kbuild-all, linux-kernel
tree: git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux topic-rpc-with-tls-upcall
head: da4c27539d2deaa2b9624c470a903b880497e398
commit: 2d835a81bb38c6378f4cc53d0eb2320248a11a4c [15/18] net/tls: Add support for PF_TLSH (a TLS handshake listener)
config: i386-randconfig-a005 (https://download.01.org/0day-ci/archive/20220122/202201222037.SQYbQlzI-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/commit/?id=2d835a81bb38c6378f4cc53d0eb2320248a11a4c
git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
git fetch --no-tags cel topic-rpc-with-tls-upcall
git checkout 2d835a81bb38c6378f4cc53d0eb2320248a11a4c
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
ld: net/tls/af_tlsh.o: in function `tlsh_recvmsg':
net/tls/af_tlsh.c:594: undefined reference to `inet6_recvmsg'
ld: net/tls/af_tlsh.o: in function `tlsh_sendmsg':
net/tls/af_tlsh.c:564: undefined reference to `inet6_sendmsg'
ld: net/tls/af_tlsh.o: in function `tlsh_getname':
net/tls/af_tlsh.c:404: undefined reference to `inet6_getname'
ld: net/tls/af_tlsh.o: in function `tlsh_release':
>> net/tls/af_tlsh.c:243: undefined reference to `inet6_release'
vim +243 net/tls/af_tlsh.c
223
224 /**
225 * tlsh_release - free an AF_TLSH socket
226 * @sock: socket to release
227 *
228 * Return values:
229 * %0: success
230 */
231 static int tlsh_release(struct socket *sock)
232 {
233 struct sock *sk = sock->sk;
234
235 if (!sk)
236 return 0;
237
238 switch (sk->sk_family) {
239 case AF_INET:
240 return inet_release(sock);
241 #if IS_ENABLED(CONFIG_IPV6)
242 case AF_INET6:
> 243 return inet6_release(sock);
244 #endif
245 case AF_TLSH:
246 break;
247 default:
248 return 0;
249 }
250
251 sock_hold(sk); /* Ref: D */
252 sock_orphan(sk);
253 lock_sock(sk);
254
255 tlsh_unregister_listener(sk);
256 tlsh_accept_drain(sk);
257
258 sk->sk_state = TCP_CLOSE;
259 sk->sk_shutdown |= SEND_SHUTDOWN;
260 sk->sk_state_change(sk);
261
262 sk->sk_tls_bind_family = AF_UNSPEC;
263 sock->sk = NULL;
264 release_sock(sk);
265 sock_put(sk); /* Ref: D */
266
267 sock_put(sk); /* Ref: A */
268 return 0;
269 }
270
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* [cel:topic-rpc-with-tls-upcall 15/18] net/tls/af_tlsh.c:243: undefined reference to `inet6_release'
@ 2022-01-22 12:32 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-22 12:32 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2871 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux topic-rpc-with-tls-upcall
head: da4c27539d2deaa2b9624c470a903b880497e398
commit: 2d835a81bb38c6378f4cc53d0eb2320248a11a4c [15/18] net/tls: Add support for PF_TLSH (a TLS handshake listener)
config: i386-randconfig-a005 (https://download.01.org/0day-ci/archive/20220122/202201222037.SQYbQlzI-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/commit/?id=2d835a81bb38c6378f4cc53d0eb2320248a11a4c
git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
git fetch --no-tags cel topic-rpc-with-tls-upcall
git checkout 2d835a81bb38c6378f4cc53d0eb2320248a11a4c
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
ld: net/tls/af_tlsh.o: in function `tlsh_recvmsg':
net/tls/af_tlsh.c:594: undefined reference to `inet6_recvmsg'
ld: net/tls/af_tlsh.o: in function `tlsh_sendmsg':
net/tls/af_tlsh.c:564: undefined reference to `inet6_sendmsg'
ld: net/tls/af_tlsh.o: in function `tlsh_getname':
net/tls/af_tlsh.c:404: undefined reference to `inet6_getname'
ld: net/tls/af_tlsh.o: in function `tlsh_release':
>> net/tls/af_tlsh.c:243: undefined reference to `inet6_release'
vim +243 net/tls/af_tlsh.c
223
224 /**
225 * tlsh_release - free an AF_TLSH socket
226 * @sock: socket to release
227 *
228 * Return values:
229 * %0: success
230 */
231 static int tlsh_release(struct socket *sock)
232 {
233 struct sock *sk = sock->sk;
234
235 if (!sk)
236 return 0;
237
238 switch (sk->sk_family) {
239 case AF_INET:
240 return inet_release(sock);
241 #if IS_ENABLED(CONFIG_IPV6)
242 case AF_INET6:
> 243 return inet6_release(sock);
244 #endif
245 case AF_TLSH:
246 break;
247 default:
248 return 0;
249 }
250
251 sock_hold(sk); /* Ref: D */
252 sock_orphan(sk);
253 lock_sock(sk);
254
255 tlsh_unregister_listener(sk);
256 tlsh_accept_drain(sk);
257
258 sk->sk_state = TCP_CLOSE;
259 sk->sk_shutdown |= SEND_SHUTDOWN;
260 sk->sk_state_change(sk);
261
262 sk->sk_tls_bind_family = AF_UNSPEC;
263 sock->sk = NULL;
264 release_sock(sk);
265 sock_put(sk); /* Ref: D */
266
267 sock_put(sk); /* Ref: A */
268 return 0;
269 }
270
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-22 12:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-22 12:32 [cel:topic-rpc-with-tls-upcall 15/18] net/tls/af_tlsh.c:243: undefined reference to `inet6_release' kernel test robot
2022-01-22 12:32 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.