[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202506271810.8Sd035zs-lkp@intel.com>
Date: Fri, 27 Jun 2025 19:19:59 +0800
From: kernel test robot <lkp@...el.com>
To: Jakub Sitnicki <jakub@...udflare.com>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Neal Cardwell <ncardwell@...gle.com>,
Kuniyuki Iwashima <kuniyu@...gle.com>
Cc: oe-kbuild-all@...ts.linux.dev, netdev@...r.kernel.org,
kernel-team@...udflare.com,
Lee Valentine <lvalentine@...udflare.com>
Subject: Re: [PATCH net-next 1/2] tcp: Consider every port when connecting
with IP_LOCAL_PORT_RANGE
Hi Jakub,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Jakub-Sitnicki/selftests-net-Cover-port-sharing-scenarios-with-IP_LOCAL_PORT_RANGE/20250626-200955
base: net-next/main
patch link: https://lore.kernel.org/r/20250626120247.1255223-1-jakub%40cloudflare.com
patch subject: [PATCH net-next 1/2] tcp: Consider every port when connecting with IP_LOCAL_PORT_RANGE
config: sparc64-randconfig-r123-20250627 (https://download.01.org/0day-ci/archive/20250627/202506271810.8Sd035zs-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
reproduce: (https://download.01.org/0day-ci/archive/20250627/202506271810.8Sd035zs-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506271810.8Sd035zs-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> net/ipv4/inet_hashtables.c:1036:26: sparse: sparse: restricted __be32 degrades to integer
vim +1036 net/ipv4/inet_hashtables.c
1007
1008 /* True on source address conflict with another socket. False otherwise.
1009 * Caller must hold hashbucket lock for this tb.
1010 */
1011 static inline bool check_bound(const struct sock *sk,
1012 const struct inet_bind_bucket *tb)
1013 {
1014 const struct inet_bind2_bucket *tb2;
1015 const struct sock *sk2;
1016
1017 hlist_for_each_entry(tb2, &tb->bhash2, bhash_node) {
1018 #if IS_ENABLED(CONFIG_IPV6)
1019 if (sk->sk_family == AF_INET6) {
1020 if (tb2->addr_type == IPV6_ADDR_ANY ||
1021 ipv6_addr_equal(&tb2->v6_rcv_saddr,
1022 &sk->sk_v6_rcv_saddr))
1023 return true;
1024 continue;
1025 }
1026
1027 /* Check for ipv6 non-v6only wildcard sockets */
1028 if (tb2->addr_type == IPV6_ADDR_ANY)
1029 sk_for_each_bound(sk2, &tb2->owners)
1030 if (!sk2->sk_ipv6only)
1031 return true;
1032
1033 if (tb2->addr_type != IPV6_ADDR_MAPPED)
1034 continue;
1035 #endif
> 1036 if (tb2->rcv_saddr == INADDR_ANY ||
1037 tb2->rcv_saddr == sk->sk_rcv_saddr)
1038 return true;
1039 }
1040
1041 return false;
1042 }
1043
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists