* [tip:x86/urgent 1/1] arch/x86/mm/fault.c:940:27: error: 'ARCH_DEFAULT_PKEY' undeclared
@ 2021-09-20 14:33 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-20 14:33 UTC (permalink / raw)
To: Jiashuo Liang; +Cc: kbuild-all, linux-kernel, x86, Borislav Petkov
[-- Attachment #1: Type: text/plain, Size: 2486 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/urgent
head: 0829d0b6bf0fb3453608798442deaf00c4a1abec
commit: 0829d0b6bf0fb3453608798442deaf00c4a1abec [1/1] x86/fault: Fix wrong signal when vsyscall fails with pkey
config: x86_64-randconfig-a014-20210920 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=0829d0b6bf0fb3453608798442deaf00c4a1abec
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip x86/urgent
git checkout 0829d0b6bf0fb3453608798442deaf00c4a1abec
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/x86/mm/fault.c: In function 'do_sigbus':
>> arch/x86/mm/fault.c:940:27: error: 'ARCH_DEFAULT_PKEY' undeclared (first use in this function)
940 | SIGBUS, BUS_ADRERR, ARCH_DEFAULT_PKEY);
| ^~~~~~~~~~~~~~~~~
arch/x86/mm/fault.c:940:27: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/mm/fault.c: In function 'do_user_addr_fault':
arch/x86/mm/fault.c:1407:8: error: 'ARCH_DEFAULT_PKEY' undeclared (first use in this function)
1407 | ARCH_DEFAULT_PKEY);
| ^~~~~~~~~~~~~~~~~
vim +/ARCH_DEFAULT_PKEY +940 arch/x86/mm/fault.c
932
933 static void
934 do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address,
935 vm_fault_t fault)
936 {
937 /* Kernel mode? Handle exceptions or die: */
938 if (!user_mode(regs)) {
939 kernelmode_fixup_or_oops(regs, error_code, address,
> 940 SIGBUS, BUS_ADRERR, ARCH_DEFAULT_PKEY);
941 return;
942 }
943
944 /* User-space => ok to do another page fault: */
945 if (is_prefetch(regs, error_code, address))
946 return;
947
948 sanitize_error_code(address, &error_code);
949
950 if (fixup_vdso_exception(regs, X86_TRAP_PF, error_code, address))
951 return;
952
953 set_signal_archinfo(address, error_code);
954
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32896 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip:x86/urgent 1/1] arch/x86/mm/fault.c:940:27: error: 'ARCH_DEFAULT_PKEY' undeclared
@ 2021-09-20 14:33 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-20 14:33 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2547 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/urgent
head: 0829d0b6bf0fb3453608798442deaf00c4a1abec
commit: 0829d0b6bf0fb3453608798442deaf00c4a1abec [1/1] x86/fault: Fix wrong signal when vsyscall fails with pkey
config: x86_64-randconfig-a014-20210920 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=0829d0b6bf0fb3453608798442deaf00c4a1abec
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip x86/urgent
git checkout 0829d0b6bf0fb3453608798442deaf00c4a1abec
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/x86/mm/fault.c: In function 'do_sigbus':
>> arch/x86/mm/fault.c:940:27: error: 'ARCH_DEFAULT_PKEY' undeclared (first use in this function)
940 | SIGBUS, BUS_ADRERR, ARCH_DEFAULT_PKEY);
| ^~~~~~~~~~~~~~~~~
arch/x86/mm/fault.c:940:27: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/mm/fault.c: In function 'do_user_addr_fault':
arch/x86/mm/fault.c:1407:8: error: 'ARCH_DEFAULT_PKEY' undeclared (first use in this function)
1407 | ARCH_DEFAULT_PKEY);
| ^~~~~~~~~~~~~~~~~
vim +/ARCH_DEFAULT_PKEY +940 arch/x86/mm/fault.c
932
933 static void
934 do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address,
935 vm_fault_t fault)
936 {
937 /* Kernel mode? Handle exceptions or die: */
938 if (!user_mode(regs)) {
939 kernelmode_fixup_or_oops(regs, error_code, address,
> 940 SIGBUS, BUS_ADRERR, ARCH_DEFAULT_PKEY);
941 return;
942 }
943
944 /* User-space => ok to do another page fault: */
945 if (is_prefetch(regs, error_code, address))
946 return;
947
948 sanitize_error_code(address, &error_code);
949
950 if (fixup_vdso_exception(regs, X86_TRAP_PF, error_code, address))
951 return;
952
953 set_signal_archinfo(address, error_code);
954
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32896 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-20 14:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-20 14:33 [tip:x86/urgent 1/1] arch/x86/mm/fault.c:940:27: error: 'ARCH_DEFAULT_PKEY' undeclared kernel test robot
2021-09-20 14:33 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.