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, 10 Sep 2022 12:10:13 +0800
From:   kernel test robot <lkp@...el.com>
To:     Joey Gouly <joey.gouly@....com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        Ammar Faizi <ammarfaizi2@...weeb.org>,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org,
        Catalin Marinas <catalin.marinas@....com>
Subject: [ammarfaizi2-block:arm64/linux/for-next/gettimeofday 2/3]
 arch/arm64/kernel/alternative.c:198:6: warning: no previous prototype for
 function 'apply_alternatives_vdso'

tree:   https://github.com/ammarfaizi2/linux-block arm64/linux/for-next/gettimeofday
head:   9025cebf12d1763de36d5e09e2b0a1e4f9b13b28
commit: 4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441 [2/3] arm64: alternative: patch alternatives in the vDSO
config: arm64-randconfig-r013-20220909
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/ammarfaizi2/linux-block/commit/4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block arm64/linux/for-next/gettimeofday
        git checkout 4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/ drivers/usb/gadget/function/

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

All warnings (new ones prefixed by >>):

>> arch/arm64/kernel/alternative.c:198:6: warning: no previous prototype for function 'apply_alternatives_vdso' [-Wmissing-prototypes]
   void apply_alternatives_vdso(void)
        ^
   arch/arm64/kernel/alternative.c:198:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void apply_alternatives_vdso(void)
   ^
   static 
   1 warning generated.


vim +/apply_alternatives_vdso +198 arch/arm64/kernel/alternative.c

   197	
 > 198	void apply_alternatives_vdso(void)
   199	{
   200		struct alt_region region;
   201		const struct elf64_hdr *hdr;
   202		const struct elf64_shdr *shdr;
   203		const struct elf64_shdr *alt;
   204		DECLARE_BITMAP(all_capabilities, ARM64_NPATCHABLE);
   205	
   206		bitmap_fill(all_capabilities, ARM64_NPATCHABLE);
   207	
   208		hdr = (struct elf64_hdr *)vdso_start;
   209		shdr = (void *)hdr + hdr->e_shoff;
   210		alt = find_section(hdr, shdr, ".altinstructions");
   211		if (!alt)
   212			return;
   213	
   214		region = (struct alt_region){
   215			.begin	= (void *)hdr + alt->sh_offset,
   216			.end	= (void *)hdr + alt->sh_offset + alt->sh_size,
   217		};
   218	
   219		__apply_alternatives(&region, false, &all_capabilities[0]);
   220	}
   221	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ