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: <202210171809.wr6CohXp-lkp@intel.com>
Date:   Mon, 17 Oct 2022 18:26:46 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mark Rutland <mark.rutland@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mark:arm64/ftrace/per-callsite-ops 9/11]
 arch/arm64/kernel/patching.c:91:13: warning: no previous prototype for
 'aarch64_insn_write_u64'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/per-callsite-ops
head:   c38c50315b2f4311f78a93848e088ac6c77e6aa5
commit: 7945bdb3deec8bbb1665b42f921a5494957bfb2d [9/11] WIP: arm64: implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS
config: arm64-randconfig-r035-20221017
compiler: aarch64-linux-gcc (GCC) 12.1.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/mark/linux.git/commit/?id=7945bdb3deec8bbb1665b42f921a5494957bfb2d
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/ftrace/per-callsite-ops
        git checkout 7945bdb3deec8bbb1665b42f921a5494957bfb2d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/

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/patching.c:91:13: warning: no previous prototype for 'aarch64_insn_write_u64' [-Wmissing-prototypes]
      91 | noinstr int aarch64_insn_write_u64(void *addr, u64 val)
         |             ^~~~~~~~~~~~~~~~~~~~~~


vim +/aarch64_insn_write_u64 +91 arch/arm64/kernel/patching.c

    90	
  > 91	noinstr int aarch64_insn_write_u64(void *addr, u64 val)
    92	{
    93		u64 *waddr;
    94		unsigned long flags;
    95		int ret;
    96	
    97		raw_spin_lock_irqsave(&patch_lock, flags);
    98		waddr = patch_map(addr, FIX_TEXT_POKE0);
    99	
   100		ret = copy_to_kernel_nofault(waddr, &val, sizeof(val));
   101	
   102		patch_unmap(FIX_TEXT_POKE0);
   103		raw_spin_unlock_irqrestore(&patch_lock, flags);
   104	
   105		return ret;
   106	}
   107	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ