All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:x86/core 5/6] arch/x86/entry/entry_64.S:444: Error: register type mismatch for `xor'
@ 2023-02-10 14:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-10 14:56 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: oe-kbuild-all

Hi Peter,

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/peterz/queue.git x86/core
head:   cc1feb4e38be192cd99f7598777ff691f8a8a20e
commit: 943db25eef966d66b8d6edd9d83ce9cb117f7ee9 [5/6] x86: Shorten RESET_CALL_DEPTH
config: x86_64-randconfig-a004 (https://download.01.org/0day-ci/archive/20230210/202302102218.RuerOFwB-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=943db25eef966d66b8d6edd9d83ce9cb117f7ee9
        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 943db25eef966d66b8d6edd9d83ce9cb117f7ee9
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302102218.RuerOFwB-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/x86/entry/entry_64.S: Assembler messages:
>> arch/x86/entry/entry_64.S:444: Error: register type mismatch for `xor'
   arch/x86/entry/entry_64.S:290:  Info: macro invoked from here
   arch/x86/entry/entry_64.S:118:   Info: macro invoked from here
>> arch/x86/entry/entry_64.S:444: Error: register type mismatch for `xor'
   arch/x86/entry/entry_64.S:290:  Info: macro invoked from here
   arch/x86/entry/entry_64.S:1227:   Info: macro invoked from here


vim +444 arch/x86/entry/entry_64.S

6368558c37107b Thomas Gleixner 2020-05-21  438  
cfa82a00533f70 Thomas Gleixner 2020-02-25  439  /**
cfa82a00533f70 Thomas Gleixner 2020-02-25  440   * idtentry_mce_db - Macro to generate entry stubs for #MC and #DB
cfa82a00533f70 Thomas Gleixner 2020-02-25  441   * @vector:		Vector number
cfa82a00533f70 Thomas Gleixner 2020-02-25  442   * @asmsym:		ASM symbol for the entry point
cfa82a00533f70 Thomas Gleixner 2020-02-25  443   * @cfunc:		C function to be called
cfa82a00533f70 Thomas Gleixner 2020-02-25 @444   *
cfa82a00533f70 Thomas Gleixner 2020-02-25  445   * The macro emits code to set up the kernel context for #MC and #DB
cfa82a00533f70 Thomas Gleixner 2020-02-25  446   *
cfa82a00533f70 Thomas Gleixner 2020-02-25  447   * If the entry comes from user space it uses the normal entry path
cfa82a00533f70 Thomas Gleixner 2020-02-25  448   * including the return to user space work and preemption checks on
cfa82a00533f70 Thomas Gleixner 2020-02-25  449   * exit.
cfa82a00533f70 Thomas Gleixner 2020-02-25  450   *
cfa82a00533f70 Thomas Gleixner 2020-02-25  451   * If hits in kernel mode then it needs to go through the paranoid
cfa82a00533f70 Thomas Gleixner 2020-02-25  452   * entry as the exception can hit any random state. No preemption
cfa82a00533f70 Thomas Gleixner 2020-02-25  453   * check on exit to keep the paranoid path simple.
cfa82a00533f70 Thomas Gleixner 2020-02-25  454   */
cfa82a00533f70 Thomas Gleixner 2020-02-25  455  .macro idtentry_mce_db vector asmsym cfunc
cfa82a00533f70 Thomas Gleixner 2020-02-25  456  SYM_CODE_START(\asmsym)
cfa82a00533f70 Thomas Gleixner 2020-02-25  457  	UNWIND_HINT_IRET_REGS
8f93402b92d443 Peter Zijlstra  2022-03-08  458  	ENDBR
cfa82a00533f70 Thomas Gleixner 2020-02-25  459  	ASM_CLAC
c64cc2802a784e Lai Jiangshan   2022-04-21  460  	cld
cfa82a00533f70 Thomas Gleixner 2020-02-25  461  
cfa82a00533f70 Thomas Gleixner 2020-02-25  462  	pushq	$-1			/* ORIG_RAX: no syscall to restart */
cfa82a00533f70 Thomas Gleixner 2020-02-25  463  
cfa82a00533f70 Thomas Gleixner 2020-02-25  464  	/*
cfa82a00533f70 Thomas Gleixner 2020-02-25  465  	 * If the entry is from userspace, switch stacks and treat it as
cfa82a00533f70 Thomas Gleixner 2020-02-25  466  	 * a normal entry.
cfa82a00533f70 Thomas Gleixner 2020-02-25  467  	 */
cfa82a00533f70 Thomas Gleixner 2020-02-25  468  	testb	$3, CS-ORIG_RAX(%rsp)
cfa82a00533f70 Thomas Gleixner 2020-02-25  469  	jnz	.Lfrom_usermode_switch_stack_\@
cfa82a00533f70 Thomas Gleixner 2020-02-25  470  
c82965f9e53005 Chang S. Bae    2020-05-28  471  	/* paranoid_entry returns GS information for paranoid_exit in EBX. */
cfa82a00533f70 Thomas Gleixner 2020-02-25  472  	call	paranoid_entry
cfa82a00533f70 Thomas Gleixner 2020-02-25  473  
cfa82a00533f70 Thomas Gleixner 2020-02-25  474  	UNWIND_HINT_REGS
cfa82a00533f70 Thomas Gleixner 2020-02-25  475  
cfa82a00533f70 Thomas Gleixner 2020-02-25  476  	movq	%rsp, %rdi		/* pt_regs pointer */
cfa82a00533f70 Thomas Gleixner 2020-02-25  477  
cfa82a00533f70 Thomas Gleixner 2020-02-25  478  	call	\cfunc
cfa82a00533f70 Thomas Gleixner 2020-02-25  479  
cfa82a00533f70 Thomas Gleixner 2020-02-25  480  	jmp	paranoid_exit
cfa82a00533f70 Thomas Gleixner 2020-02-25  481  
cfa82a00533f70 Thomas Gleixner 2020-02-25  482  	/* Switch to the regular task stack and use the noist entry point */
cfa82a00533f70 Thomas Gleixner 2020-02-25  483  .Lfrom_usermode_switch_stack_\@:
e2dcb5f1390715 Thomas Gleixner 2020-05-21  484  	idtentry_body noist_\cfunc, has_error_code=0
cfa82a00533f70 Thomas Gleixner 2020-02-25  485  

:::::: The code at line 444 was first introduced by commit
:::::: cfa82a00533f7074011a3a49fbb6ed1b1f6fa010 x86/entry: Distangle idtentry

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-10 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-10 14:56 [peterz-queue:x86/core 5/6] arch/x86/entry/entry_64.S:444: Error: register type mismatch for `xor' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.