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: <202109180802.lo7KOsai-lkp@intel.com>
Date:   Sat, 18 Sep 2021 08:26:08 +0800
From:   kernel test robot <lkp@...el.com>
To:     unlisted-recipients:; (no To-header on input)
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>
Subject: [peterz-queue:x86/core 1/3] arch/x86/kernel/traps.c:531:6: error: no
 previous prototype for function 'fixup_iopl_exception'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/core
head:   582583c11ab550a10c4f7b7a5eca6888d2d34e9d
commit: 3fbfc8783c3dca8f115bbd53fdac24e51b17f2b5 [1/3] x86/iopl: Fake iopl(3) CLI/STI usage
config: i386-buildonly-randconfig-r001-20210916 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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=3fbfc8783c3dca8f115bbd53fdac24e51b17f2b5
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue x86/core
        git checkout 3fbfc8783c3dca8f115bbd53fdac24e51b17f2b5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 

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/x86/kernel/traps.c:531:6: error: no previous prototype for function 'fixup_iopl_exception' [-Werror,-Wmissing-prototypes]
   bool fixup_iopl_exception(struct pt_regs *regs)
        ^
   arch/x86/kernel/traps.c:531:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool fixup_iopl_exception(struct pt_regs *regs)
   ^
   static 
   1 error generated.


vim +/fixup_iopl_exception +531 arch/x86/kernel/traps.c

   530	
 > 531	bool fixup_iopl_exception(struct pt_regs *regs)
   532	{
   533		struct thread_struct *t = &current->thread;
   534		unsigned char buf[MAX_INSN_SIZE];
   535		struct insn insn;
   536		int nr_copied;
   537	
   538		if (!IS_ENABLED(CONFIG_X86_IOPL_IOPERM) || t->iopl_emul != 3 || !regs)
   539			return false;
   540	
   541		nr_copied = insn_fetch_from_user(regs, buf);
   542		if (nr_copied <= 0)
   543			return false;
   544	
   545		if (!insn_decode_from_regs(&insn, regs, buf, nr_copied))
   546			return false;
   547	
   548		if (insn.length != 1)
   549			return false;
   550	
   551		if (insn.opcode.bytes[0] != 0xfa &&
   552		    insn.opcode.bytes[0] != 0xfb)
   553			return false;
   554	
   555		if (!t->iopl_warn && printk_ratelimit()) {
   556			pr_err("%s[%d] attempts to use CLI/STI, pretending it's a NOP, ip:%lx",
   557			       current->comm, task_pid_nr(current), regs->ip);
   558			print_vma_addr(KERN_CONT " in ", regs->ip);
   559			pr_cont("\n");
   560			t->iopl_warn = 1;
   561		}
   562	
   563		regs->ip += 1;
   564		return true;
   565	}
   566	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ