Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp647101rdf; Fri, 3 Nov 2023 10:37:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/uuBM9MFhtCwcFF6kHNeblTG2/6gC08bctwUQggQlFwq0+76N+fFUQCrNznqMe7GMuTGb X-Received: by 2002:a17:906:5a5f:b0:9d5:ecf9:e6b5 with SMTP id my31-20020a1709065a5f00b009d5ecf9e6b5mr5658015ejc.59.1699033025184; Fri, 03 Nov 2023 10:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699033025; cv=none; d=google.com; s=arc-20160816; b=yxfoHG/ByDHJyAtZqMnjHikJDTkqNWzLvBoZq4z3+hQVBcjJ1eySsk636dApVymlyR 0C9kYATHeBjERb/cXgRR83/L8uIQLAbqFMBZQs96Ahu41h6cFmiwE4HuHRmeW0F69lBb mLBEztRrHG3ohXa17eKdrliOMnDREonsD2XxfHWg2Is/feHuEorj0pgo4VJldOZbgRvj YMOsMvTHiinJTjrvKb5SLJW0FTQiTYJ5fFSu+w+zaCrAP3IV5s94VJLhR6fXN8NIKNKt 0Ll90UYekwhQooX5kIWy9Y6X/HlY1mT1tXZBuBqppiRRhSbKJEDzq2HfiwhZFN55+vhJ 1MuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=QXzqdSzS9eLMZHxe30htsph7/H7G4HbVTH5m49fdH+w=; fh=m0I1FRSGlyKR3JAkM0POJ80hZc52v04M2qFVMIK0vMw=; b=qVV09hEoonytpw9BssG3QsN4GEdVoX+T9nd226tyARxGwDMVDz7E0uWKqOmKdRm/K3 dazwNvHUyvotGQham2b4QRGEWz7IXevOsDIUaq51/f7G3wdqUzB1+osB0bmF6pnOJExr ZDVZwEf76eV9mCfvEcjzso4tX166YFapgZ8wIWdNk6IVV4xbdU/3EOkWVxEmW2xOa3cc x/qdNPRFllMwr4cyGu3C368LemA5EkJOU0HNrxIfb71yoOmdsx4z1MMzj/+bba2DXVcy +5PEO2JPiMBUIHIS2V8g2p5CEJuJG9N6VGcvchOo73WO93JPwQ7+TIUNWtANW+Ni4LCO +cSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UbGE7xfw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z10-20020a17090674ca00b009b282f14575si1155778ejl.395.2023.11.03.10.37.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 10:37:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UbGE7xfw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C00B3830D12A; Fri, 3 Nov 2023 10:36:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229450AbjKCRgc (ORCPT + 99 others); Fri, 3 Nov 2023 13:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbjKCRga (ORCPT ); Fri, 3 Nov 2023 13:36:30 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61C73D44 for ; Fri, 3 Nov 2023 10:36: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=1699032984; x=1730568984; h=date:from:to:cc:subject:message-id:mime-version; bh=8nJxPpdWo23mUiPSbv26x2/L9tiHfBG+mDDAc7c42Bc=; b=UbGE7xfwCsYk8yZxfzL0qRNItq1tm+IMQbd7UWtSW/UdP9c9WfCduVsr KYKNBMp+JoY9KeHAaeY/sZWPDbdgAZnRlrHPEV4GxXvDKK4mSbbYbJ4oZ Kss2m2uEbTXmfLIli2GH0g1ZtB1rU075HwditGZdlXea4atIloA7/vllH Obo148aD8sIZO5nBp9p/XRsyb2w3SyXCZLqpZItKxM1iMDXOeVk6j/IsT 1fCTiWDkGe5Vnq9ksqHdbSOBXvgsd/kjP/ARC6OYuLVGY5XebS7q0eA0h i8a6fge9YIgXUV8qQjSeN2LaLkhgg5Qq/AwHzmU/2/JfCJchDoFyf4boA g==; X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="387879592" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="387879592" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 10:36:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="738138407" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="738138407" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 03 Nov 2023 10:36:10 -0700 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1qyy5X-0002lj-2w; Fri, 03 Nov 2023 17:36:07 +0000 Date: Sat, 4 Nov 2023 01:36:05 +0800 From: kernel test robot To: Shannon Nelson Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, "Michael S. Tsirkin" Subject: drivers/vdpa/pds/debugfs.c:269:49: warning: '%02d' directive output may be truncated writing between 2 and 11 bytes into a region of size 6 Message-ID: <202311040109.RfgJoE7L-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 03 Nov 2023 10:36:58 -0700 (PDT) tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8f6f76a6a29f36d2f3e4510d0bde5046672f6924 commit: 9a8864d2a8dc5c49acd66284fd382871d99b5db8 pds_vdpa: pds_vdps.rst and Kconfig date: 4 months ago config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20231104/202311040109.RfgJoE7L-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231104/202311040109.RfgJoE7L-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/202311040109.RfgJoE7L-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/vdpa/pds/debugfs.c: In function 'pds_vdpa_debugfs_add_vdpadev': >> drivers/vdpa/pds/debugfs.c:269:49: warning: '%02d' directive output may be truncated writing between 2 and 11 bytes into a region of size 6 [-Wformat-truncation=] 269 | snprintf(name, sizeof(name), "vq%02d", i); | ^~~~ drivers/vdpa/pds/debugfs.c:269:46: note: directive argument in the range [-2147483641, 254] 269 | snprintf(name, sizeof(name), "vq%02d", i); | ^~~~~~~~ drivers/vdpa/pds/debugfs.c:269:17: note: 'snprintf' output between 5 and 14 bytes into a destination of size 8 269 | snprintf(name, sizeof(name), "vq%02d", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +269 drivers/vdpa/pds/debugfs.c 151cc834f3ddafe Shannon Nelson 2023-05-19 259 151cc834f3ddafe Shannon Nelson 2023-05-19 260 void pds_vdpa_debugfs_add_vdpadev(struct pds_vdpa_aux *vdpa_aux) 151cc834f3ddafe Shannon Nelson 2023-05-19 261 { 151cc834f3ddafe Shannon Nelson 2023-05-19 262 int i; 151cc834f3ddafe Shannon Nelson 2023-05-19 263 151cc834f3ddafe Shannon Nelson 2023-05-19 264 debugfs_create_file("config", 0400, vdpa_aux->dentry, vdpa_aux->pdsv, &config_fops); 151cc834f3ddafe Shannon Nelson 2023-05-19 265 151cc834f3ddafe Shannon Nelson 2023-05-19 266 for (i = 0; i < vdpa_aux->pdsv->num_vqs; i++) { 151cc834f3ddafe Shannon Nelson 2023-05-19 267 char name[8]; 151cc834f3ddafe Shannon Nelson 2023-05-19 268 151cc834f3ddafe Shannon Nelson 2023-05-19 @269 snprintf(name, sizeof(name), "vq%02d", i); 151cc834f3ddafe Shannon Nelson 2023-05-19 270 debugfs_create_file(name, 0400, vdpa_aux->dentry, 151cc834f3ddafe Shannon Nelson 2023-05-19 271 &vdpa_aux->pdsv->vqs[i], &vq_fops); 151cc834f3ddafe Shannon Nelson 2023-05-19 272 } 151cc834f3ddafe Shannon Nelson 2023-05-19 273 } 151cc834f3ddafe Shannon Nelson 2023-05-19 274 :::::: The code at line 269 was first introduced by commit :::::: 151cc834f3ddafec869269fe48036460d920d08a pds_vdpa: add support for vdpa and vdpamgmt interfaces :::::: TO: Shannon Nelson :::::: CC: Michael S. Tsirkin -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki