From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 626B4259CAF; Mon, 8 Dec 2025 03:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765163091; cv=none; b=dtPYmehCBbK2T8l2cgxZVBXaNEak4XPjemu1dlfJ1SVetaLCDCHVo1vC7fdRAj/Ip1Q9zekdTUDCPFEgOYg017UHLM+qTS+LbOPa6VFITHVjN5b88MtwI7MDVP8YYY+oa70BiR27KAqSlPvSvNZLrCPrSKRi2oNLHU+k4U5QFRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765163091; c=relaxed/simple; bh=VtOK1EBRkJsxGXnW4s7lGPtINpp/sA1eK4PYbFO1fwc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kHjzasycmIi2SE2VpSVoqVr7xRccAgIstYNZUy2llW0JI0su5Cq3snDk9TlxdV//cHOf4mMhoiZ376avmnl1iibfHPhszwqdUFFXZO8hcLOLw+PTGO0qr8J27fZVqi6YlnXY2Z8m9+wvceXjIV3A7vDDXO2XQsgxDDjgbkpMjiA= 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=iowg71T9; arc=none smtp.client-ip=192.198.163.7 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="iowg71T9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1765163090; x=1796699090; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=VtOK1EBRkJsxGXnW4s7lGPtINpp/sA1eK4PYbFO1fwc=; b=iowg71T9YgBNYlp7bw4YTUk3oC8HoZdqgeefR/K7NDLc4lsedMrsbibC LGFZg5SunjrX4SrN4CSRiRj5i27R9NQnMeLql63VKhGvH8vID6QvwVqju B3Mdn/8V4yatys+zm8ePFcFRiSPStMCF6VTwynfEV7wnDwZVQQlaHoEuI 8ADRa0ur8wAs0cym9q4CuyJRfKxH804uFYtr1ykCPpYeQjcVkjvDyG5TW fG5IQNQMwsvDvTRnbqgVxSD2OIWXPAS33hC6q2QCKoIL+xwOdPJ8x2rLx rOqGNvCAeRfjdsPfueNe+ihA2ZdgoB8eXssR5H9onM2/PTBYpMuy2rFrv A==; X-CSE-ConnectionGUID: bY8I9yFQReG6avUWeOkg1A== X-CSE-MsgGUID: S6p+7thgT7i+3RvFEaJkLw== X-IronPort-AV: E=McAfee;i="6800,10657,11635"; a="92581806" X-IronPort-AV: E=Sophos;i="6.20,258,1758610800"; d="scan'208";a="92581806" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2025 19:04:49 -0800 X-CSE-ConnectionGUID: KDECnqanSV+libfVdYMICw== X-CSE-MsgGUID: 4YeACLpgS/WcCJF93mXHLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,258,1758610800"; d="scan'208";a="196091344" Received: from lkp-server01.sh.intel.com (HELO 4664bbef4914) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 07 Dec 2025 19:04:47 -0800 Received: from kbuild by 4664bbef4914 with local (Exim 4.98.2) (envelope-from ) id 1vSRYK-00000000JsT-3nW5; Mon, 08 Dec 2025 03:04:44 +0000 Date: Mon, 8 Dec 2025 11:04:22 +0800 From: kernel test robot To: Dharanitharan R , syzbot+5dd615f890ddada54057@syzkaller.appspotmail.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Dharanitharan R Subject: Re: [PATCH] net: atm: lec: add pre_send validation to avoid uninitialized Message-ID: <202512081042.Zx4NasDJ-lkp@intel.com> References: <20251207041453.8302-1-dharanitharan725@gmail.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251207041453.8302-1-dharanitharan725@gmail.com> Hi Dharanitharan, kernel test robot noticed the following build warnings: [auto build test WARNING on net/main] [also build test WARNING on net-next/main linus/master horms-ipvs/master v6.18 next-20251205] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Dharanitharan-R/net-atm-lec-add-pre_send-validation-to-avoid-uninitialized/20251207-121647 base: net/main patch link: https://lore.kernel.org/r/20251207041453.8302-1-dharanitharan725%40gmail.com patch subject: [PATCH] net: atm: lec: add pre_send validation to avoid uninitialized config: arm64-randconfig-002-20251208 (https://download.01.org/0day-ci/archive/20251208/202512081042.Zx4NasDJ-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251208/202512081042.Zx4NasDJ-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/202512081042.Zx4NasDJ-lkp@intel.com/ All warnings (new ones prefixed by >>): >> net/atm/lec.c:506:2: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] 506 | mesg = (struct atmlec_msg *)skb->data; | ^ net/atm/lec.c:503:4: note: previous statement is here 503 | if (!pskb_may_pull(skb, msg_size)) | ^ 1 warning generated. vim +/if +506 net/atm/lec.c 491 492 static int lec_atm_pre_send(struct atm_vcc *vcc, struct sk_buff *skb) 493 { 494 struct atmlec_msg *mesg; 495 u32 sizeoftlvs; 496 unsigned int msg_size = sizeof(struct atmlec_msg); 497 498 /* Must contain the base message */ 499 if (skb->len < msg_size) 500 return -EINVAL; 501 502 /* Must have at least msg_size bytes in linear data */ 503 if (!pskb_may_pull(skb, msg_size)) 504 return -EINVAL; 505 > 506 mesg = (struct atmlec_msg *)skb->data; 507 sizeoftlvs = mesg->sizeoftlvs; 508 509 /* Validate TLVs if present */ 510 if (sizeoftlvs && !pskb_may_pull(skb, msg_size + sizeoftlvs)) 511 return -EINVAL; 512 513 return 0; 514 } 515 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki