From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (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 A4A738C02 for ; Thu, 30 Mar 2023 17:19:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680196753; x=1711732753; h=date:from:to:cc:subject:message-id:mime-version; bh=2F6Jk08/aHUK8sc4jlsmqw5b7Pz+L1QODUw7t59qdD4=; b=bzGcdQ3/EpQ/TS+9foVnggRN9s66hvB0dZgN7ZLjuJMuXHRrRMilJsWz FKCAodtvastp9BJ+hgrSmWRHkVn1ZhHkzcYP3o9M7lfuN0z/upcccnodO HEbCqJ9lY66C1nKzN27QX4qSRdk6QMGJcvFIMz3h863C2yRbql8GdrpHS 3N1T0y5U5qiQ4mvt36UXlK8eEZ7tOhT2mKaONDd3DwHTbjXSltqg/WCxN NcLBi0flFQtzqvXur3vObeFX4tNRhyN5Gz4eJ+X6Mdc+qA4lxduhKPil7 dNBcreMHhB7v8aVK7ClIvy8Dv4A+GRuH7/NeXWb1ojYQ9J3ZtqOQogSgl g==; X-IronPort-AV: E=McAfee;i="6600,9927,10665"; a="320887988" X-IronPort-AV: E=Sophos;i="5.98,305,1673942400"; d="scan'208";a="320887988" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2023 10:19:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10665"; a="774079939" X-IronPort-AV: E=Sophos;i="5.98,305,1673942400"; d="scan'208";a="774079939" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 30 Mar 2023 10:19:03 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1phvvS-000L2j-2G; Thu, 30 Mar 2023 17:19:02 +0000 Date: Fri, 31 Mar 2023 01:18:48 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com, Guenter Roeck Cc: oe-kbuild-all@lists.linux.dev Subject: [chrome-os:chromeos-5.15 15/17] include/linux/kern_levels.h:5:25: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'int32_t' {aka 'int'} Message-ID: <202303310134.9ViCssuM-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15 head: 11c541feae11f4306338a0a209a2b83c0d27755e commit: 010702724c2a774af44ba9d1a9f531ef9a4bea62 [15/17] CHROMIUM: msm: camera: isp: Fix OOB access due to underflow config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230331/202303310134.9ViCssuM-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel git fetch --no-tags chrome-os chromeos-5.15 git checkout 010702724c2a774af44ba9d1a9f531ef9a4bea62 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/media/platform/camx/cam_core/ drivers/media/platform/camx/cam_isp/isp_hw_mgr/ drivers/media/platform/camx/cam_lrme/lrme_hw_mgr/lrme_hw/ drivers/media/platform/camx/cam_req_mgr/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303310134.9ViCssuM-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/asm-generic/bug.h:22, from arch/arm64/include/asm/bug.h:26, from include/linux/bug.h:5, from include/linux/thread_info.h:13, from arch/arm64/include/asm/preempt.h:5, from include/linux/preempt.h:78, from include/linux/spinlock.h:55, from include/linux/wait.h:9, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from include/linux/debugfs.h:15, from drivers/media/platform/camx/cam_core/cam_context_utils.c:14: drivers/media/platform/camx/cam_core/cam_context_utils.c: In function 'cam_context_dump_context': >> include/linux/kern_levels.h:5:25: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'int32_t' {aka 'int'} [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:422:25: note: in definition of macro 'printk_index_wrap' 422 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ include/linux/printk.h:503:9: note: in expansion of macro 'printk' 503 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH' 12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */ | ^~~~~~~~ include/linux/printk.h:503:16: note: in expansion of macro 'KERN_WARNING' 503 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~ drivers/media/platform/camx/cam_utils/cam_debug_util.h:99:9: note: in expansion of macro 'pr_warn' 99 | pr_warn("CAM_WARN: %s: %s: %d " fmt "\n", \ | ^~~~~~~ drivers/media/platform/camx/cam_core/cam_context_utils.c:1077:17: note: in expansion of macro 'CAM_WARN' 1077 | CAM_WARN(CAM_CTXT, "dump buffer overshoot offset %zu len %zu", | ^~~~~~~~ -- In file included from include/asm-generic/bug.h:22, from arch/arm64/include/asm/bug.h:26, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/gfp.h:5, from include/linux/slab.h:15, from drivers/media/platform/camx/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c:14: drivers/media/platform/camx/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c: In function 'cam_ife_mgr_dump': >> include/linux/kern_levels.h:5:25: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:422:25: note: in definition of macro 'printk_index_wrap' 422 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ include/linux/printk.h:493:9: note: in expansion of macro 'printk' 493 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH' 11 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ include/linux/printk.h:493:16: note: in expansion of macro 'KERN_ERR' 493 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~ drivers/media/platform/camx/cam_utils/cam_debug_util.h:88:9: note: in expansion of macro 'pr_err' 88 | pr_err("CAM_ERR: %s: %s: %d " fmt "\n", \ | ^~~~~~ drivers/media/platform/camx/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c:4678:17: note: in expansion of macro 'CAM_ERR' 4678 | CAM_ERR(CAM_ISP, | ^~~~~~~ -- In file included from include/asm-generic/bug.h:22, from arch/arm64/include/asm/bug.h:26, from include/linux/bug.h:5, from arch/arm64/include/asm/cpufeature.h:19, from arch/arm64/include/asm/hwcap.h:9, from arch/arm64/include/asm/arch_timer.h:12, from arch/arm64/include/asm/timex.h:8, from include/linux/timex.h:67, from include/linux/time32.h:13, from include/linux/time.h:60, from include/linux/ktime.h:24, from include/linux/timer.h:6, from drivers/media/platform/camx/cam_lrme/lrme_hw_mgr/lrme_hw/cam_lrme_hw_core.c:14: drivers/media/platform/camx/cam_lrme/lrme_hw_mgr/lrme_hw/cam_lrme_hw_core.c: In function 'cam_lrme_hw_dump': >> include/linux/kern_levels.h:5:25: warning: format '%zu' expects argument of type 'size_t', but argument 6 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:422:25: note: in definition of macro 'printk_index_wrap' 422 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ include/linux/printk.h:503:9: note: in expansion of macro 'printk' 503 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH' 12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */ | ^~~~~~~~ include/linux/printk.h:503:16: note: in expansion of macro 'KERN_WARNING' 503 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~ drivers/media/platform/camx/cam_utils/cam_debug_util.h:99:9: note: in expansion of macro 'pr_warn' 99 | pr_warn("CAM_WARN: %s: %s: %d " fmt "\n", \ | ^~~~~~~ drivers/media/platform/camx/cam_lrme/lrme_hw_mgr/lrme_hw/cam_lrme_hw_core.c:129:17: note: in expansion of macro 'CAM_WARN' 129 | CAM_WARN(CAM_LRME, "dump buffer overshoot len %zu offset %zu", | ^~~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for ACPI_VIDEO Depends on [n]: ACPI [=y] && X86 && BACKLIGHT_CLASS_DEVICE [=y] && INPUT [=y] && (ACPI_WMI [=n] || !X86) Selected by [y]: - DRM_RADEON [=y] && HAS_IOMEM [=y] && DRM [=y] && PCI [=y] && MMU [=y] && (AGP [=n] || !AGP [=n]) && ACPI [=y] - DRM_AMDGPU [=y] && HAS_IOMEM [=y] && DRM [=y] && PCI [=y] && MMU [=y] && ACPI [=y] vim +5 include/linux/kern_levels.h 314ba3520e513a7 Joe Perches 2012-07-30 4 04d2c8c83d0e3ac Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */ 04d2c8c83d0e3ac Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001' 04d2c8c83d0e3ac Joe Perches 2012-07-30 7 :::::: The code at line 5 was first introduced by commit :::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_ to a 2 byte pattern :::::: TO: Joe Perches :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests