From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gnuweeb.org (Postfix) with ESMTPS id 2C1718086F for ; Thu, 4 Aug 2022 00:46:33 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aCtF1zfm; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659573993; x=1691109993; h=date:from:to:cc:subject:message-id:mime-version; bh=QGdPiWReHXwKjFbrpUPKCUJtkeka6KJ95+cI0FA7+M8=; b=aCtF1zfm5y8e/2KmlBkEiW52besFTvn4QV24196g2mTFksQSqRa/JSsq JbzaU5ncDbfq7IGIt0tDmDqbwk39DJ5mbMStmjwjHCQnTxwlKoXM/U/jX drfwRN3Ior9FVWvn01cU3QU2AGtDjpUXcwRjiKwvdMCrauGQShJXq9kuE l1b5ffPbAGuW6d+k+9iYin85KztwoNYqMcobL3JQkSmnkPHslQxGr+EnH IdOvaUfnSxx3NKw1+dmBfbGeq+fG7vQBu/t0IRwLfwajudm25uvLlEm7J hg3nx2J78HU0exbvB5nxr7JR8YXmqPM7oJSEpU4LY2yFdQEqFcuQr+1x7 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10428"; a="289819591" X-IronPort-AV: E=Sophos;i="5.93,214,1654585200"; d="scan'208";a="289819591" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2022 17:46:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,214,1654585200"; d="scan'208";a="578862941" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 03 Aug 2022 17:46:31 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oJP0Q-000HqZ-1U; Thu, 04 Aug 2022 00:46:30 +0000 Date: Thu, 4 Aug 2022 08:45:51 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/android-4.14-stable 2063/9999] fs/incfs/integrity.c:196:9: sparse: sparse: Variable length array is used. Message-ID: <202208040848.d0TXD4pv-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.14-stable head: c529afa15a69594211793a68cb70c873508061df commit: 318babce66a62d8bc8d5434909a044b89ab3a53e [2063/9999] ANDROID: Initial commit of Incremental FS config: i386-randconfig-s002 (https://download.01.org/0day-ci/archive/20220804/202208040848.d0TXD4pv-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/ammarfaizi2/linux-block/commit/318babce66a62d8bc8d5434909a044b89ab3a53e git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.14-stable git checkout 318babce66a62d8bc8d5434909a044b89ab3a53e # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/md/ fs/incfs/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> fs/incfs/integrity.c:196:9: sparse: sparse: Variable length array is used. In file included from include/linux/kernel.h:14:0, from include/linux/crypto.h:21, from include/crypto/hash.h:16, from fs/incfs/integrity.c:6: fs/incfs/integrity.c: In function 'incfs_validate_pkcs7_signature': include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat=] #define KERN_SOH "001" /* ASCII Start Of Header */ ^ include/linux/printk.h:137:11: note: in definition of macro 'no_printk' printk(fmt, ##__VA_ARGS__); 12- ^~~ include/linux/kern_levels.h:15:20: note: in expansion of macro 'KERN_SOH' #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ ^~~~~~~~ include/linux/printk.h:344:12: note: in expansion of macro 'KERN_DEBUG' no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~ fs/incfs/integrity.c:24:3: note: in expansion of macro 'pr_debug' pr_debug("PKCS#7 parsing error. ptr=%p size=%ld err=%ldn", ^~~~~~~~ fs/incfs/integrity.c:24:49: note: format string is defined here pr_debug("PKCS#7 parsing error. ptr=%p size=%ld err=%ldn", ~~^ %d vim +196 fs/incfs/integrity.c 192 193 int incfs_calc_digest(struct incfs_hash_alg *alg, struct mem_range data, 194 struct mem_range digest) 195 { > 196 SHASH_DESC_ON_STACK(desc, alg->shash); 197 198 if (!alg || !alg->shash || !data.data || !digest.data) 199 return -EFAULT; 200 201 if (alg->digest_size > digest.len) 202 return -EINVAL; 203 204 desc->tfm = alg->shash; 205 return crypto_shash_digest(desc, data.data, data.len, digest.data); 206 } 207 -- 0-DAY CI Kernel Test Service https://01.org/lkp