From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) (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 682CC3C00 for ; Mon, 11 Sep 2023 21:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694466884; x=1726002884; h=date:from:to:cc:subject:message-id:mime-version; bh=jp5sQqsQbvpDGrVANxsEJnmjesnaLq2geC1gnm1/eq4=; b=PyDfmQnxFucHvuP6upesSy4b1Q4hIv5tv2zbUNWYCnaWoQDpSqVqn572 QezGsyOchxv/Bb57c473c+I8mT5gOmnGWuu2AhcGMz+dfCjcO/g3ljD6P TjVE2YL11BhhIK2AOLnVGBrvBXkgQtM+5qbHrrWcbSpsPJKsdUky+DTMr t2EiKdzds6UoG1sUCK8r1n/qCUZwNIzaAILpxHnFn5jJgwFjoT1Fj9gCQ tsovOU3LYMPOq2Zk9UrKABmg7cSXxT2MsPbmDcegKeNJRTI5wwcgXZCcQ XEVHGAWRpxYwDmTr9ZDnPjdtxWCZkWSece1GJsFybW6ROO2zLclcHE0Uy w==; X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="380906765" X-IronPort-AV: E=Sophos;i="6.02,244,1688454000"; d="scan'208";a="380906765" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2023 14:14:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="813543761" X-IronPort-AV: E=Sophos;i="6.02,244,1688454000"; d="scan'208";a="813543761" Received: from lkp-server01.sh.intel.com (HELO 59b3c6e06877) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 11 Sep 2023 14:14:42 -0700 Received: from kbuild by 59b3c6e06877 with local (Exim 4.96) (envelope-from ) id 1qfoEy-0006jk-09; Mon, 11 Sep 2023 21:14:40 +0000 Date: Tue, 12 Sep 2023 05:14:19 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:upstream-f2fs-stable-linux-4.19.y 289/1172] fs/crypto/hkdf.c:47:9: sparse: sparse: Variable length array is used. Message-ID: <202309120549.h3411DHW-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://android.googlesource.com/kernel/common upstream-f2fs-stable-linux-4.19.y head: b9aeb147225616494256fcf913c559afd4088a05 commit: 6ad6af5912f72ad8c40baa072c3dabd321695dc1 [289/1172] fscrypt: add an HKDF-SHA512 implementation config: x86_64-randconfig-121-20230910 (https://download.01.org/0day-ci/archive/20230912/202309120549.h3411DHW-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/20230912/202309120549.h3411DHW-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/202309120549.h3411DHW-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> fs/crypto/hkdf.c:47:9: sparse: sparse: Variable length array is used. fs/crypto/hkdf.c:120:9: sparse: sparse: Variable length array is used. fs/crypto/hkdf.o: warning: objtool: fscrypt_init_hkdf()+0x97: sibling call from callable instruction with modified stack frame vim +47 fs/crypto/hkdf.c 25 26 /* 27 * HKDF consists of two steps: 28 * 29 * 1. HKDF-Extract: extract a pseudorandom key of length HKDF_HASHLEN bytes from 30 * the input keying material and optional salt. 31 * 2. HKDF-Expand: expand the pseudorandom key into output keying material of 32 * any length, parameterized by an application-specific info string. 33 * 34 * HKDF-Extract can be skipped if the input is already a pseudorandom key of 35 * length HKDF_HASHLEN bytes. However, cipher modes other than AES-256-XTS take 36 * shorter keys, and we don't want to force users of those modes to provide 37 * unnecessarily long master keys. Thus fscrypt still does HKDF-Extract. No 38 * salt is used, since fscrypt master keys should already be pseudorandom and 39 * there's no way to persist a random salt per master key from kernel mode. 40 */ 41 42 /* HKDF-Extract (RFC 5869 section 2.2), unsalted */ 43 static int hkdf_extract(struct crypto_shash *hmac_tfm, const u8 *ikm, 44 unsigned int ikmlen, u8 prk[HKDF_HASHLEN]) 45 { 46 static const u8 default_salt[HKDF_HASHLEN]; > 47 SHASH_DESC_ON_STACK(desc, hmac_tfm); 48 int err; 49 50 err = crypto_shash_setkey(hmac_tfm, default_salt, HKDF_HASHLEN); 51 if (err) 52 return err; 53 54 desc->tfm = hmac_tfm; 55 desc->flags = 0; 56 err = crypto_shash_digest(desc, ikm, ikmlen, prk); 57 shash_desc_zero(desc); 58 return err; 59 } 60 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki