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=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gnuweeb.org (Postfix) with ESMTPS id 5DAA982EFE for ; Tue, 24 Jan 2023 21:30:24 +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=driAvQzJ; 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=1674595824; x=1706131824; h=date:from:to:cc:subject:message-id:mime-version; bh=cyzDhb27NJV3ELqo4gcljbbL1a8qnyxDMqUZKQ7J0og=; b=driAvQzJj7IZJjLBCEcb0Tz39Jq1oyjoca5YWu+Q7ZdgRfaW+ccYNgG0 ETdvZs+p/sDi0rCZ3MZCNDZuAO+IiZ5k7mJZLY3oKN9Aj6Hkoy650U43d dfKfisvRuebnBJ62lRvH+lIb/yU1fqflC3ml+51viuhypyTf9YHbxrO0K oXL2yWh/1xaq2t76aw67wk/yUuZI0OlHr3qX8USYN/eIvTV/KQ86AUeIe inBptHmGFtV7cco7+s6cnV+Vc4WB62+3wR/bA3SOLjtI73D4p0FiuAu7f iMd3fBclhTDq3VPjELdo84tqEtMd6bvZpN0htKJ7HxoRGXC+zEE8Prlcn w==; X-IronPort-AV: E=McAfee;i="6500,9779,10600"; a="314312676" X-IronPort-AV: E=Sophos;i="5.97,243,1669104000"; d="scan'208";a="314312676" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2023 13:30:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10600"; a="612182892" X-IronPort-AV: E=Sophos;i="5.97,243,1669104000"; d="scan'208";a="612182892" Received: from lkp-server01.sh.intel.com (HELO 5646d64e7320) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 24 Jan 2023 13:30:22 -0800 Received: from kbuild by 5646d64e7320 with local (Exim 4.96) (envelope-from ) id 1pKQs1-0006nI-2I; Tue, 24 Jan 2023 21:30:21 +0000 Date: Wed, 25 Jan 2023 05:29:40 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: oe-kbuild-all@lists.linux.dev Subject: [ammarfaizi2-block:google/android/kernel/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: <202301250532.y0oWofkK-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/upstream-f2fs-stable-linux-4.19.y head: b9aeb147225616494256fcf913c559afd4088a05 commit: 6ad6af5912f72ad8c40baa072c3dabd321695dc1 [289/1172] fscrypt: add an HKDF-SHA512 implementation config: i386-randconfig-s001-20230123 (https://download.01.org/0day-ci/archive/20230125/202301250532.y0oWofkK-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/ammarfaizi2/linux-block/commit/6ad6af5912f72ad8c40baa072c3dabd321695dc1 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/upstream-f2fs-stable-linux-4.19.y git checkout 6ad6af5912f72ad8c40baa072c3dabd321695dc1 # 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 olddefconfig make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash fs/crypto/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot 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. 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