Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3714467rwd; Sat, 10 Jun 2023 13:12:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nHOZxYg/hRSoPfHA+JvK2GoEm+Wijk0HAcFFpzCpuQ7ls4F5s0W0ueN+lb8kTUUxZjgkI X-Received: by 2002:a05:6a00:2d01:b0:65e:1d92:c0cc with SMTP id fa1-20020a056a002d0100b0065e1d92c0ccmr11149880pfb.10.1686427932025; Sat, 10 Jun 2023 13:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686427932; cv=none; d=google.com; s=arc-20160816; b=qkMv+CJxAPR2FqenfwQn3oCBnMk60500cd1fXFDAuh3x9jTzvsvwygcwqRTTx9jxtv i0ahKl0xAxD/dGERuB6GfOrejvj8mih6Qa/QOsZAyypR2NTwsuVM8ITgR9+Xwgp2XJK2 xIUWLQ/Syl2VCniyd3XVO1GzmcdhIToDWhQ2SyuOL/B7bg0ALy43T3QfEtyDRGDwvDm/ /hfJyIuXSZLJcYTYw73FcSVBD2B2m4zY4bUAdjf9IneJRw8c7t72aZB10jM+ge1MVcX4 N16BqDw7+PVKRL6MheL1pyvlws+bwX2wLh47dzT/RZ3tnUgOdVvnawN8CXx7ZGFhXGCi 4I1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=H+F0lCiKpo1r8tCwzOuO9B6UXiS21+c2UEJt8j362KU=; b=QyOofDFxSXzSkX55ybxE0wNRf/KHe+oEmMWkBFTH0N986mPSNg9Ze7/jYdCybCMlNY x6RlFOVLS//oKEOriUxW47XSoSHW1uxAEb0+83CXdWL0/0NwXjgOtF3X7CqGL5RycDEK yC1lFu2j17tB6Lqiyd3ma1PVN6fbBkZr7fpBzsnCqVi8ir21oVtoxNurKww1Xezg/C+O zncvxKtS8H0FvdnYAqglMhQQgDS2cwgR2MdbkE43RBcdUjxA24+aTvqAFFERcFVQA7k4 MNvIVswoHjzDI8rrkm2AwVMJVEKhliiX7WOKnH1qht5rG0pk83z0YAlgdv3m6vBCTSZw y8Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hduayHOB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020aa79582000000b0064f6a52105csi4425711pfj.378.2023.06.10.13.12.00; Sat, 10 Jun 2023 13:12:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hduayHOB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229831AbjFJTj0 (ORCPT + 99 others); Sat, 10 Jun 2023 15:39:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbjFJTjZ (ORCPT ); Sat, 10 Jun 2023 15:39:25 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F54F2733; Sat, 10 Jun 2023 12:39:24 -0700 (PDT) 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="361163529" X-IronPort-AV: E=Sophos;i="6.00,233,1681196400"; d="scan'208";a="361163529" 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230610170743.2510-2-demi@invisiblethingslab.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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