mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [cel:topic-rpc-with-tls-upcall 16/19] net/sunrpc/xprtsock.c:2470: undefined reference to `tls_client_hello_psk'
Date: Sun, 22 May 2022 08:07:19 +0800	[thread overview]
Message-ID: <202205220749.t0IB45zc-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux topic-rpc-with-tls-upcall
head:   c484b8917f3569f6fdf4026936f9452dbeb1a8c3
commit: ff786916b6c43d3db9b03c15b3379fd96b4bb05c [16/19] SUNRPC: Add RPC-with-TLS support to xprtsock.c
config: x86_64-rhel-8.3-func (https://download.01.org/0day-ci/archive/20220522/202205220749.t0IB45zc-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/commit/?id=ff786916b6c43d3db9b03c15b3379fd96b4bb05c
        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 ff786916b6c43d3db9b03c15b3379fd96b4bb05c
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   ld: net/sunrpc/xprtsock.o: in function `xs_tls_handshake_sync':
>> net/sunrpc/xprtsock.c:2470: undefined reference to `tls_client_hello_psk'
>> ld: net/sunrpc/xprtsock.c:2464: undefined reference to `tls_client_hello_x509'


vim +2470 net/sunrpc/xprtsock.c

  2451	
  2452	static int xs_tls_handshake_sync(struct rpc_xprt *xprt, unsigned int xprtsec)
  2453	{
  2454		struct sock_xprt *transport =
  2455					container_of(xprt, struct sock_xprt, xprt);
  2456		int rc;
  2457	
  2458		init_completion(&transport->handshake_done);
  2459		set_bit(XPRT_SOCK_IGNORE_RECV, &transport->sock_state);
  2460	
  2461		transport->xprt_err = -ETIMEDOUT;
  2462		switch (xprtsec) {
  2463		case RPC_XPRTSEC_TLS_X509:
> 2464			rc = tls_client_hello_x509(transport->sock,
  2465						   xs_tls_handshake_done, xprt_get(xprt),
  2466						   TLSH_DEFAULT_PRIORITIES, TLSH_NO_PEERID,
  2467						   TLSH_NO_CERT);
  2468			break;
  2469		case RPC_XPRTSEC_TLS_PSK:
> 2470			rc = tls_client_hello_psk(transport->sock, xs_tls_handshake_done,
  2471						  xprt_get(xprt), TLSH_DEFAULT_PRIORITIES,
  2472						  TLSH_NO_PEERID);
  2473			break;
  2474		default:
  2475			rc = -EACCES;
  2476		}
  2477		if (rc)
  2478			goto out;
  2479	
  2480		rc = wait_for_completion_interruptible_timeout(&transport->handshake_done,
  2481							       XS_TLS_HANDSHAKE_TO);
  2482		if (rc < 0)
  2483			goto out;
  2484	
  2485		rc = transport->xprt_err;
  2486	
  2487	out:
  2488		xs_stream_reset_connect(transport);
  2489		clear_bit(XPRT_SOCK_IGNORE_RECV, &transport->sock_state);
  2490		return rc;
  2491	}
  2492	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-05-22  0:09 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=202205220749.t0IB45zc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chuck.lever@oracle.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome