From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A553F37997A; Mon, 9 Feb 2026 13:55:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770645356; cv=none; b=HHZ/z0w7H2Uw3VFDjbQdJ1DOpgZ8r4/P4HLgpNNCNCr2aHP+KTy7EfG1nNS0zDxejv29HKxbN702LIsGHSb0357yxtWrGKg5fBD0F0HkGlo3vdY+jcwmJ0+6velAS+sOBOt/zC814HOTvySqxoK7i4GFZscsNchcU1NxTEUarUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770645356; c=relaxed/simple; bh=8gsKrKfHzg5IhU75x8V2XqMYKKTj3V+aC4HJxoeX8nw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IFnce39ZbAfX69b3I8K6miPordRJyBJ2xfTqefhYaiMbdDv7IhsJ5qcxU8irrzc+9gDFSh2X8umTiv+TJ/LhKWNWGHLrpLkrG+UeewecMsW2k3oZ7oUmYX7WHEIyJLdnOpNCCC3uskVH9D7M+jhJ3cKwa+k4MSKGej3i1tKtUpg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=LLKiYYXX; arc=none smtp.client-ip=198.175.65.16 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.b="LLKiYYXX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770645356; x=1802181356; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8gsKrKfHzg5IhU75x8V2XqMYKKTj3V+aC4HJxoeX8nw=; b=LLKiYYXXjrp2GG89Jzq4bsgfOTB3k+vvkTEmQmmNi1HHED95pwD2k9Ch xSMOFzV3gBifk7Su8vvbJ/6PLhFSu+P9MqmLsr42i/JipFomSae6G1K7r KOudqYSKMJ4P2l6CPbz0z4oA/qaRAIbzk/wwAUuj/ZL/olrqJ5yU2lAvL 9wuK7mNttuk9eNViTlBxcchH9zP/0X+Pv8zbUYBEkQzWxgqAb36JxgBiN Ez1Wp261bGOZw7OiVHsRPl5knTOJGvY7T47q60oysRG3jqpLNs4Z3Ydz8 ZyKY5ZnFVMlO7raOSndGvqOiPXjUkjlxFyR+JbOA0oOc4M1TXiaRUzFxX A==; X-CSE-ConnectionGUID: Vm5omjltT6iMU8cYz7Z17Q== X-CSE-MsgGUID: aiPePlLoRBe/eOGwRARxSA== X-IronPort-AV: E=McAfee;i="6800,10657,11696"; a="71937710" X-IronPort-AV: E=Sophos;i="6.21,282,1763452800"; d="scan'208";a="71937710" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2026 05:55:56 -0800 X-CSE-ConnectionGUID: YCgsTqlTQdW9ogsWCrm0+A== X-CSE-MsgGUID: gvgRjmM0S8GJaxmUZrRvGg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,282,1763452800"; d="scan'208";a="211417610" Received: from igk-lkp-server01.igk.intel.com (HELO e5404a91d123) ([10.211.93.152]) by orviesa009.jf.intel.com with ESMTP; 09 Feb 2026 05:55:52 -0800 Received: from kbuild by e5404a91d123 with local (Exim 4.98.2) (envelope-from ) id 1vpRjx-000000000FV-1Wc1; Mon, 09 Feb 2026 13:55:49 +0000 Date: Mon, 9 Feb 2026 14:55:33 +0100 From: kernel test robot To: Jie Zhang , netdev@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, jzhang918@gmail.com, jie.zhang@analog.com, horms@kernel.org, Jacob Keller , Andrew Lunn , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , "Russell King (Oracle)" , Maxime Chevallier , Vladimir Oltean , Jose Abreu , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v2] net: stmmac: fix oops when split header is enabled Message-ID: <202602091406.tg5t31a5-lkp@intel.com> References: <20260206195643.11333-1-jie.zhang@analog.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260206195643.11333-1-jie.zhang@analog.com> Hi Jie, kernel test robot noticed the following build errors: [auto build test ERROR on net/main] url: https://github.com/intel-lab-lkp/linux/commits/Jie-Zhang/net-stmmac-fix-oops-when-split-header-is-enabled/20260207-035916 base: net/main patch link: https://lore.kernel.org/r/20260206195643.11333-1-jie.zhang%40analog.com patch subject: [PATCH net v2] net: stmmac: fix oops when split header is enabled config: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20260209/202602091406.tg5t31a5-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260209/202602091406.tg5t31a5-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/202602091406.tg5t31a5-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function 'stmmac_rx_buf2_len': >> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5041:24: error: 'struct plat_stmmacenet_data' has no member named 'has_gmac4' 5041 | if (!priv->plat->has_gmac4 && (status & rx_not_ls)) | ^~ vim +5041 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 5014 5015 static unsigned int stmmac_rx_buf2_len(struct stmmac_priv *priv, 5016 struct dma_desc *p, 5017 int status, unsigned int len) 5018 { 5019 int coe = priv->hw->rx_csum; 5020 unsigned int plen = 0; 5021 5022 /* Not split header, buffer is not available */ 5023 if (!priv->sph_active) 5024 return 0; 5025 5026 /* For GMAC4, when split header is enabled, in some rare cases, the 5027 * hardware does not fill buf2 of the first descriptor with payload. 5028 * Thus we cannot assume buf2 is always fully filled if it is not 5029 * the last descriptor. Otherwise, the length of buf2 of the second 5030 * descriptor will be calculated wrong and cause an oops. 5031 * 5032 * If this is the last descriptor, 'plen' is the length of the 5033 * received packet that was transferred to system memory. 5034 * Otherwise, it is the accumulated number of bytes that have been 5035 * transferred for the current packet. 5036 * 5037 * Thus 'plen - len' always gives the correct length of buf2. 5038 */ 5039 5040 /* Not GMAC4 and not last descriptor */ > 5041 if (!priv->plat->has_gmac4 && (status & rx_not_ls)) 5042 return priv->dma_conf.dma_buf_sz; 5043 5044 /* GMAC4 or last descriptor */ 5045 plen = stmmac_get_rx_frame_len(priv, p, coe); 5046 5047 return plen - len; 5048 } 5049 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki