lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201222037.SQYbQlzI-lkp@intel.com>
Date:   Sat, 22 Jan 2022 20:32:53 +0800
From:   kernel test robot <lkp@...el.com>
To:     Chuck Lever <chuck.lever@...cle.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [cel:topic-rpc-with-tls-upcall 15/18] net/tls/af_tlsh.c:243:
 undefined reference to `inet6_release'

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ