Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2326824rdb; Sun, 3 Dec 2023 11:56:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2G5CFfOVnv0SnLWXW/0/nmDXa+vAn5lx7MPxwSW5uodVb1ZPutOPBcyZMICu7GuPNQjWN X-Received: by 2002:a05:6830:39e9:b0:6d8:74e2:8a48 with SMTP id bt41-20020a05683039e900b006d874e28a48mr2887358otb.39.1701633394770; Sun, 03 Dec 2023 11:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701633394; cv=none; d=google.com; s=arc-20160816; b=BYzpcK52xVg76PJLAA7SsnwGuKfWsAH9ktSmZgbVyPAmClQCZkptTscl8eVdXGoftG xPnFelqiYCH17TEsUVVuG0R7w40Wz9/Ox8bN2ZqMDga4pEqpntBFdrF+90tmfSN4xvHJ DutRii0FqDTM2FBw0OZl+/mfwreDEOPn5CyBSdGks9qDi4kXjMWFhL/TVzH3TFrPIYRI OFsF+/LTPhQZV+ub5UMHh/mWWGuqSOliwYb5ZvqbnfoG3mx2aZtgQQ306HdqIOdW6hLz WbdZYmZeJohVt48C922nxeiNrogPPAScH2eonPX+735H42y3/6f2mif4L5Z9WwHAKoDs T6MA== 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=o7eM1nt8PbMUL3LevFCYj1ZcICdwHnysJbBo++RA9hY=; fh=2ROO4qOavuQKkjYdV5vCgk+TMEHHLObA+naXUq5MKrM=; b=v22HvkZ9xVtknViZvo1gKE9ENonnk+PUVlvSEwQT0BGKRoDxzZzvXoS9t25u3M7oCG sWjAahA1RLw7xUWnxNclIkHBTsXrC5WRtCjEchJtagi9Dvk2OoqQQhRwwwTRts/kfqJH dFGVgJ/ZDb32vjMhxyM9A/h4yl66ZqdtES26MRXnTUbwbPlceUdy46nSK9WoB+1tvEuE 3BUQ2DO2kRDMcqYF5wSFfpVw0h2R2WAKF4OTIwQCcSHMgnb3wHvYtYk+HJFrCFX90/m2 cf+8kZfuTgDKKzUpclwhbSiTIPnuVsDuBPNdZ2BK7hGwR2b9/J6B9JDV0NFrbUR+roMC yG3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CxJMm4ox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id 69-20020a630148000000b005acb3613ba9si6434716pgb.432.2023.12.03.11.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 11:56:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CxJMm4ox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 5BA19806D801; Sun, 3 Dec 2023 11:56:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231309AbjLCT4I (ORCPT + 99 others); Sun, 3 Dec 2023 14:56:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCT4G (ORCPT ); Sun, 3 Dec 2023 14:56:06 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12D00A0 for ; Sun, 3 Dec 2023 11:56:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701633373; x=1733169373; h=date:from:to:cc:subject:message-id:mime-version; bh=aeqNMSuaPmA7FpnOx2KM9BPxQPupevKwYbUxsDXfbbg=; b=CxJMm4oxQlziVSDGLRkawxpdT7Zejjtpeo2TKHP4Zkye8TqJFRMpLmcw paKkepzCLuO5T6wJFz8hRzrIZWJWRyUoo3tyxZg+RJpNu3slxKyEdNe3C r0ujvl4CojbmrDT/Dvmi4cg4IzmMtR+7DbQk0emnhoHr0mlG/RysfEFPL uBF16+dNedM8BD1UKFEhVFRPyNDKhRJD76yjuufznTDnLBh5RFxEAnVkY Ull9pCoPQzd0Oh+g1QMU0wJP+ydbLd7J81ubocB6s7zgGASrKtVWAy543 eNHHtYBwI9o4WcJRjI5bSmxT4TuYFMgrJBUHxOAHSsX7P6Em98bZ6V9Be A==; X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="373090510" X-IronPort-AV: E=Sophos;i="6.04,248,1695711600"; d="scan'208";a="373090510" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2023 11:56:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="746605019" X-IronPort-AV: E=Sophos;i="6.04,248,1695711600"; d="scan'208";a="746605019" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 03 Dec 2023 11:56:09 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r9sZT-00072a-0d; Sun, 03 Dec 2023 19:56:07 +0000 Date: Mon, 4 Dec 2023 03:55:46 +0800 From: kernel test robot To: Juergen Gross Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, David Vrabel , Paul Durrant Subject: drivers/xen/manage.c:337:60: warning: '%s' directive output may be truncated writing up to 95 bytes into a region of size 12 Message-ID: <202312040309.sACmAKoo-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.9 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 morse.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 (morse.vger.email [0.0.0.0]); Sun, 03 Dec 2023 11:56:31 -0800 (PST) Hi Juergen, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 33cc938e65a98f1d29d0a18403dbbee050dcad9a commit: 44b3c7af02ca2701b6b90ee30c9d1d9c3ae07653 xenbus: advertise control feature flags date: 7 years ago config: x86_64-randconfig-015-20231009 (https://download.01.org/0day-ci/archive/20231204/202312040309.sACmAKoo-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231204/202312040309.sACmAKoo-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/202312040309.sACmAKoo-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/kobject.h:21, from include/linux/device.h:17, from include/linux/node.h:17, from include/linux/cpu.h:16, from include/linux/stop_machine.h:4, from drivers/xen/manage.c:12: include/linux/sysfs.h: In function 'sysfs_get_dirent': include/linux/sysfs.h:517:44: warning: pointer targets in passing argument 2 of 'kernfs_find_and_get' differ in signedness [-Wpointer-sign] 517 | return kernfs_find_and_get(parent, name); | ^~~~ | | | const unsigned char * In file included from include/linux/sysfs.h:15: include/linux/kernfs.h:440:57: note: expected 'const char *' but argument is of type 'const unsigned char *' 440 | kernfs_find_and_get(struct kernfs_node *kn, const char *name) | ~~~~~~~~~~~~^~~~ drivers/xen/manage.c: In function 'shutdown_event': >> drivers/xen/manage.c:337:60: warning: '%s' directive output may be truncated writing up to 95 bytes into a region of size 12 [-Wformat-truncation=] 337 | snprintf(node, FEATURE_PATH_SIZE, "feature-%s", | ^~ In function 'setup_shutdown_watcher', inlined from 'shutdown_event' at drivers/xen/manage.c:349:2: drivers/xen/manage.c:337:17: note: 'snprintf' output between 9 and 104 bytes into a destination of size 20 337 | snprintf(node, FEATURE_PATH_SIZE, "feature-%s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 338 | shutdown_handlers[idx].command); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +337 drivers/xen/manage.c 333 334 for (idx = 0; idx < ARRAY_SIZE(shutdown_handlers); idx++) { 335 if (!shutdown_handlers[idx].flag) 336 continue; > 337 snprintf(node, FEATURE_PATH_SIZE, "feature-%s", 338 shutdown_handlers[idx].command); 339 xenbus_printf(XBT_NIL, "control", node, "%u", 1); 340 } 341 342 return 0; 343 } 344 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki