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: [RFCv3 07/15] tcp: authopt: Hook into tcp core
Date: Wed, 25 Aug 2021 09:48:42 +0800	[thread overview]
Message-ID: <202108250938.pmM45647-lkp@intel.com> (raw)
In-Reply-To: <73b11222e312a60a17ccaeabbd0e96732289defc.1629840814.git.cdleonard@gmail.com>

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

Hi Leonard,

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

url:    https://github.com/0day-ci/linux/commits/Leonard-Crestez/tcp-Initial-support-for-RFC5925-auth-option/20210825-053714
base:   3a62c333497b164868fdcd241842a1dd4e331825
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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/ed738605a859a09457d1ab0570d8cf8bcfe3f536
        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/20210825-053714
        git checkout ed738605a859a09457d1ab0570d8cf8bcfe3f536
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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:208:30: warning: no previous prototype for 'tcp_authopt_lookup_send' [-Wmissing-prototypes]
     208 | struct tcp_authopt_key_info *tcp_authopt_lookup_send(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:468:87: error: 'sk' undeclared (first use in this function); did you mean 's8'?
     468 |         hlist_for_each_entry_rcu(old_key, &old_info->head, node, lockdep_sock_is_held(sk)) {
         |                                                                                       ^~
   include/linux/rcupdate.h:318:22: note: in definition of macro 'RCU_LOCKDEP_WARN'
     318 |                 if ((c) && debug_lockdep_rcu_enabled() && !__warned) {  \
         |                      ^
   include/linux/rculist.h:706:14: note: in expansion of macro '__list_check_rcu'
     706 |         for (__list_check_rcu(dummy, ## cond, 0),                       \
         |              ^~~~~~~~~~~~~~~~
   net/ipv4/tcp_authopt.c:468:9: note: in expansion of macro 'hlist_for_each_entry_rcu'
     468 |         hlist_for_each_entry_rcu(old_key, &old_info->head, node, lockdep_sock_is_held(sk)) {
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   net/ipv4/tcp_authopt.c:468:87: note: each undeclared identifier is reported only once for each function it appears in
     468 |         hlist_for_each_entry_rcu(old_key, &old_info->head, node, lockdep_sock_is_held(sk)) {
         |                                                                                       ^~
   include/linux/rcupdate.h:318:22: note: in definition of macro 'RCU_LOCKDEP_WARN'
     318 |                 if ((c) && debug_lockdep_rcu_enabled() && !__warned) {  \
         |                      ^
   include/linux/rculist.h:706:14: note: in expansion of macro '__list_check_rcu'
     706 |         for (__list_check_rcu(dummy, ## cond, 0),                       \
         |              ^~~~~~~~~~~~~~~~
   net/ipv4/tcp_authopt.c:468:9: note: in expansion of macro 'hlist_for_each_entry_rcu'
     468 |         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:542:42: warning: variable 'daddr' set but not used [-Wunused-but-set-variable]
     542 |                         struct in6_addr *daddr;
         |                                          ^~~~~
   net/ipv4/tcp_authopt.c:541:42: warning: variable 'saddr' set but not used [-Wunused-but-set-variable]
     541 |                         struct in6_addr *saddr;
         |                                          ^~~~~
   net/ipv4/tcp_authopt.c: At top level:
   net/ipv4/tcp_authopt.c:940:5: warning: no previous prototype for '__tcp_authopt_calc_mac' [-Wmissing-prototypes]
     940 | int __tcp_authopt_calc_mac(struct sock *sk,
         |     ^~~~~~~~~~~~~~~~~~~~~~


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

   207	
 > 208	struct tcp_authopt_key_info *tcp_authopt_lookup_send(struct tcp_authopt_info *info,
   209							     const struct sock *addr_sk,
   210							     int send_id)
   211	{
   212		struct tcp_authopt_key_info *result = NULL;
   213		struct tcp_authopt_key_info *key;
   214	
   215		hlist_for_each_entry_rcu(key, &info->head, node, 0) {
   216			if (send_id >= 0 && key->send_id != send_id)
   217				continue;
   218			if (key->flags & TCP_AUTHOPT_KEY_ADDR_BIND) {
   219				if (addr_sk->sk_family == AF_INET) {
   220					struct sockaddr_in *key_addr = (struct sockaddr_in *)&key->addr;
   221					const struct in_addr *daddr =
   222						(const struct in_addr *)&addr_sk->sk_daddr;
   223	
   224					if (WARN_ON(key_addr->sin_family != AF_INET))
   225						continue;
   226					if (memcmp(daddr, &key_addr->sin_addr, sizeof(*daddr)))
   227						continue;
   228				}
   229				if (addr_sk->sk_family == AF_INET6) {
   230					struct sockaddr_in6 *key_addr = (struct sockaddr_in6 *)&key->addr;
   231					const struct in6_addr *daddr = &addr_sk->sk_v6_daddr;
   232	
   233					if (WARN_ON(key_addr->sin6_family != AF_INET6))
   234						continue;
   235					if (memcmp(daddr, &key_addr->sin6_addr, sizeof(*daddr)))
   236						continue;
   237				}
   238			}
   239			if (result && net_ratelimit())
   240				pr_warn("ambiguous tcp authentication keys configured for send\n");
   241			result = key;
   242		}
   243	
   244		return result;
   245	}
   246	

---
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: 68488 bytes --]

  parent reply	other threads:[~2021-08-25  1:48 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24 21:34 [RFCv3 00/15] tcp: Initial support for RFC5925 auth option Leonard Crestez
2021-08-24 21:34 ` [RFCv3 01/15] tcp: authopt: Initial support and key management Leonard Crestez
2021-08-31 19:04   ` Dmitry Safonov
2021-09-03 14:26     ` Leonard Crestez
2021-08-24 21:34 ` [RFCv3 02/15] docs: Add user documentation for tcp_authopt Leonard Crestez
2021-08-24 21:34 ` [RFCv3 03/15] selftests: Initial tcp_authopt test module Leonard Crestez
2021-08-24 21:34 ` [RFCv3 04/15] selftests: tcp_authopt: Initial sockopt manipulation Leonard Crestez
2021-08-24 21:34 ` [RFCv3 05/15] tcp: authopt: Add crypto initialization Leonard Crestez
2021-08-24 23:02   ` Eric Dumazet
2021-08-24 23:34   ` Eric Dumazet
2021-08-25  8:08     ` Herbert Xu
2021-08-25 14:55       ` Eric Dumazet
2021-08-25 16:04       ` Ard Biesheuvel
2021-08-25 16:31         ` Leonard Crestez
2021-08-25 16:35     ` Leonard Crestez
2021-08-25 17:55       ` Eric Dumazet
2021-08-25 18:56         ` Leonard Crestez
2021-08-24 21:34 ` [RFCv3 06/15] tcp: authopt: Compute packet signatures Leonard Crestez
2021-08-25  0:45   ` kernel test robot
2021-08-26  2:19   ` kernel test robot
2021-08-26  2:19   ` [RFC PATCH] tcp: authopt: __tcp_authopt_calc_mac() can be static kernel test robot
2021-08-28  0:39   ` [RFCv3 06/15] tcp: authopt: Compute packet signatures kernel test robot
2021-08-24 21:34 ` [RFCv3 07/15] tcp: authopt: Hook into tcp core Leonard Crestez
2021-08-24 22:59   ` Eric Dumazet
2021-08-25 16:32     ` Leonard Crestez
2021-08-25  1:48   ` kernel test robot [this message]
2021-08-25  3:31   ` kernel test robot
2021-08-28 11:59   ` kernel test robot
2021-08-28 11:59   ` [RFC PATCH] tcp: authopt: tcp_authopt_lookup_send() can be static kernel test robot
2021-08-24 21:34 ` [RFCv3 08/15] tcp: authopt: Add snmp counters Leonard Crestez
2021-08-24 21:34 ` [RFCv3 09/15] selftests: tcp_authopt: Test key address binding Leonard Crestez
2021-08-25  5:18   ` David Ahern
2021-08-25 16:37     ` Leonard Crestez
2021-08-24 21:34 ` [RFCv3 10/15] selftests: tcp_authopt: Capture and verify packets Leonard Crestez
2021-08-24 21:34 ` [RFCv3 11/15] selftests: Initial tcp_authopt support for nettest Leonard Crestez
2021-08-24 21:34 ` [RFCv3 12/15] selftests: Initial tcp_authopt support for fcnal-test Leonard Crestez
2021-08-24 21:34 ` [RFCv3 13/15] selftests: Add -t tcp_authopt option for fcnal-test.sh Leonard Crestez
2021-08-24 21:34 ` [RFCv3 14/15] tcp: authopt: Add key selection controls Leonard Crestez
2021-08-24 21:34 ` [RFCv3 15/15] selftests: tcp_authopt: Add tests for rollover 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=202108250938.pmM45647-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.