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:   Sun, 24 Jan 2021 19:59:05 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jinyang He <hejinyang@...ngson.cn>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: kernel/kcov.c:180:8: error: implicit declaration of function
 'kaslr_offset'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e1ae4b0be15891faf46d390e9f3dc9bd71a8cae1
commit: a307a4ce9ecd2e23c71318201330d9d648b3f818 MIPS: Loongson64: Add KASLR support
date:   8 weeks ago
config: mips-randconfig-r004-20210124 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a307a4ce9ecd2e23c71318201330d9d648b3f818
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a307a4ce9ecd2e23c71318201330d9d648b3f818
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

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

All errors (new ones prefixed by >>):

   kernel/kcov.c: In function 'canonicalize_ip':
>> kernel/kcov.c:180:8: error: implicit declaration of function 'kaslr_offset' [-Werror=implicit-function-declaration]
     180 |  ip -= kaslr_offset();
         |        ^~~~~~~~~~~~
   kernel/kcov.c: At top level:
   kernel/kcov.c:189:14: warning: no previous prototype for '__sanitizer_cov_trace_pc' [-Wmissing-prototypes]
     189 | void notrace __sanitizer_cov_trace_pc(void)
         |              ^~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/kaslr_offset +180 kernel/kcov.c

ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17  176  
903e8ff86753e6f3 Anders Roxell    2018-11-30  177  static notrace unsigned long canonicalize_ip(unsigned long ip)
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17  178  {
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17  179  #ifdef CONFIG_RANDOMIZE_BASE
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17 @180  	ip -= kaslr_offset();
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17  181  #endif
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17  182  	return ip;
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17  183  }
ded97d2c2b2c5f1d Victor Chibotaru 2017-11-17  184  

:::::: The code at line 180 was first introduced by commit
:::::: ded97d2c2b2c5f1dcced0bc57133f7753b037dfc kcov: support comparison operands collection

:::::: TO: Victor Chibotaru <tchibo@...gle.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>

---
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" (27489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ