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: microblaze-randconfig-r015-20200920 (attached as .config)
compiler: microblaze-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=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
security/keys/trusted-keys/trusted_tpm1.c: In function
'trusted_payload_alloc':
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:982:31: error:
incompatible type for argument 6 of '__vmalloc_node_range'
982 |
VMALLOC_END, GFP_KERNEL, PAGE_KERNEL_PKEY(trusted_keys_pkey),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from include/asm-generic/io.h:911,
from arch/microblaze/include/asm/io.h:63,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from ./arch/microblaze/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/highmem.h:10,
from include/linux/tpm.h:24,
from include/keys/trusted-type.h:12,
from security/keys/trusted-keys/trusted_tpm1.c:20:
include/linux/vmalloc.h:112:14: note: expected 'pgprot_t' {aka 'struct
<anonymous>'} but argument is of type 'int'
112 | extern void *__vmalloc_node_range(unsigned long size, unsigned long align,
| ^~~~~~~~~~~~~~~~~~~~
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 +/__vmalloc_node_range +982 security/keys/trusted-keys/trusted_tpm1.c
969
970 static struct trusted_key_payload *trusted_payload_alloc(struct key *key)
971 {
972 struct trusted_key_payload *p = NULL;
973 int ret;
974
975 ret = key_payload_reserve(key, sizeof *p);
976 if (ret < 0)
977 return p;
978 p = kzalloc(sizeof *p, GFP_KERNEL);
979 if (p) {
980 p->migratable = 1; /* migratable by default */
981 p->key = __vmalloc_node_range(MAX_KEY_SIZE + 1, PAGE_SIZE, VMALLOC_START,
982 VMALLOC_END, GFP_KERNEL,
PAGE_KERNEL_PKEY(trusted_keys_pkey),
983 0, NUMA_NO_NODE,
__builtin_return_address(0));
984 if (!(p->key)) {
985 kzfree(p);
986 return ERR_PTR(-ENOMEM);
987 }
988
989 }
990
991 return p;
992 }
993
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org