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]
Message-ID: <202204210436.0BDJbqN7-lkp@intel.com>
Date:   Thu, 21 Apr 2022 14:42:31 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mingo-tip:sched/headers 408/2579] kernel/bpf/core.c:63:6: warning:
 no previous prototype for 'bpf_jit_dump'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   49e1ec6c70a6eb4b7de9250a455b8b63eb42afbe
commit: e4ad6815a1dd068fce426ddb025055ac7f698a29 [408/2579] headers/uninline: Uninline multi-use function: bpf_jit_dump()
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220421/202204210436.0BDJbqN7-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=e4ad6815a1dd068fce426ddb025055ac7f698a29
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip sched/headers
        git checkout e4ad6815a1dd068fce426ddb025055ac7f698a29
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/pci/ fs/crypto/ kernel/bpf/ lib/ net/ipv6/

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

All warnings (new ones prefixed by >>):

>> kernel/bpf/core.c:63:6: warning: no previous prototype for 'bpf_jit_dump' [-Wmissing-prototypes]
      63 | void bpf_jit_dump(unsigned int flen, unsigned int proglen, u32 pass, void *image)
         |      ^~~~~~~~~~~~
   kernel/bpf/core.c:1655:12: warning: no previous prototype for 'bpf_probe_read_kernel' [-Wmissing-prototypes]
    1655 | u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
         |            ^~~~~~~~~~~~~~~~~~~~~


vim +/bpf_jit_dump +63 kernel/bpf/core.c

    62	
  > 63	void bpf_jit_dump(unsigned int flen, unsigned int proglen, u32 pass, void *image)
    64	{
    65		pr_err("flen=%u proglen=%u pass=%u image=%pK from=%s pid=%d\n", flen,
    66		       proglen, pass, image, current->comm, task_pid_nr(current));
    67	
    68		if (image)
    69			print_hex_dump(KERN_ERR, "JIT code: ", DUMP_PREFIX_OFFSET,
    70				       16, 1, image, proglen, false);
    71	}
    72	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ