lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 15 Feb 2020 13:30:54 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Björn Töpel <bjorn.topel@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Daniel Borkmann <daniel@...earbox.net>
Subject: arch/riscv/net/bpf_jit_comp.c:1662:47: error: 'BPF_JIT_REGION_START'
 undeclared; did you mean 'BPF_LWT_REROUTE'?

Hi Björn,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2019fc96af228b412bdb2e8e0ad4b1fc12046a51
commit: 7f3631e88ee6fb13beac333a0e9e605d2414d17f riscv, bpf: Provide RISC-V specific JIT image alloc/free
date:   8 weeks ago
config: riscv-randconfig-a001-20200215 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 7f3631e88ee6fb13beac333a0e9e605d2414d17f
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>

All error/warnings (new ones prefixed by >>):

   arch/riscv/net/bpf_jit_comp.c: In function 'bpf_jit_alloc_exec':
>> arch/riscv/net/bpf_jit_comp.c:1662:47: error: 'BPF_JIT_REGION_START' undeclared (first use in this function); did you mean 'BPF_LWT_REROUTE'?
     return __vmalloc_node_range(size, PAGE_SIZE, BPF_JIT_REGION_START,
                                                  ^~~~~~~~~~~~~~~~~~~~
                                                  BPF_LWT_REROUTE
   arch/riscv/net/bpf_jit_comp.c:1662:47: note: each undeclared identifier is reported only once for each function it appears in
>> arch/riscv/net/bpf_jit_comp.c:1663:9: error: 'BPF_JIT_REGION_END' undeclared (first use in this function); did you mean 'BPF_JIT_REGION_START'?
            BPF_JIT_REGION_END, GFP_KERNEL,
            ^~~~~~~~~~~~~~~~~~
            BPF_JIT_REGION_START
>> arch/riscv/net/bpf_jit_comp.c:1666:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +1662 arch/riscv/net/bpf_jit_comp.c

  1659	
  1660	void *bpf_jit_alloc_exec(unsigned long size)
  1661	{
> 1662		return __vmalloc_node_range(size, PAGE_SIZE, BPF_JIT_REGION_START,
> 1663					    BPF_JIT_REGION_END, GFP_KERNEL,
  1664					    PAGE_KERNEL_EXEC, 0, NUMA_NO_NODE,
  1665					    __builtin_return_address(0));
> 1666	}
  1667	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (29728 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ