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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 10 Oct 2022 00:12:35 +0800
From:   kernel test robot <lkp@...el.com>
To:     Li kunyu <kunyu@...china.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        0day robot <lkp@...el.com>
Subject: btf.c:954:23: error: 'scn' may be used uninitialized in this function

tree:   https://github.com/intel-lab-lkp/linux/commits/UPDATE-20221009-151125/Li-kunyu/lib-bpf-Optimized-variable-usage-in-the-btf_parse_elf-function/20221008-162305
head:   7b2bab4a6b8213f9f440da4480020b69ee0bb59d
commit: 7b2bab4a6b8213f9f440da4480020b69ee0bb59d lib: bpf: Optimized variable usage in the btf_parse_elf function
date:   9 hours ago
config: x86_64-rhel-8.3-kselftests
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel-lab-lkp/linux/commit/7b2bab4a6b8213f9f440da4480020b69ee0bb59d
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review UPDATE-20221009-151125/Li-kunyu/lib-bpf-Optimized-variable-usage-in-the-btf_parse_elf-function/20221008-162305
        git checkout 7b2bab4a6b8213f9f440da4480020b69ee0bb59d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 prepare

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

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All errors (new ones prefixed by >>):

   btf.c: In function 'btf_parse_elf':
>> btf.c:954:23: error: 'scn' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     954 |         while ((scn = elf_nextscn(elf, scn)) != NULL) {
         |                       ^~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
   make[5]: *** [tools/build/Makefile.build:96: tools/bpf/resolve_btfids/libbpf/staticobjs/btf.o] Error 1
   make[5]: *** Waiting for unfinished jobs....
   make[4]: *** [Makefile:157: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o] Error 2
   make[3]: *** [Makefile:55: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2
   make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2
   make[1]: *** [Makefile:1422: tools/bpf/resolve_btfids] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:231: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.

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

View attachment "config" of type "text/plain" (168545 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ