From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 489D8420468 for ; Fri, 11 Sep 2026 10:16:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789121789; cv=none; b=Mu6sDLZwD7Wb6HdTteMReTpcYYSnZ/npopChn/4T2oZZ+wrQNYodb5whbeeVCQxHtM1uabetwjCJdK26mkA+OUHQflhmQQwPlHpWn91rvk4POuqDLuZ55XO3XA6tnLiFrV6yXBG8V52utcm/L7l09xAm2pKteqrAHZC+5je6LnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789121789; c=relaxed/simple; bh=ZZ6IE4Hyuw1bxUiqQh7s7gHzXpS27am1csMeUMY3DYE=; h=Date:From:To:Cc:Subject:Message-ID; b=RsjwJAl0s9laGgaE+LvTzzxW6xcXlDoUlOnFygzkdrSz7sszpxQkE0O0gTRBQ7OnVyj6W6Ph11bMPnlXgDeE/BxIuC9wvGXZowcTlchwb6Op7b7AL8k0G1C1zw+6mixjlJhlyaqO+UKe3g/T0pQfOkruQXmuZohr/RxlW/fUzvY= 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=RLkC0yHp; arc=none smtp.client-ip=192.198.163.14 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="RLkC0yHp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789121783; x=1820657783; h=date:from:to:cc:subject:message-id; bh=ZZ6IE4Hyuw1bxUiqQh7s7gHzXpS27am1csMeUMY3DYE=; b=RLkC0yHpbxB432EniS8r3PxmNHzGztw28N+r4MZ8LkPmkKZaCv881gfg W74uJHpkAMjz1M0Ku8bH+zD9lfykv4HIGn8JZ8NKiCyTT5BBtX1nUpLAi 57XEwgqhPr515uXBGw9/uPIG5Rnzfjj5o2kDZlKfQvmU+5jerPc197Z3+ DJ7cR/BjN6vIVASM2f+GKL4jV1tV/jDkPRFXUYZZh8U+SQwjOQkuR/V6S FSvpdFSb17qajYTE2LCNmvrvtJqakeS/YtDvDObvg2jCx9m2eU25k8/HI ul2QPegUglO6F3tGdiivCypds4GlFMF+gu5gv/0X7Bln4WCZcibEERWtb Q==; X-CSE-ConnectionGUID: RtRIUCsTQvGMbJzyTPUzAw== X-CSE-MsgGUID: HM0gsatFQ1Ck+VoehiHt6A== X-IronPort-AV: E=McAfee;i="6800,10657,11901"; a="89597615" X-IronPort-AV: E=Sophos;i="6.27,97,1787036400"; d="scan'208";a="89597615" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2026 03:16:18 -0700 X-CSE-ConnectionGUID: gMP6qYelRM6exJRwjgOxCw== X-CSE-MsgGUID: xIuJdJNGQpunGkQwrJdskQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,97,1787036400"; d="scan'208";a="271404705" Received: from igk-lkp-server01.igk.intel.com (HELO 2232cf45ba3c) ([10.211.93.152]) by orviesa008.jf.intel.com with ESMTP; 11 Sep 2026 03:16:18 -0700 Received: from kbuild by 2232cf45ba3c with local (Exim 4.98.2) (envelope-from ) id 1x4yIp-000000000lR-1wmT; Fri, 11 Sep 2026 10:16:15 +0000 Date: Fri, 11 Sep 2026 12:16:08 +0200 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com, Dan Carpenter Subject: include/net/libeth/xdp.h:1315 libeth_xdp_process_buff() error: we previously assumed 'xdp->data' could be null (see line 1310) Message-ID: <202609111209.kaJohpBN-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev CC: linux-kernel@vger.kernel.org CC: Tony Nguyen CC: Alexander Lobakin CC: Jacob Keller tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 08df884136f1c1197bab2a27814404fd329d9aac commit: 93f53db9f9dc4a16b40ecd18e6d338ad57e4b670 ice: switch to Page Pool date: 11 months ago :::::: branch date: 12 hours ago :::::: commit date: 11 months ago config: i386-randconfig-r071-20260911 (https://download.01.org/0day-ci/archive/20260911/202609111209.kaJohpBN-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 smatch: v0.5.0-9187-g5189e3fb 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 | Fixes: 93f53db9f9dc ("ice: switch to Page Pool") | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202609111209.kaJohpBN-lkp@intel.com/ smatch warnings: include/net/libeth/xdp.h:1315 libeth_xdp_process_buff() error: we previously assumed 'xdp->data' could be null (see line 1310) vim +1315 include/net/libeth/xdp.h 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1288 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1289 /** 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1290 * libeth_xdp_process_buff - attach Rx buffer to &libeth_xdp_buff 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1291 * @xdp: XDP buffer to attach the Rx buffer to 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1292 * @fqe: Rx buffer to process 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1293 * @len: received data length from the descriptor 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1294 * 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1295 * If the XDP buffer is empty, attaches the Rx buffer as head and initializes 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1296 * the required fields. Otherwise, attaches the buffer as a frag. 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1297 * Already performs DMA sync-for-CPU and frame start prefetch 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1298 * (for head buffers only). 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1299 * 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1300 * Return: true on success, false if the descriptor must be skipped (empty or 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1301 * no space for a new frag). 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1302 */ 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1303 static inline bool libeth_xdp_process_buff(struct libeth_xdp_buff *xdp, 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1304 const struct libeth_fqe *fqe, 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1305 u32 len) 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1306 { 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1307 if (!libeth_rx_sync_for_cpu(fqe, len)) 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1308 return false; 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1309 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 @1310 if (xdp->data) 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1311 return libeth_xdp_buff_add_frag(xdp, fqe, len); 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1312 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1313 libeth_xdp_prepare_buff(xdp, fqe, len); 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1314 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 @1315 prefetch(xdp->data); 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1316 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1317 return true; 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1318 } 3ef2b0192e8ba1 Alexander Lobakin 2025-06-12 1319 :::::: The code at line 1315 was first introduced by commit :::::: 3ef2b0192e8ba133f597919632bd9cf196076f0b libeth: xdp: add helpers for preparing/processing &libeth_xdp_buff :::::: TO: Alexander Lobakin :::::: CC: Tony Nguyen -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki