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:   Fri, 21 Oct 2022 09:29:50 +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 1/8]
 arch/s390/include/asm/ftrace.h:72:32: error: implicit declaration of
 function 'ftrace_get_regs'; did you mean 'arch_ftrace_get_regs'?

Hi Mark,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/per-callsite-ops
head:   6f1081e05f384a1a27dfe00afd807546e97cf1c0
commit: 4efa20d0cdd51b62e7ecf60f4d020c5ebcd1ce6f [1/8] ftrace: pass fregs to arch_ftrace_set_direct_caller()
config: s390-randconfig-c043-20221019
compiler: s390-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=4efa20d0cdd51b62e7ecf60f4d020c5ebcd1ce6f
        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 4efa20d0cdd51b62e7ecf60f4d020c5ebcd1ce6f
        # 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=s390 prepare

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

All errors (new ones prefixed by >>):

   In file included from include/linux/ftrace.h:23,
                    from include/linux/kvm_host.h:32,
                    from arch/s390/kernel/asm-offsets.c:11:
   arch/s390/include/asm/ftrace.h: In function 'arch_ftrace_set_direct_caller':
>> arch/s390/include/asm/ftrace.h:72:32: error: implicit declaration of function 'ftrace_get_regs'; did you mean 'arch_ftrace_get_regs'? [-Werror=implicit-function-declaration]
      72 |         struct pt_regs *regs = ftrace_get_regs(fregs);
         |                                ^~~~~~~~~~~~~~~
         |                                arch_ftrace_get_regs
   arch/s390/include/asm/ftrace.h:72:32: warning: initialization of 'struct pt_regs *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   include/linux/ftrace.h: At top level:
>> include/linux/ftrace.h:121:40: error: conflicting types for 'ftrace_get_regs'; have 'struct pt_regs *(struct ftrace_regs *)'
     121 | static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs)
         |                                        ^~~~~~~~~~~~~~~
   arch/s390/include/asm/ftrace.h:72:32: note: previous implicit declaration of 'ftrace_get_regs' with type 'int()'
      72 |         struct pt_regs *regs = ftrace_get_regs(fregs);
         |                                ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:118: arch/s390/kernel/asm-offsets.s] Error 1
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:1270: prepare0] 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.


vim +72 arch/s390/include/asm/ftrace.h

    62	
    63	/*
    64	 * When an ftrace registered caller is tracing a function that is
    65	 * also set by a register_ftrace_direct() call, it needs to be
    66	 * differentiated in the ftrace_caller trampoline. To do this,
    67	 * place the direct caller in the ORIG_GPR2 part of pt_regs. This
    68	 * tells the ftrace_caller that there's a direct caller.
    69	 */
    70	static inline void arch_ftrace_set_direct_caller(struct ftrace_regs *fregs, unsigned long addr)
    71	{
  > 72		struct pt_regs *regs = ftrace_get_regs(fregs);
    73		regs->orig_gpr2 = addr;
    74	}
    75	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ