From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 54066311964; Sun, 1 Mar 2026 19:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772392415; cv=none; b=jN04uejqfV9pF7rrhjYMvJy+hxdQm3RH9HLfz1cAXLGA4W1/I0zp1kKRHg2eqabzFNTNE5WiXLe0Cprx6jtB5YtXtiigRuwjzcENpR/XRX8veT6c4nCTt3iAnrFO8OMwJmlkNEDp4jzAm+fzUXgxcAI55y+X1QkiSbK/BcXryoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772392415; c=relaxed/simple; bh=U2dmzszifVLMDnpbxq5uUMWEfBsKseLhW0UMQYuPbi4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=suIrL4yLNJing5S5E1XhZlQbY3G35d1u7PlU9qhZfYUeLCmLXx1S0gfQQYUK1ShpgUmDA+yXISwkry8WOk7jF00Lg21SonXNgNrnqo0y+CC7rRoISNco+eq9FJISpGY/bVL/204aVFYeQsC0dWWc03CqOTs3/gbL6rSkCt0zA9Q= 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=I3dY3UaO; arc=none smtp.client-ip=192.198.163.15 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="I3dY3UaO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1772392412; x=1803928412; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=U2dmzszifVLMDnpbxq5uUMWEfBsKseLhW0UMQYuPbi4=; b=I3dY3UaO2EHFmzTrTUd2Rnv1baZxZA8faIKWz0SisNiBKcOP6FSYai2K yZoaBbwKGwkd5gNm+Z+DJ4Bf+P/tdq/oNriZ6InURYHfQVETEzVb43Vu7 A4zuElBQzx0fLHpHb0m/c0Qkd973etktR884T/gG+ZEiYOHnmE82aULCd QPVaRf8jljxy3zyIZV41XPdaUq6ani4EZ5RQf48Xfk9NVZz6P+CBkb7KP EbnNSrthtocLsO/O5euZjijFH0NH5/Drk/PpQ6lYm6p9R3V0K/8w0m+x0 NbcxOJiTgmrr9wqYd9PYNi3vf9+/0+8yW72eZhRZd9QCuxySjIj8EHogg A==; X-CSE-ConnectionGUID: crtjSPjvTjuD2whZiQ28YQ== X-CSE-MsgGUID: +pFyubsyTk+Fk2hJBeEwjA== X-IronPort-AV: E=McAfee;i="6800,10657,11716"; a="73518089" X-IronPort-AV: E=Sophos;i="6.21,318,1763452800"; d="scan'208";a="73518089" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2026 11:13:31 -0800 X-CSE-ConnectionGUID: dFhpeVUwTvCW46WxNCcpXw== X-CSE-MsgGUID: Mj7qydfATWStLkkJvhLGZg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,318,1763452800"; d="scan'208";a="255273099" Received: from lkp-server01.sh.intel.com (HELO 59784f1c7b2a) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 01 Mar 2026 11:13:29 -0800 Received: from kbuild by 59784f1c7b2a with local (Exim 4.98.2) (envelope-from ) id 1vwmEI-000000001g1-2MeQ; Sun, 01 Mar 2026 19:13:26 +0000 Date: Mon, 2 Mar 2026 03:12:48 +0800 From: kernel test robot To: Xingjing Deng , nathan@kernel.org, nsc@kernel.org, rdunlap@infradead.org, masahiroy@kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Xingjing Deng Subject: Re: [PATCH v2] kconfig: fix potential NULL pointer dereference in conf_askvalue() Message-ID: <202603020347.rhUXW6ql-lkp@intel.com> References: <20260301053035.1950087-1-micro6947@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20260301053035.1950087-1-micro6947@gmail.com> Hi Xingjing, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on v7.0-rc1 next-20260227] [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/Xingjing-Deng/kconfig-fix-potential-NULL-pointer-dereference-in-conf_askvalue/20260301-133159 base: linus/master patch link: https://lore.kernel.org/r/20260301053035.1950087-1-micro6947%40gmail.com patch subject: [PATCH v2] kconfig: fix potential NULL pointer dereference in conf_askvalue() config: x86_64-rhel-9.4 (attached as .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/20260302/202603020347.rhUXW6ql-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/202603020347.rhUXW6ql-lkp@intel.com/ All errors (new ones prefixed by >>): scripts/kconfig/conf.c: In function 'conf_askvalue': >> scripts/kconfig/conf.c:300:35: error: expected ')' before ':' token 300 | printf("%s\n", def :? ""); | ~ ^~ | ) scripts/kconfig/conf.c:308:43: error: expected ')' before ':' token 308 | printf("%s\n", def :? ""); | ~ ^~ | ) make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/conf.o] Error 1 make[3]: Target 'oldconfig' not remade because of errors. make[2]: *** [Makefile:746: oldconfig] Error 2 make[1]: *** [Makefile:248: __sub-make] Error 2 make[1]: Target 'oldconfig' not remade because of errors. make: *** [Makefile:248: __sub-make] Error 2 make: Target 'oldconfig' not remade because of errors. -- scripts/kconfig/conf.c: In function 'conf_askvalue': >> scripts/kconfig/conf.c:300:35: error: expected ')' before ':' token 300 | printf("%s\n", def :? ""); | ~ ^~ | ) scripts/kconfig/conf.c:308:43: error: expected ')' before ':' token 308 | printf("%s\n", def :? ""); | ~ ^~ | ) make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/conf.o] Error 1 make[3]: Target 'olddefconfig' not remade because of errors. make[2]: *** [Makefile:746: olddefconfig] Error 2 make[1]: *** [Makefile:248: __sub-make] Error 2 make[1]: Target 'olddefconfig' not remade because of errors. make: *** [Makefile:248: __sub-make] Error 2 make: Target 'olddefconfig' not remade because of errors. vim +300 scripts/kconfig/conf.c 290 291 static int conf_askvalue(struct symbol *sym, const char *def) 292 { 293 if (!sym_has_value(sym)) 294 printf("(NEW) "); 295 296 line[0] = '\n'; 297 line[1] = 0; 298 299 if (!sym_is_changeable(sym)) { > 300 printf("%s\n", def :? ""); 301 return 0; 302 } 303 304 switch (input_mode) { 305 case oldconfig: 306 case syncconfig: 307 if (sym_has_value(sym)) { 308 printf("%s\n", def :? ""); 309 return 0; 310 } 311 /* fall through */ 312 default: 313 fflush(stdout); 314 xfgets(line, sizeof(line), stdin); 315 break; 316 } 317 318 return 1; 319 } 320 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki