Netdev List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Fernando Fernandez Mancera <fmancera@suse.de>, netdev@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, davem@davemloft.net,
	kuba@kernel.org, edumazet@kernel.org, pabeni@redhat.com,
	horms@kernel.org, Fernando Fernandez Mancera <fmancera@suse.de>,
	Neal Cardwell <ncardwell@google.com>,
	Kuniyuki Iwashima <kuniyu@google.com>,
	Willem de Bruijn <willemb@google.com>,
	John Fastabend <john.fastabend@gmail.com>,
	Jakub Sitnicki <jakub@cloudflare.com>,
	Jiayuan Chen <jiayuan.chen@linux.dev>,
	bpf@vger.kernel.org
Subject: Re: [PATCH net-next v4 04/16] tcp: move protocol agnostic TCP functions out of tcp_ipv4.c
Date: Mon, 30 Nov 2026 21:35:46 +0100	[thread overview]
Message-ID: <20261130212921.KnXCWQHj-lkp@intel.com> (raw)
In-Reply-To: <20261127171824.27362-5-fmancera@suse.de>

Hi Fernando,

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/Fernando-Fernandez-Mancera/ipv4-introduce-CONFIG_IPV4-to-decouple-the-IPv4-stack/20261127-181746
base:   net-next/main
patch link:    https://lore.kernel.org/r/20261127171824.27362-5-fmancera%40suse.de
patch subject: [PATCH net-next v4 04/16] tcp: move protocol agnostic TCP functions out of tcp_ipv4.c
config: i386-randconfig-2302-20261130 (https://download.01.org/0day-ci/archive/20261130/20261130212921.KnXCWQHj-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130212921.KnXCWQHj-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261130212921.KnXCWQHj-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> net/ipv4/tcp.c:6466:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const *data @@     got struct tcp_congestion_ops const [noderef] __rcu *tcp_congestion_control @@
   net/ipv4/tcp.c:6466:41: sparse:     expected void const *data
   net/ipv4/tcp.c:6466:41: sparse:     got struct tcp_congestion_ops const [noderef] __rcu *tcp_congestion_control
>> net/ipv4/tcp.c:6592:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const *data @@     got struct tcp_congestion_ops const [noderef] __rcu *extern [addressable] [toplevel] tcp_congestion_control @@
   net/ipv4/tcp.c:6592:45: sparse:     expected void const *data
   net/ipv4/tcp.c:6592:45: sparse:     got struct tcp_congestion_ops const [noderef] __rcu *extern [addressable] [toplevel] tcp_congestion_control
>> net/ipv4/tcp.c:6596:50: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tcp_congestion_ops const [noderef] __rcu *tcp_congestion_control @@     got struct tcp_congestion_ops * @@
   net/ipv4/tcp.c:6596:50: sparse:     expected struct tcp_congestion_ops const [noderef] __rcu *tcp_congestion_control
   net/ipv4/tcp.c:6596:50: sparse:     got struct tcp_congestion_ops *
>> net/ipv4/tcp.c:6467:41: sparse: sparse: dereference of noderef expression
>> net/ipv4/tcp.c:6467:41: sparse: sparse: dereference of noderef expression
   net/ipv4/tcp.c:6593:45: sparse: sparse: dereference of noderef expression
   net/ipv4/tcp.c:6593:45: sparse: sparse: dereference of noderef expression

vim +6466 net/ipv4/tcp.c

  6462	
  6463	static void __net_exit tcp_sk_exit(struct net *net)
  6464	{
  6465		if (net->ipv4.tcp_congestion_control)
> 6466			bpf_module_put(net->ipv4.tcp_congestion_control,
> 6467				       net->ipv4.tcp_congestion_control->owner);
  6468	}
  6469	
  6470	static void __net_init tcp_set_hashinfo(struct net *net)
  6471	{
  6472		struct inet_hashinfo *hinfo;
  6473		unsigned int ehash_entries;
  6474		struct net *old_net;
  6475	
  6476		if (net_eq(net, &init_net))
  6477			goto fallback;
  6478	
  6479		old_net = current->nsproxy->net_ns;
  6480		ehash_entries = READ_ONCE(old_net->ipv4.sysctl_tcp_child_ehash_entries);
  6481		if (!ehash_entries)
  6482			goto fallback;
  6483	
  6484		ehash_entries = roundup_pow_of_two(ehash_entries);
  6485		hinfo = inet_pernet_hashinfo_alloc(&tcp_hashinfo, ehash_entries);
  6486		if (!hinfo) {
  6487			pr_warn("Failed to allocate TCP ehash (entries: %u) "
  6488				"for a netns, fallback to the global one\n",
  6489				ehash_entries);
  6490	fallback:
  6491			hinfo = &tcp_hashinfo;
  6492			ehash_entries = tcp_hashinfo.ehash_mask + 1;
  6493		}
  6494	
  6495		net->ipv4.tcp_death_row.hashinfo = hinfo;
  6496		net->ipv4.tcp_death_row.sysctl_max_tw_buckets = ehash_entries / 2;
  6497		net->ipv4.sysctl_max_syn_backlog = max(128U, ehash_entries / 128);
  6498	}
  6499	
  6500	static int __net_init tcp_sk_init(struct net *net)
  6501	{
  6502		net->ipv4.sysctl_tcp_ecn = TCP_ECN_IN_ECN_OUT_NOECN;
  6503		net->ipv4.sysctl_tcp_ecn_option = TCP_ACCECN_OPTION_FULL;
  6504		net->ipv4.sysctl_tcp_ecn_option_beacon = TCP_ACCECN_OPTION_BEACON;
  6505		net->ipv4.sysctl_tcp_ecn_fallback = 1;
  6506	
  6507		net->ipv4.sysctl_tcp_base_mss = TCP_BASE_MSS;
  6508		net->ipv4.sysctl_tcp_min_snd_mss = TCP_MIN_SND_MSS;
  6509		net->ipv4.sysctl_tcp_probe_threshold = TCP_PROBE_THRESHOLD;
  6510		net->ipv4.sysctl_tcp_probe_interval = TCP_PROBE_INTERVAL;
  6511		net->ipv4.sysctl_tcp_mtu_probe_floor = TCP_MIN_SND_MSS;
  6512	
  6513		net->ipv4.sysctl_tcp_keepalive_time = TCP_KEEPALIVE_TIME;
  6514		net->ipv4.sysctl_tcp_keepalive_probes = TCP_KEEPALIVE_PROBES;
  6515		net->ipv4.sysctl_tcp_keepalive_intvl = TCP_KEEPALIVE_INTVL;
  6516	
  6517		net->ipv4.sysctl_tcp_syn_retries = TCP_SYN_RETRIES;
  6518		net->ipv4.sysctl_tcp_synack_retries = TCP_SYNACK_RETRIES;
  6519		net->ipv4.sysctl_tcp_syncookies = 1;
  6520		net->ipv4.sysctl_tcp_reordering = TCP_FASTRETRANS_THRESH;
  6521		net->ipv4.sysctl_tcp_retries1 = TCP_RETR1;
  6522		net->ipv4.sysctl_tcp_retries2 = TCP_RETR2;
  6523		net->ipv4.sysctl_tcp_orphan_retries = 0;
  6524		net->ipv4.sysctl_tcp_fin_timeout = TCP_FIN_TIMEOUT;
  6525		net->ipv4.sysctl_tcp_notsent_lowat = UINT_MAX;
  6526		net->ipv4.sysctl_tcp_tw_reuse = 2;
  6527		net->ipv4.sysctl_tcp_tw_reuse_delay = 1 * MSEC_PER_SEC;
  6528		net->ipv4.sysctl_tcp_no_ssthresh_metrics_save = 1;
  6529	
  6530		refcount_set(&net->ipv4.tcp_death_row.tw_refcount, 1);
  6531		tcp_set_hashinfo(net);
  6532	
  6533		net->ipv4.sysctl_tcp_sack = 1;
  6534		net->ipv4.sysctl_tcp_window_scaling = 1;
  6535		net->ipv4.sysctl_tcp_timestamps = 1;
  6536		net->ipv4.sysctl_tcp_early_retrans = 3;
  6537		net->ipv4.sysctl_tcp_recovery = TCP_RACK_LOSS_DETECTION;
  6538		net->ipv4.sysctl_tcp_slow_start_after_idle = 1; /* By default, RFC2861 behavior.  */
  6539		net->ipv4.sysctl_tcp_retrans_collapse = 1;
  6540		net->ipv4.sysctl_tcp_max_reordering = 300;
  6541		net->ipv4.sysctl_tcp_dsack = 1;
  6542		net->ipv4.sysctl_tcp_app_win = 31;
  6543		net->ipv4.sysctl_tcp_adv_win_scale = 1;
  6544		net->ipv4.sysctl_tcp_frto = 2;
  6545		net->ipv4.sysctl_tcp_moderate_rcvbuf = 1;
  6546		net->ipv4.sysctl_tcp_rcvbuf_low_rtt = USEC_PER_MSEC;
  6547		/* This limits the percentage of the congestion window which we
  6548		 * will allow a single TSO frame to consume.  Building TSO frames
  6549		 * which are too large can cause TCP streams to be bursty.
  6550		 */
  6551		net->ipv4.sysctl_tcp_tso_win_divisor = 3;
  6552		/* Default TSQ limit of 4 MB */
  6553		net->ipv4.sysctl_tcp_limit_output_bytes = 4 << 20;
  6554	
  6555		/* rfc5961 challenge ack rate limiting, per net-ns, disabled by default. */
  6556		net->ipv4.sysctl_tcp_challenge_ack_limit = INT_MAX;
  6557	
  6558		net->ipv4.sysctl_tcp_min_tso_segs = 2;
  6559		net->ipv4.sysctl_tcp_tso_rtt_log = 9;  /* 2^9 = 512 usec */
  6560		net->ipv4.sysctl_tcp_min_rtt_wlen = 300;
  6561		net->ipv4.sysctl_tcp_autocorking = 1;
  6562		net->ipv4.sysctl_tcp_invalid_ratelimit = HZ / 2;
  6563		net->ipv4.sysctl_tcp_pacing_ss_ratio = 200;
  6564		net->ipv4.sysctl_tcp_pacing_ca_ratio = 120;
  6565		if (net != &init_net) {
  6566			memcpy(net->ipv4.sysctl_tcp_rmem,
  6567			       init_net.ipv4.sysctl_tcp_rmem,
  6568			       sizeof(init_net.ipv4.sysctl_tcp_rmem));
  6569			memcpy(net->ipv4.sysctl_tcp_wmem,
  6570			       init_net.ipv4.sysctl_tcp_wmem,
  6571			       sizeof(init_net.ipv4.sysctl_tcp_wmem));
  6572		}
  6573		net->ipv4.sysctl_tcp_comp_sack_delay_ns = NSEC_PER_MSEC;
  6574		net->ipv4.sysctl_tcp_comp_sack_slack_ns = 10 * NSEC_PER_USEC;
  6575		net->ipv4.sysctl_tcp_comp_sack_nr = 44;
  6576		net->ipv4.sysctl_tcp_comp_sack_rtt_percent = 33;
  6577		net->ipv4.sysctl_tcp_backlog_ack_defer = 1;
  6578		net->ipv4.sysctl_tcp_fastopen = TFO_CLIENT_ENABLE;
  6579		net->ipv4.sysctl_tcp_fastopen_blackhole_timeout = 0;
  6580		atomic_set(&net->ipv4.tfo_active_disable_times, 0);
  6581	
  6582		/* Set default values for PLB */
  6583		net->ipv4.sysctl_tcp_plb_enabled = 0; /* Disabled by default */
  6584		net->ipv4.sysctl_tcp_plb_idle_rehash_rounds = 3;
  6585		net->ipv4.sysctl_tcp_plb_rehash_rounds = 12;
  6586		net->ipv4.sysctl_tcp_plb_suspend_rto_sec = 60;
  6587		/* Default congestion threshold for PLB to mark a round is 50% */
  6588		net->ipv4.sysctl_tcp_plb_cong_thresh = (1 << TCP_PLB_SCALE) / 2;
  6589	
  6590		/* Reno is always built in */
  6591		if (!net_eq(net, &init_net) &&
> 6592		    bpf_try_module_get(init_net.ipv4.tcp_congestion_control,
  6593				       init_net.ipv4.tcp_congestion_control->owner))
  6594			net->ipv4.tcp_congestion_control = init_net.ipv4.tcp_congestion_control;
  6595		else
> 6596			net->ipv4.tcp_congestion_control = &tcp_reno;
  6597	
  6598		net->ipv4.sysctl_tcp_syn_linear_timeouts = 4;
  6599		net->ipv4.sysctl_tcp_shrink_window = 0;
  6600	
  6601		net->ipv4.sysctl_tcp_pingpong_thresh = 1;
  6602		net->ipv4.sysctl_tcp_rto_min_us = jiffies_to_usecs(TCP_RTO_MIN);
  6603		net->ipv4.sysctl_tcp_rto_max_ms = TCP_RTO_MAX_SEC * MSEC_PER_SEC;
  6604	
  6605		return 0;
  6606	}
  6607	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2026-11-30 20:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 17:17 [PATCH net-next v4 00/16] Allow compiling an IPv6-only kernel network stack Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 01/16] ipv4: introduce CONFIG_IPV4 to decouple the IPv4 stack Fernando Fernandez Mancera
2026-11-30  5:01   ` Allison Henderson
2026-11-30 10:15     ` Andy Moreton
2026-11-27 17:17 ` [PATCH net-next v4 02/16] net: core: add IPv4 fallback stubs and guards for CONFIG_IPV4=n Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 03/16] net: inet: relocate ip_generic_getfrag and guard IPv4 socket logic Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 04/16] tcp: move protocol agnostic TCP functions out of tcp_ipv4.c Fernando Fernandez Mancera
2026-11-30 20:35   ` kernel test robot [this message]
2026-11-27 17:17 ` [PATCH net-next v4 05/16] ipv4: raw: split IPv4 specific logic into raw_ipv4.c Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 06/16] ipv4: udp: split IPv4 specific logic into udp_ipv4.c Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 07/16] ipv4: icmp: split IPv4 specific logic into icmp_ipv4.c Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 08/16] ipv4: ping: split IPv4 specific logic into ping_ipv4.c Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 09/16] ipv4: fib: split common nexthop logic to fib_core.c Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 10/16] tunnels: guard IPv4 tunnel functions with CONFIG_IPV4 Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 11/16] ipv4: disable IPv4-only sysctls when CONFIG_IPV4=n Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 12/16] netfilter: ipv4: guard ip_route_me_harder() with CONFIG_IPV4 Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 13/16] net: bridge: guard ARP/RARP proxy and suppression " Fernando Fernandez Mancera
2026-11-27 17:17 ` [PATCH net-next v4 14/16] wifi: mac80211: replace CONFIG_INET with CONFIG_IPV4 guards Fernando Fernandez Mancera
2026-11-27 17:18 ` [PATCH net-next v4 15/16] netlabel: cipso: introduce CONFIG_CIPSO to decouple IPv4 dependency Fernando Fernandez Mancera
2026-11-27 17:18 ` [PATCH net-next v4 16/16] ipv4: make CONFIG_IPV4 boolean Fernando Fernandez Mancera

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=20261130212921.KnXCWQHj-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bpf@vger.kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=fmancera@suse.de \
    --cc=horms@kernel.org \
    --cc=jakub@cloudflare.com \
    --cc=jiayuan.chen@linux.dev \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=willemb@google.com \
    /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