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:   Thu, 7 Oct 2021 16:22:48 +0800
From:   kernel test robot <lkp@...el.com>
To:     unlisted-recipients:; (no To-header on input)
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [peterz-queue:sched/wchan 7/7] arch/mips/kernel/stacktrace.c:69:6:
 warning: no previous prototype for '__save_stack_trace_tsk'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wchan
head:   48f17ab32afc56a67359efc5b8889cb8cb42ec80
commit: 48f17ab32afc56a67359efc5b8889cb8cb42ec80 [7/7] arch: Fix STACKTRACE_SUPPORT
config: mips-loongson1b_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 11.2.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/peterz/queue.git/commit/?id=48f17ab32afc56a67359efc5b8889cb8cb42ec80
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/wchan
        git checkout 48f17ab32afc56a67359efc5b8889cb8cb42ec80
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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 warnings (new ones prefixed by >>):

>> arch/mips/kernel/stacktrace.c:69:6: warning: no previous prototype for '__save_stack_trace_tsk' [-Wmissing-prototypes]
      69 | void __save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace, bool savesched)
         |      ^~~~~~~~~~~~~~~~~~~~~~


vim +/__save_stack_trace_tsk +69 arch/mips/kernel/stacktrace.c

    68	
  > 69	void __save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace, bool savesched)
    70	{
    71		struct pt_regs dummyregs;
    72		struct pt_regs *regs = &dummyregs;
    73	
    74		WARN_ON(trace->nr_entries || !trace->max_entries);
    75	
    76		if (tsk != current) {
    77			regs->regs[29] = tsk->thread.reg29;
    78			regs->regs[31] = 0;
    79			regs->cp0_epc = tsk->thread.reg31;
    80		} else
    81			prepare_frametrace(regs);
    82		save_context_stack(trace, tsk, regs, savesched);
    83	}
    84	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ