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: <202110140641.DjFdcwZR-lkp@intel.com>
Date:   Thu, 14 Oct 2021 06:35:53 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ard Biesheuvel <ardb@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [ardb:arm-vmap-stacks-v2 19/19] arch/arm/kernel/traps.c:850:17:
 error: no previous prototype for function 'handle_bad_stack'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm-vmap-stacks-v2
head:   f1ff5483bf30001244ae041017085f63f8dcc9fc
commit: f1ff5483bf30001244ae041017085f63f8dcc9fc [19/19] ARM: implement support for vmap'ed stacks
config: arm-buildonly-randconfig-r002-20211013 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a8c695542b2987eb9a203d5663a0740cb4725f)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=f1ff5483bf30001244ae041017085f63f8dcc9fc
        git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
        git fetch --no-tags ardb arm-vmap-stacks-v2
        git checkout f1ff5483bf30001244ae041017085f63f8dcc9fc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm 

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 >>):

   arch/arm/kernel/traps.c:95:6: error: no previous prototype for function 'dump_backtrace_stm' [-Werror,-Wmissing-prototypes]
   void dump_backtrace_stm(u32 *stack, u32 instruction, const char *loglvl)
        ^
   arch/arm/kernel/traps.c:95:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void dump_backtrace_stm(u32 *stack, u32 instruction, const char *loglvl)
   ^
   static 
   arch/arm/kernel/traps.c:446:17: error: no previous prototype for function 'do_undefinstr' [-Werror,-Wmissing-prototypes]
   asmlinkage void do_undefinstr(struct pt_regs *regs)
                   ^
   arch/arm/kernel/traps.c:446:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void do_undefinstr(struct pt_regs *regs)
              ^
              static 
   arch/arm/kernel/traps.c:511:39: error: no previous prototype for function 'handle_fiq_as_nmi' [-Werror,-Wmissing-prototypes]
   asmlinkage void __exception_irq_entry handle_fiq_as_nmi(struct pt_regs *regs)
                                         ^
   arch/arm/kernel/traps.c:511:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void __exception_irq_entry handle_fiq_as_nmi(struct pt_regs *regs)
              ^
              static 
   arch/arm/kernel/traps.c:530:17: error: no previous prototype for function 'bad_mode' [-Werror,-Wmissing-prototypes]
   asmlinkage void bad_mode(struct pt_regs *regs, int reason)
                   ^
   arch/arm/kernel/traps.c:530:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void bad_mode(struct pt_regs *regs, int reason)
              ^
              static 
   arch/arm/kernel/traps.c:603:16: error: no previous prototype for function 'arm_syscall' [-Werror,-Wmissing-prototypes]
   asmlinkage int arm_syscall(int no, struct pt_regs *regs)
                  ^
   arch/arm/kernel/traps.c:603:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage int arm_syscall(int no, struct pt_regs *regs)
              ^
              static 
   arch/arm/kernel/traps.c:729:1: error: no previous prototype for function 'baddataabort' [-Werror,-Wmissing-prototypes]
   baddataabort(int code, unsigned long instr, struct pt_regs *regs)
   ^
   arch/arm/kernel/traps.c:728:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void
              ^
              static 
   arch/arm/kernel/traps.c:769:17: error: no previous prototype for function '__div0' [-Werror,-Wmissing-prototypes]
   asmlinkage void __div0(void)
                   ^
   arch/arm/kernel/traps.c:769:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void __div0(void)
              ^
              static 
>> arch/arm/kernel/traps.c:850:17: error: no previous prototype for function 'handle_bad_stack' [-Werror,-Wmissing-prototypes]
   asmlinkage void handle_bad_stack(struct pt_regs *regs)
                   ^
   arch/arm/kernel/traps.c:850:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void handle_bad_stack(struct pt_regs *regs)
              ^
              static 
   8 errors generated.


vim +/handle_bad_stack +850 arch/arm/kernel/traps.c

   849	
 > 850	asmlinkage void handle_bad_stack(struct pt_regs *regs)
   851	{
   852		unsigned long tsk_stk = (unsigned long)current->stack;
   853		unsigned long irq_stk = (unsigned long)this_cpu_read(irq_stack_ptr);
   854		unsigned long ovf_stk = (unsigned long)this_cpu_ptr(overflow_stack);
   855	
   856		console_verbose();
   857		pr_emerg("Insufficient stack space to handle exception!");
   858	
   859		pr_emerg("Task stack:     [0x%08lx..0x%08lx]\n",
   860			 tsk_stk, tsk_stk + THREAD_SIZE);
   861		pr_emerg("IRQ stack:      [0x%08lx..0x%08lx]\n",
   862			 irq_stk, irq_stk + THREAD_SIZE);
   863		pr_emerg("Overflow stack: [0x%08lx..0x%08lx]\n",
   864			 ovf_stk, ovf_stk + OVERFLOW_STACK_SIZE);
   865	
   866		die("kernel stack overflow", regs, 0);
   867	}
   868	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ