From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796070984; b=UzyugsRA76fFW2ELMbim8QA4VpQ1ILQOfhjezwaMAbQLfcT5xNZc6ZwEXenMeDdheo2q 1m8JbPJOYuvrXJsEHYVXinJjHLRalz3Lx5D+SXdLdFqLmqTyLt9n3AnH2cFveh+a6R4YY vDSihJcenHXAzjofsA2mepF972xcQm67NjKqRO7mPUKfD5uS3Wkrk7LXxXtO+g2tKWhWA bSDbisZQp31THXFJhDKF00HCZVlgna398u8nOM9tkdQXYr97L0CXr5a398GETqcdm9fx2 FvQBHmdUadnG/r9a+HN2gLCrvfEygJzwl0junHCw+KmcGm6rwRorlnV97KcHq33HNZQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796070984; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=iUjI8g1SjgBEXz1gPSkDls0po6ght+dpV+9clfWgavY=; b=dw5HyfVLOoQb7CR6LdMhecLmOkEiwQYH7XXupBQnGVHs0roVbYdGrAKWxMQzPz662w1/ f3o4rf6HUV7qqK7p/URSn8k2g70Um4e4pwFTxrXDU+CSPb9g6l0XF3BfuPFJD1kyHQO6c FqZPm/3gXKKLYOPSLQBoYVxcBz61UprOmsBTT/tHl7Q4KV5uQ8QgndW2CaQlcxhdYRxCT GvvSCFnCTDJduVNVGuHTPX1qEhrw/sCFFIvm6lLMLqe5srcfwBVJ7OQ38q4bzcGntb0W8 XG87WfK3aw8KPYUML2JLhC3HMjvkKfJMVIZsBEl/UcoRy+VeIbLh8Z1HzEvvOdItG9A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=h98rWuE5; arc=none smtp.remote-ip=198.175.65.10 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16854606A32D; Mon, 30 Nov 2026 20:36:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 16854606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=h98rWuE5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796070983; x=1827606983; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=iUjI8g1SjgBEXz1gPSkDls0po6ght+dpV+9clfWgavY=; b=h98rWuE52N8+uTCQg5PUgsGnp0kZq0oWcAr6ec7rt8DIL2pskVyI9U58 p9PiZOIonBFk/rLE8EWo/HAe4yxOunYeDjAzEcwKBZO6F59oRNd73RHWb 5cPaN60KGuG3YGy0uvuYkVd3/d4p2+T8YWwvul9fehmX+5t4XnHk1WEHp WD2Kc2aFsaWhKNws1BFaSkMLrA42hPakOYPPh8COuBOmWbPCqg8Ri2fV5 pJU6r8YPT9tAqcvyn5E1geq8Fpmxo2Jif/sDMtKQ3me0PFVxDT6frkV7H M5CrBAyh4FXKnfOemFPanfsaQCGKsLLb023v5VVx1k/ONO7Aw/40pBsUw Q==; X-CSE-ConnectionGUID: Q2/PSmClTBuHRVrorZgpew== X-CSE-MsgGUID: ROEojaNtQAGMMnGcaCohNA== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4858896" X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="4858896" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 12:36:23 -0800 X-CSE-ConnectionGUID: ilwlhheeSo+N+Af3tT+WjA== X-CSE-MsgGUID: j9zjtHF2Q6WhfrerGX7+XA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="13344863" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by fmviesa006.fm.intel.com with ESMTP; 30 Nov 2026 12:36:19 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xY86i-000000001Ry-41nD; Mon, 30 Nov 2026 20:36:16 +0000 Date: Mon, 30 Nov 2026 21:35:46 +0100 From: kernel test robot To: Fernando Fernandez Mancera , 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 , Neal Cardwell , Kuniyuki Iwashima , Willem de Bruijn , John Fastabend , Jakub Sitnicki , Jiayuan Chen , bpf@vger.kernel.org Subject: Re: [PATCH net-next v4 04/16] tcp: move protocol agnostic TCP functions out of tcp_ipv4.c Message-ID: <20261130212921.KnXCWQHj-lkp@intel.com> References: <20261127171824.27362-5-fmancera@suse.de> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 | 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