All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFCv2 5/9] tcp: authopt: Hook into tcp core
Date: Tue, 10 Aug 2021 10:17:56 +0800	[thread overview]
Message-ID: <202108101013.xsY2t7CK-lkp@intel.com> (raw)
In-Reply-To: <28ccc211be7d2886b6c2a287a6fcfd55ee3b6e2b.1628544649.git.cdleonard@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 7267 bytes --]

Hi Leonard,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on 2a2b6e3640c43a808dcb5226963e2cc0669294b1]

url:    https://github.com/0day-ci/linux/commits/Leonard-Crestez/tcp-Initial-support-for-RFC5925-auth-option/20210810-053824
base:   2a2b6e3640c43a808dcb5226963e2cc0669294b1
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/262249e896df425f9daf2437bdd09b46a30516b2
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Leonard-Crestez/tcp-Initial-support-for-RFC5925-auth-option/20210810-053824
        git checkout 262249e896df425f9daf2437bdd09b46a30516b2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=riscv 

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

All warnings (new ones prefixed by >>):

   net/ipv4/tcp_authopt.c:160:30: warning: no previous prototype for '__tcp_authopt_key_info_lookup' [-Wmissing-prototypes]
     160 | struct tcp_authopt_key_info *__tcp_authopt_key_info_lookup(const struct sock *sk,
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> net/ipv4/tcp_authopt.c:173:30: warning: no previous prototype for 'tcp_authopt_lookup_send' [-Wmissing-prototypes]
     173 | struct tcp_authopt_key_info *tcp_authopt_lookup_send(struct tcp_authopt_info *info,
         |                              ^~~~~~~~~~~~~~~~~~~~~~~
   net/ipv4/tcp_authopt.c: In function 'tcp_set_authopt':
   net/ipv4/tcp_authopt.c:267:62: error: expected ';' before ')' token
     267 |  info->flags = opt.flags & TCP_AUTHOPT_FLAG_REJECT_UNEXPECTED);
         |                                                              ^
         |                                                              ;
   net/ipv4/tcp_authopt.c:267:62: error: expected statement before ')' token
   net/ipv4/tcp_authopt.c: At top level:
   net/ipv4/tcp_authopt.c:305:6: warning: no previous prototype for '__tcp_authopt_info_free' [-Wmissing-prototypes]
     305 | void __tcp_authopt_info_free(struct sock *sk, struct tcp_authopt_info *info)
         |      ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/rbtree.h:22,
                    from include/linux/mm_types.h:10,
                    from include/linux/mmzone.h:21,
                    from include/linux/gfp.h:6,
                    from include/linux/mm.h:10,
                    from include/linux/bvec.h:14,
                    from include/linux/skbuff.h:17,
                    from include/linux/tcp.h:17,
                    from include/net/tcp.h:20,
                    from net/ipv4/tcp_authopt.c:4:
   net/ipv4/tcp_authopt.c: In function 'tcp_authopt_clone_keys':
   net/ipv4/tcp_authopt.c:412:80: error: 'sk' undeclared (first use in this function); did you mean 's8'?
     412 |  hlist_for_each_entry_rcu(old_key, &old_info->head, node, lockdep_sock_is_held(sk)) {
         |                                                                                ^~
   include/linux/rcupdate.h:318:8: note: in definition of macro 'RCU_LOCKDEP_WARN'
     318 |   if ((c) && debug_lockdep_rcu_enabled() && !__warned) { \
         |        ^
   include/linux/rculist.h:706:7: note: in expansion of macro '__list_check_rcu'
     706 |  for (__list_check_rcu(dummy, ## cond, 0),   \
         |       ^~~~~~~~~~~~~~~~
   net/ipv4/tcp_authopt.c:412:2: note: in expansion of macro 'hlist_for_each_entry_rcu'
     412 |  hlist_for_each_entry_rcu(old_key, &old_info->head, node, lockdep_sock_is_held(sk)) {
         |  ^~~~~~~~~~~~~~~~~~~~~~~~
   net/ipv4/tcp_authopt.c:412:80: note: each undeclared identifier is reported only once for each function it appears in
     412 |  hlist_for_each_entry_rcu(old_key, &old_info->head, node, lockdep_sock_is_held(sk)) {
         |                                                                                ^~
   include/linux/rcupdate.h:318:8: note: in definition of macro 'RCU_LOCKDEP_WARN'
     318 |   if ((c) && debug_lockdep_rcu_enabled() && !__warned) { \
         |        ^
   include/linux/rculist.h:706:7: note: in expansion of macro '__list_check_rcu'
     706 |  for (__list_check_rcu(dummy, ## cond, 0),   \
         |       ^~~~~~~~~~~~~~~~
   net/ipv4/tcp_authopt.c:412:2: note: in expansion of macro 'hlist_for_each_entry_rcu'
     412 |  hlist_for_each_entry_rcu(old_key, &old_info->head, node, lockdep_sock_is_held(sk)) {
         |  ^~~~~~~~~~~~~~~~~~~~~~~~
   net/ipv4/tcp_authopt.c: In function 'tcp_authopt_shash_traffic_key':
   net/ipv4/tcp_authopt.c:486:21: warning: variable 'daddr' set but not used [-Wunused-but-set-variable]
     486 |    struct in6_addr *daddr;
         |                     ^~~~~
   net/ipv4/tcp_authopt.c:485:21: warning: variable 'saddr' set but not used [-Wunused-but-set-variable]
     485 |    struct in6_addr *saddr;
         |                     ^~~~~
   net/ipv4/tcp_authopt.c: At top level:
   net/ipv4/tcp_authopt.c:878:5: warning: no previous prototype for '__tcp_authopt_calc_mac' [-Wmissing-prototypes]
     878 | int __tcp_authopt_calc_mac(struct sock *sk,
         |     ^~~~~~~~~~~~~~~~~~~~~~


vim +/tcp_authopt_lookup_send +173 net/ipv4/tcp_authopt.c

   172	
 > 173	struct tcp_authopt_key_info *tcp_authopt_lookup_send(struct tcp_authopt_info *info,
   174							     const struct sock *addr_sk,
   175							     int send_id)
   176	{
   177		struct tcp_authopt_key_info *result = NULL;
   178		struct tcp_authopt_key_info *key;
   179	
   180		hlist_for_each_entry_rcu(key, &info->head, node, 0) {
   181			if (send_id >= 0 && key->send_id != send_id)
   182				continue;
   183			if (key->flags & TCP_AUTHOPT_KEY_ADDR_BIND) {
   184				if (addr_sk->sk_family == AF_INET) {
   185					struct sockaddr_in *key_addr = (struct sockaddr_in *)&key->addr;
   186					const struct in_addr *daddr =
   187						(const struct in_addr *)&addr_sk->sk_daddr;
   188	
   189					if (WARN_ON(key_addr->sin_family != AF_INET))
   190						continue;
   191					if (memcmp(daddr, &key_addr->sin_addr, sizeof(*daddr)))
   192						continue;
   193				}
   194				if (addr_sk->sk_family == AF_INET6) {
   195					struct sockaddr_in6 *key_addr = (struct sockaddr_in6 *)&key->addr;
   196					const struct in6_addr *daddr = &addr_sk->sk_v6_daddr;
   197	
   198					if (WARN_ON(key_addr->sin6_family != AF_INET6))
   199						continue;
   200					if (memcmp(daddr, &key_addr->sin6_addr, sizeof(*daddr)))
   201						continue;
   202				}
   203			}
   204			if (result && net_ratelimit())
   205				pr_warn("ambiguous tcp authentication keys configured for send\n");
   206			result = key;
   207		}
   208	
   209		return result;
   210	}
   211	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 70174 bytes --]

  reply	other threads:[~2021-08-10  2:17 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-09 21:35 [RFCv2 0/9] tcp: Initial support for RFC5925 auth option Leonard Crestez
2021-08-09 21:35 ` [RFCv2 1/9] tcp: authopt: Initial support and key management Leonard Crestez
2021-08-10  0:59   ` kernel test robot
2021-08-10 20:41   ` Dmitry Safonov
2021-08-11  8:29     ` Leonard Crestez
2021-08-11 13:42       ` David Ahern
2021-08-11 19:11         ` Leonard Crestez
2021-08-11 20:26           ` Dmitry Safonov
2021-08-11 20:26           ` David Ahern
2021-08-11 14:31       ` Dmitry Safonov
2021-08-11 17:15         ` David Ahern
2021-08-11 20:12           ` Dmitry Safonov
2021-08-11 20:23             ` David Ahern
2021-08-11 19:08         ` Leonard Crestez
2021-08-12 19:46       ` Leonard Crestez
2021-08-09 21:35 ` [RFCv2 2/9] docs: Add user documentation for tcp_authopt Leonard Crestez
2021-08-09 21:35 ` [RFCv2 3/9] tcp: authopt: Add crypto initialization Leonard Crestez
2021-08-09 21:35 ` [RFCv2 4/9] tcp: authopt: Compute packet signatures Leonard Crestez
2021-08-10  1:33   ` kernel test robot
2021-08-09 21:35 ` [RFCv2 5/9] tcp: authopt: Hook into tcp core Leonard Crestez
2021-08-10  2:17   ` kernel test robot [this message]
2021-08-09 21:35 ` [RFCv2 6/9] tcp: authopt: Add key selection controls Leonard Crestez
2021-08-09 21:35 ` [RFCv2 7/9] tcp: authopt: Add snmp counters Leonard Crestez
2021-08-09 21:35 ` [RFCv2 8/9] selftests: Initial TCP-AO support for nettest Leonard Crestez
2021-08-09 21:35 ` [RFCv2 9/9] selftests: Initial TCP-AO support for fcnal-test Leonard Crestez
2021-08-11 13:46   ` David Ahern
2021-08-11 19:09     ` Leonard Crestez

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=202108101013.xsY2t7CK-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.