From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 42A4CC8F6; Sat, 10 Jun 2023 19:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686425964; x=1717961964; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ufJG5h/aowefg1btQn3CbK4pVsN3453BNzPIbovB+38=; b=hduayHOBr0pRn4ecboyVMhC+aoF9aYpdpZOp9wYkJoHAUWrRdWzEZ9HU tzteEsFXNpf8GfXmbuxKxc5KcFwMG2BEXKAuAS+TXHOSIXZp7L4FZvGZe Yq2IjkA7LkQREd0D32/MpskZpPoAJa+yIxS/e56+PUzOqISR73w309efS ho7zBZfP4nuOp0dNKkGlXjOXFtB6MBE1yibUFjsfpcj7jKLNz1yF8xMfS 2Ik/E4IATge3/Yiwlu3ZQGrWCMJy6xZUrVwtks/uH6rG69m8uvRtMJ+wn uQypIoj4gX6MXK4y8QvtgmDEwuc/2+kVHCeMkFdFxJczfB4NVYQlf1f5z A==; X-IronPort-AV: E=McAfee;i="6600,9927,10737"; a="361163530" X-IronPort-AV: E=Sophos;i="6.00,233,1681196400"; d="scan'208";a="361163530" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2023 12:39:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10737"; a="713885680" X-IronPort-AV: E=Sophos;i="6.00,233,1681196400"; d="scan'208";a="713885680" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 10 Jun 2023 12:39:18 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q84Qg-000AO6-09; Sat, 10 Jun 2023 19:39:18 +0000 Date: Sun, 11 Jun 2023 03:38:43 +0800 From: kernel test robot To: Demi Marie Obenour , Hans de Goede , Mauro Carvalho Chehab , Sakari Ailus , Greg Kroah-Hartman , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Lee Jones , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes Cc: oe-kbuild-all@lists.linux.dev, linux-media@vger.kernel.org, Demi Marie Obenour , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Subject: Re: [PATCH v2 1/3] vsscanf(): Integer overflow is a conversion failure Message-ID: <202306110319.q5StyX6B-lkp@intel.com> References: <20230610170743.2510-2-demi@invisiblethingslab.com> Precedence: bulk X-Mailing-List: linux-staging@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: <20230610170743.2510-2-demi@invisiblethingslab.com> Hi Demi, kernel test robot noticed the following build errors: [auto build test ERROR on media-tree/master] [also build test ERROR on lee-mfd/for-mfd-next xen-tip/linux-next linus/master lee-mfd/for-mfd-fixes v6.4-rc5 next-20230609] [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/Demi-Marie-Obenour/vsscanf-Integer-overflow-is-a-conversion-failure/20230611-010926 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/20230610170743.2510-2-demi%40invisiblethingslab.com patch subject: [PATCH v2 1/3] vsscanf(): Integer overflow is a conversion failure config: arc-randconfig-r033-20230611 (https://download.01.org/0day-ci/archive/20230611/202306110319.q5StyX6B-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 12.3.0 reproduce (this is a W=1 build): mkdir -p ~/bin wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add media-tree git://linuxtv.org/media_tree.git git fetch media-tree master git checkout media-tree/master b4 shazam https://lore.kernel.org/r/20230610170743.2510-2-demi@invisiblethingslab.com # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash 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/202306110319.q5StyX6B-lkp@intel.com/ All errors (new ones prefixed by >>): lib/vsprintf.c: In function 'simple_strtoll': >> lib/vsprintf.c:163:16: error: too few arguments to function 'simple_strntoll' 163 | return simple_strntoll(cp, INT_MAX, endp, base); | ^~~~~~~~~~~~~~~ lib/vsprintf.c:134:18: note: declared here 134 | static long long simple_strntoll(const char *cp, size_t max_chars, char **endp, | ^~~~~~~~~~~~~~~ lib/vsprintf.c: In function 'va_format': lib/vsprintf.c:1687:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 1687 | buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va); | ^~~ lib/vsprintf.c: In function 'simple_strtoll': lib/vsprintf.c:164:1: error: control reaches end of non-void function [-Werror=return-type] 164 | } | ^ cc1: some warnings being treated as errors vim +/simple_strntoll +163 lib/vsprintf.c 900fdc4573766d Richard Fitzgerald 2021-05-14 152 ^1da177e4c3f41 Linus Torvalds 2005-04-16 153 /** ^1da177e4c3f41 Linus Torvalds 2005-04-16 154 * simple_strtoll - convert a string to a signed long long ^1da177e4c3f41 Linus Torvalds 2005-04-16 155 * @cp: The start of the string ^1da177e4c3f41 Linus Torvalds 2005-04-16 156 * @endp: A pointer to the end of the parsed string will be placed here ^1da177e4c3f41 Linus Torvalds 2005-04-16 157 * @base: The number base to use 462e471107624f Eldad Zack 2012-12-17 158 * e8cc2b97ca5aa1 Andy Shevchenko 2020-02-21 159 * This function has caveats. Please use kstrtoll instead. ^1da177e4c3f41 Linus Torvalds 2005-04-16 160 */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 161 long long simple_strtoll(const char *cp, char **endp, unsigned int base) ^1da177e4c3f41 Linus Torvalds 2005-04-16 162 { 900fdc4573766d Richard Fitzgerald 2021-05-14 @163 return simple_strntoll(cp, INT_MAX, endp, base); ^1da177e4c3f41 Linus Torvalds 2005-04-16 164 } 98d5ce0d004466 Hans Verkuil 2010-04-23 165 EXPORT_SYMBOL(simple_strtoll); ^1da177e4c3f41 Linus Torvalds 2005-04-16 166 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki