tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git
linux-4.19.y
head: c79c4827e0ed88f2a1c8aae428ccf6da3c104bfe
commit: 86eb43f574e090ecb3a2ca7366f4c74bd6ab3df2 [468/951] fscrypt: improve format of
no-key names
config: m68k-randconfig-s031-20211123
(
https://download.01.org/0day-ci/archive/20211124/202111241129.sCEXp1AL-lk...)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git/c...
git remote add jaegeuk-f2fs-stable
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git
git fetch --no-tags jaegeuk-f2fs-stable linux-4.19.y
git checkout 86eb43f574e090ecb3a2ca7366f4c74bd6ab3df2
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k SHELL=/bin/bash
fs/crypto/ init/ lib/ mm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> fs/crypto/fname.c:87:17: sparse: sparse: Variable length array is
used.
In file included from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/scatterlist.h:7,
from fs/crypto/fname.c:15:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:50: warning: ordered comparison of pointer with
null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET
&& (void *)(kaddr) < high_memory)
| ^~
include/asm-generic/bug.h:186:36: note: in definition of macro 'BUG_ON'
186 | #define BUG_ON(condition) do { if (condition) BUG(); } while (0)
| ^~~~~~~~~
include/linux/scatterlist.h:143:17: note: in expansion of macro
'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
fs/crypto/fname.c:55: warning: Function parameter or member 'dirhash' not
described in 'fscrypt_nokey_name'
fs/crypto/fname.c:55: warning: Function parameter or member 'bytes' not
described in 'fscrypt_nokey_name'
fs/crypto/fname.c:55: warning: Function parameter or member 'sha256' not
described in 'fscrypt_nokey_name'
fs/crypto/fname.c:117: warning: Function parameter or member 'inode' not
described in 'fscrypt_fname_encrypt'
fs/crypto/fname.c:117: warning: Function parameter or member 'iname' not
described in 'fscrypt_fname_encrypt'
fs/crypto/fname.c:117: warning: Function parameter or member 'out' not
described in 'fscrypt_fname_encrypt'
fs/crypto/fname.c:117: warning: Function parameter or member 'olen' not
described in 'fscrypt_fname_encrypt'
fs/crypto/fname.c:169: warning: Function parameter or member 'inode' not
described in 'fname_decrypt'
fs/crypto/fname.c:169: warning: Function parameter or member 'iname' not
described in 'fname_decrypt'
fs/crypto/fname.c:169: warning: Function parameter or member 'oname' not
described in 'fname_decrypt'
fs/crypto/fname.c:218: warning: Function parameter or member 'src' not
described in 'base64_encode'
fs/crypto/fname.c:218: warning: Function parameter or member 'len' not
described in 'base64_encode'
fs/crypto/fname.c:218: warning: Function parameter or member 'dst' not
described in 'base64_encode'
fs/crypto/fname.c:286: warning: Function parameter or member 'inode' not
described in 'fscrypt_fname_alloc_buffer'
fs/crypto/fname.c:286: warning: Function parameter or member
'max_encrypted_len' not described in 'fscrypt_fname_alloc_buffer'
fs/crypto/fname.c:286: warning: Function parameter or member 'crypto_str' not
described in 'fscrypt_fname_alloc_buffer'
fs/crypto/fname.c:306: warning: Function parameter or member 'crypto_str' not
described in 'fscrypt_fname_free_buffer'
fs/crypto/fname.c:330: warning: Function parameter or member 'inode' not
described in 'fscrypt_fname_disk_to_usr'
fs/crypto/fname.c:330: warning: Function parameter or member 'hash' not
described in 'fscrypt_fname_disk_to_usr'
fs/crypto/fname.c:330: warning: Function parameter or member 'minor_hash' not
described in 'fscrypt_fname_disk_to_usr'
fs/crypto/fname.c:330: warning: Function parameter or member 'iname' not
described in 'fscrypt_fname_disk_to_usr'
fs/crypto/fname.c:330: warning: Function parameter or member 'oname' not
described in 'fscrypt_fname_disk_to_usr'
vim +87 fs/crypto/fname.c
65
66 static int fscrypt_do_sha256(const u8 *data, unsigned int data_len, u8 *result)
67 {
68 struct crypto_shash *tfm = READ_ONCE(sha256_hash_tfm);
69
70 if (unlikely(!tfm)) {
71 struct crypto_shash *prev_tfm;
72
73 tfm = crypto_alloc_shash("sha256", 0, 0);
74 if (IS_ERR(tfm)) {
75 fscrypt_err(NULL,
76 "Error allocating SHA-256 transform: %ld",
77 PTR_ERR(tfm));
78 return PTR_ERR(tfm);
79 }
80 prev_tfm = cmpxchg(&sha256_hash_tfm, NULL, tfm);
81 if (prev_tfm) {
82 crypto_free_shash(tfm);
83 tfm = prev_tfm;
84 }
85 }
86 {
87 SHASH_DESC_ON_STACK(desc, tfm);
88
89 desc->tfm = tfm;
90 desc->flags = 0;
91
92 return crypto_shash_digest(desc, data, data_len, result);
93 }
94 }
95
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org