tree:
https://github.com/weiny2/linux-kernel.git lm-pks-pmem-for-5.10-v3
head: 3e727e56abecc53203b9e40eb12f43f32fb29c01
commit: 3e727e56abecc53203b9e40eb12f43f32fb29c01 [71/71] keys/trusted: protect trusted
keys using PKS
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.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 checkout 3e727e56abecc53203b9e40eb12f43f32fb29c01
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
security/keys/trusted-keys/trusted_tpm1.c: In function 'trusted_payload_free':
> security/keys/trusted-keys/trusted_tpm1.c:64:2: error: implicit
declaration of function 'vfree'; did you mean 'kvfree'?
[-Werror=implicit-function-declaration]
64 | vfree(p->key);
| ^~~~~
| kvfree
security/keys/trusted-keys/trusted_tpm1.c: In function
'trusted_payload_alloc':
> security/keys/trusted-keys/trusted_tpm1.c:981:12: error: implicit
declaration of function '__vmalloc_node_range'; did you mean
'vmalloc_to_page'? [-Werror=implicit-function-declaration]
981 |
p->key = __vmalloc_node_range(MAX_KEY_SIZE + 1, PAGE_SIZE, VMALLOC_START,
| ^~~~~~~~~~~~~~~~~~~~
| vmalloc_to_page
> security/keys/trusted-keys/trusted_tpm1.c:982:31: error: implicit
declaration of function 'PAGE_KERNEL_PKEY'; did you mean
'PAGE_KERNEL_EXEC'? [-Werror=implicit-function-declaration]
982 |
VMALLOC_END, GFP_KERNEL, PAGE_KERNEL_PKEY(trusted_keys_pkey),
| ^~~~~~~~~~~~~~~~
| PAGE_KERNEL_EXEC
> security/keys/trusted-keys/trusted_tpm1.c:981:10: warning:
assignment to 'unsigned char *' from 'int' makes pointer from integer
without a cast [-Wint-conversion]
981 | p->key =
__vmalloc_node_range(MAX_KEY_SIZE + 1, PAGE_SIZE, VMALLOC_START,
| ^
cc1: some warnings being treated as errors
#
https://github.com/weiny2/linux-kernel/commit/3e727e56abecc53203b9e40eb12...
git remote add weiny2
https://github.com/weiny2/linux-kernel.git
git fetch --no-tags weiny2 lm-pks-pmem-for-5.10-v3
git checkout 3e727e56abecc53203b9e40eb12f43f32fb29c01
vim +64 security/keys/trusted-keys/trusted_tpm1.c
60
61 trusted_key_enable_access();
62 memzero_explicit(p->key, MAX_KEY_SIZE + 1);
63 trusted_key_disable_access();
64 vfree(p->key);
65 kzfree(p);
66 }
67
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org