Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.11 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796036169; b=5Sj39+Y7Osf4jo3wq8UVHoATLUR88T+IlOvF0BBjuPFTISfO0+YeUpeNhdVNEw1Pvu4P BWWfrfczyHsxW/2rKPAEdOKIu7G3hmEq4jStsSy221mNY6rW9VCnWeOOMgjExqrtPqdBZ I7X7QpnxVN4500FKkENab1iI2kQb0N7SvZC3624Y7RW6rJdv1cePa4kpr74t5r7ftQBY5 TBh+VlEhZYfV/xQmz2TaXif7UWA9kvalMCJ/qKYFu6G7S1WKusATPeFfn1TMsZf/fLjdF g1QSCfhN6HWPeua4d4X1hpYndhoKM4MnoNNyAMfbA+WCwjC+bO0rLJmSvemSk7hWH5g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796036169; 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=Hm/jHxmL88X4de+aUYOgGIVs46stDmb5A+xgMDH9s3Y=; b=jVhgIbuhq9jUAzeg0Q6SWQ1GyMy08dkfjN9CYePz0l6WR3wbHisZGlGCxjSI+1/8OGzY nTZoa6aR0bwoWEWo4A6nj+lPvpxOr1UarD9/9pmVcuY6aLvzHmj2Z/OSc26yPC9EQliyJ YHHnzOtKAzs4/jcb1iw9xNZ4gzIIngj9iUZoDcSKoFjgrSvWYM6xWBs9q9ypJa7wMnsat ITBXIz3PKfClkh8Q77wQBDyp7nE2a3tcnHkh+Mu/8hPGYZ1jcQ8glbtduxLUJqFL8eRsp 8zl/vMynto/OhOxDDbOrNOj2XINSulFkGoPIx0qTRLm4DHk2N7gPskpamgBbz5YoEzQ== 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=DQ94dYc8; arc=none smtp.remote-ip=198.175.65.11 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 DC41E606A33A; Mon, 30 Nov 2026 10:56:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DC41E606A33A 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=DQ94dYc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796036165; x=1827572165; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Hm/jHxmL88X4de+aUYOgGIVs46stDmb5A+xgMDH9s3Y=; b=DQ94dYc8Y6UP3goKRCB0JaNc9IXEIlQVk1d+YupoWhV0i4Tk1dIJvlVs tnruSMezcV5hvwnPnJ0UfPkFgx79PsvTRPq6kU3eNxDD53gzTGqLM4vDr NomzH8U+0TM6uGCjOv7/GWoRbaZvRqve7/gwuIKXGVEHfhwIUtH7tb3eh mMwEwmoKg3LzTDQI7yI7qSY7bFFyMvHkVi8IApZajukKnJT93mLLOIv03 vMEuU7qhRBS3Hjfda3A890/cj3rVNl7CI8UCyOACHPUaQ1staI4Gfvb2I PomHRo5nVaxd7ktJElad0q61Z/PZvt6RIBkxLGku4OFHcKB2jE3Z+k0PE w==; X-CSE-ConnectionGUID: uAF4gnvPQveA3brin+1KKQ== X-CSE-MsgGUID: JnOkj6nOQ7ilhMfQgVlKsA== X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4749804" X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="4749804" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 02:56:05 -0800 X-CSE-ConnectionGUID: F0WwjLTcQIqJkljH6xppzw== X-CSE-MsgGUID: Cb/LA7k3Q7Cf8HPPAMXN4A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="12933490" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 30 Nov 2026 02:56:01 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xXz37-00000001aYz-3WUS; Mon, 30 Nov 2026 10:55:57 +0000 Date: Mon, 30 Nov 2026 18:55:31 +0800 From: kernel test robot To: Ren Wei , netdev@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, dsahern@kernel.org, idosch@nvidia.com, u9012063@gmail.com, mvohra@vmware.com, matthias.may@westermo.com, vega@nebusec.ai, sashiko-bot@kernel.org, rakukuip@gmail.com, weir@nebusec.ai Subject: Re: [PATCH net 1/1] net: erspan: avoid out-of-bounds reads on short non-IP frames Message-ID: <20261130185021.1198OdiG-lkp@intel.com> References: X-Mailing-List: llvm@lists.linux.dev 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: Hi Ren, kernel test robot noticed the following build errors: [auto build test ERROR on net/main] url: https://github.com/intel-lab-lkp/linux/commits/Ren-Wei/net-erspan-avoid-out-of-bounds-reads-on-short-non-IP-frames/20261130-132241 base: net/main patch link: https://lore.kernel.org/r/c06f54ca06d68861e2b56ffcd25b2cedac04476a.1795833342.git.rakukuip%40gmail.com patch subject: [PATCH net 1/1] net: erspan: avoid out-of-bounds reads on short non-IP frames config: x86_64-buildonly-randconfig-1005-20261130 (https://download.01.org/0day-ci/archive/20261130/20261130185021.1198OdiG-lkp@intel.com/config) compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130185021.1198OdiG-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/20261130185021.1198OdiG-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from net/sched/act_tunnel_key.c:14: >> include/net/erspan.h:211:9: error: call to undeclared function 'pskb_inet_may_pull'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 211 | return pskb_inet_may_pull(skb); | ^ 1 error generated. vim +/pskb_inet_may_pull +211 include/net/erspan.h 175 176 static inline bool erspan_xmit_prepare(struct sk_buff *skb) 177 { 178 __be16 type = skb->protocol; 179 int maclen = ETH_HLEN; 180 int nhlen = 0; 181 182 if (!pskb_may_pull(skb, ETH_HLEN)) 183 return false; 184 185 skb_reset_mac_header(skb); 186 187 if (eth_type_vlan(type)) { 188 skb->mac_len = 0; 189 type = __vlan_get_protocol(skb, type, &maclen); 190 if (!type) 191 return false; 192 193 switch (type) { 194 #if IS_ENABLED(CONFIG_IPV6) 195 case htons(ETH_P_IPV6): 196 nhlen = sizeof(struct ipv6hdr); 197 break; 198 #endif 199 case htons(ETH_P_IP): 200 nhlen = sizeof(struct iphdr); 201 break; 202 } 203 204 if (!pskb_may_pull(skb, maclen + nhlen)) 205 return false; 206 207 skb_set_network_header(skb, maclen); 208 return true; 209 } 210 > 211 return pskb_inet_may_pull(skb); 212 } 213 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki