tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 42678a05df917049d9618eeda160fb795a6db981
commit: 5befab42f0102ef1f6839b998e5a9ba5b3593037 [13/34] CHROMIUM: mm: protect mremap()
against SPF hanlder
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 5befab42f0102ef1f6839b998e5a9ba5b3593037
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the chrome-os/chromeos-5.4 HEAD 42678a05df917049d9618eeda160fb795a6db981 builds
fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from include/linux/memcontrol.h:20,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/x86/kernel/asm-offsets.c:13:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
--
In file included from arch/x86/entry/common.c:13:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
In file included from arch/x86/include/asm/syscall.h:16,
from include/linux/audit.h:259,
from arch/x86/entry/common.c:18:
arch/x86/include/asm/asm-offsets.h: At top level:
arch/x86/include/asm/asm-offsets.h:1:10: fatal error: generated/asm-offsets.h: No such
file or directory
1 | #include <generated/asm-offsets.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
--
In file included from include/linux/pid_namespace.h:7,
from include/linux/ptrace.h:10,
from include/uapi/asm-generic/bpf_perf_event.h:4,
from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1,
from include/uapi/linux/bpf_perf_event.h:11,
from include/linux/perf_event.h:18,
from arch/x86/events/core.c:15:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
arch/x86/events/core.c: At top level:
arch/x86/events/core.c:2316:6: warning: no previous prototype for
'arch_perf_update_userpage' [-Wmissing-prototypes]
2316 | void arch_perf_update_userpage(struct perf_event *event,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/x86/kernel/head32.c:11:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
arch/x86/kernel/head32.c: At top level:
arch/x86/kernel/head32.c:72:13: warning: no previous prototype for
'mk_early_pgtbl_32' [-Wmissing-prototypes]
72 | void __init mk_early_pgtbl_32(void)
| ^~~~~~~~~~~~~~~~~
--
In file included from include/linux/kallsyms.h:12,
from arch/x86/kernel/traps.c:17:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
arch/x86/kernel/traps.c: At top level:
arch/x86/kernel/traps.c:925:13: warning: no previous prototype for 'trap_init'
[-Wmissing-prototypes]
925 | void __init trap_init(void)
| ^~~~~~~~~
--
In file included from include/linux/kallsyms.h:12,
from include/linux/ftrace.h:11,
from arch/x86/kernel/ftrace.c:18:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
arch/x86/kernel/ftrace.c: At top level:
arch/x86/kernel/ftrace.c:1019:6: warning: no previous prototype for
'prepare_ftrace_return' [-Wmissing-prototypes]
1019 | void prepare_ftrace_return(unsigned long self_addr, unsigned long *parent,
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/x86/kernel/kvm.c:15:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
arch/x86/kernel/kvm.c: At top level:
arch/x86/kernel/kvm.c:797:16: warning: no previous prototype for
'__kvm_vcpu_is_preempted' [-Wmissing-prototypes]
797 | __visible bool __kvm_vcpu_is_preempted(long cpu)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/kvm.c:872:6: warning: no previous prototype for
'arch_haltpoll_enable' [-Wmissing-prototypes]
872 | void arch_haltpoll_enable(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/kvm.c:885:6: warning: no previous prototype for
'arch_haltpoll_disable' [-Wmissing-prototypes]
885 | void arch_haltpoll_disable(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1419,
from arch/x86/kernel/devicetree.c:16:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
arch/x86/kernel/devicetree.c: At top level:
arch/x86/kernel/devicetree.c:33:13: warning: no previous prototype for
'early_init_dt_scan_chosen_arch' [-Wmissing-prototypes]
33 | void __init early_init_dt_scan_chosen_arch(unsigned long node)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/devicetree.c:38:13: warning: no previous prototype for
'early_init_dt_add_memory_arch' [-Wmissing-prototypes]
38 | void __init early_init_dt_add_memory_arch(u64 base, u64 size)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/kvm_host.h:14,
from arch/x86/kvm/../../../virt/kvm/kvm_main.c:18:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
arch/x86/kvm/../../../virt/kvm/kvm_main.c: At top level:
arch/x86/kvm/../../../virt/kvm/kvm_main.c:673:12: warning: no previous prototype for
'kvm_arch_post_init_vm' [-Wmissing-prototypes]
673 | int __weak kvm_arch_post_init_vm(struct kvm *kvm)
| ^~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/../../../virt/kvm/kvm_main.c:682:13: warning: no previous prototype for
'kvm_arch_pre_destroy_vm' [-Wmissing-prototypes]
682 | void __weak kvm_arch_pre_destroy_vm(struct kvm *kvm)
| ^~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/kvm_host.h:14,
from arch/x86/kvm/../../../virt/kvm/irqchip.c:15:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
arch/x86/kvm/../../../virt/kvm/irqchip.c: At top level:
arch/x86/kvm/../../../virt/kvm/irqchip.c:20:10: fatal error: irq.h: No such file or
directory
20 | #include "irq.h"
| ^~~~~~~
compilation terminated.
--
In file included from include/linux/kvm_host.h:14,
from arch/x86/kvm/x86.c:19:
include/linux/mm.h: In function 'vma_merge':
> include/linux/mm.h:2412:64: error: 'off' undeclared
(first use in this function); did you mean 'uff'?
2412 | return
__vma_merge(mm, prev, addr, end, vm_flags, anon, file, off,
| ^~~
| uff
include/linux/mm.h:2412:64: note: each undeclared identifier is reported only once for
each function it appears in
In file included from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/kvm_host.h:7,
from arch/x86/kvm/x86.c:19:
arch/x86/kvm/x86.c: In function 'kvm_guest_time_update':
arch/x86/kvm/x86.c:2465:37: warning: comparison of unsigned expression < 0 is always
false [-Wtype-limits]
2465 | WARN_ON(vcpu->hv_clock.system_time < 0);
| ^
include/asm-generic/bug.h:113:25: note: in definition of macro 'WARN_ON'
113 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
arch/x86/kvm/x86.c: At top level:
arch/x86/kvm/x86.c:9618:5: warning: no previous prototype for
'kvm_arch_post_init_vm' [-Wmissing-prototypes]
9618 | int kvm_arch_post_init_vm(struct kvm *kvm)
| ^~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/x86.c:9724:6: warning: no previous prototype for
'kvm_arch_pre_destroy_vm' [-Wmissing-prototypes]
9724 | void kvm_arch_pre_destroy_vm(struct kvm *kvm)
| ^~~~~~~~~~~~~~~~~~~~~~~
..
vim +2412 include/linux/mm.h
2398
2399 extern struct vm_area_struct *__vma_merge(struct mm_struct *mm,
2400 struct vm_area_struct *prev, unsigned long addr, unsigned long end,
2401 unsigned long vm_flags, struct anon_vma *anon, struct file *file,
2402 pgoff_t pgoff, struct mempolicy *mpol,
2403 struct vm_userfaultfd_ctx uff, const char __user *anon_name,
2404 bool keep_locked);
2405
2406 static inline struct vm_area_struct *vma_merge(struct mm_struct *mm,
2407 struct vm_area_struct *prev, unsigned long addr, unsigned long end,
2408 unsigned long vm_flags, struct anon_vma *anon, struct file *file,
2409 pgoff_t pgoff, struct mempolicy *pol,
2410 struct vm_userfaultfd_ctx uff, const char __user *anon_name)
2411 {
2412 return __vma_merge(mm, prev, addr, end, vm_flags, anon, file,
off,
2413 pol, uff, anon_name, false);
2414 }
2415
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org