All of lore.kernel.org
 help / color / mirror / Atom feed
* [block:tif-task_work 20/30] arch/powerpc/kernel/entry_32.S:418: Error: operand out of range (0x000000000020ffff is not between 0x0000000000000000 and 0x000000000000ffff)
@ 2020-10-10  1:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-10  1:23 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 12713 bytes --]

Hi Jens,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git tif-task_work
head:   c8db62ae267eb1de3e8fc4ac1c12c1618253e159
commit: 8ab455b11ce907563d6560d55c385c6a7c51a559 [20/30] powerpc: add support for TIF_NOTIFY_SIGNAL
config: powerpc-walnut_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.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/axboe/linux-block.git/commit/?id=8ab455b11ce907563d6560d55c385c6a7c51a559
        git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
        git fetch --no-tags block tif-task_work
        git checkout 8ab455b11ce907563d6560d55c385c6a7c51a559
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/powerpc/kernel/entry_32.S: Assembler messages:
>> arch/powerpc/kernel/entry_32.S:418: Error: operand out of range (0x000000000020ffff is not between 0x0000000000000000 and 0x000000000000ffff)
   arch/powerpc/kernel/entry_32.S:885: Error: operand out of range (0x000000000020606e is not between 0x0000000000000000 and 0x000000000000ffff)
   arch/powerpc/kernel/entry_32.S:1291: Error: operand out of range (0x000000000020606e is not between 0x0000000000000000 and 0x000000000000ffff)

vim +418 arch/powerpc/kernel/entry_32.S

b86fb88855ea78 Christophe Leroy       2019-04-30  357  
9994a33865f4d5 Paul Mackerras         2005-10-10  358  /*
9994a33865f4d5 Paul Mackerras         2005-10-10  359   * Handle a system call.
9994a33865f4d5 Paul Mackerras         2005-10-10  360   */
9994a33865f4d5 Paul Mackerras         2005-10-10  361  	.stabs	"arch/powerpc/kernel/",N_SO,0,0,0f
9994a33865f4d5 Paul Mackerras         2005-10-10  362  	.stabs	"entry_32.S",N_SO,0,0,0f
9994a33865f4d5 Paul Mackerras         2005-10-10  363  0:
9994a33865f4d5 Paul Mackerras         2005-10-10  364  
9994a33865f4d5 Paul Mackerras         2005-10-10  365  _GLOBAL(DoSyscall)
9994a33865f4d5 Paul Mackerras         2005-10-10  366  	stw	r3,ORIG_GPR3(r1)
9994a33865f4d5 Paul Mackerras         2005-10-10  367  	li	r12,0
9994a33865f4d5 Paul Mackerras         2005-10-10  368  	stw	r12,RESULT(r1)
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  369  #ifdef CONFIG_TRACE_IRQFLAGS
40530db7c65611 Christophe Leroy       2019-04-30  370  	/* Make sure interrupts are enabled */
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  371  	mfmsr	r11
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  372  	andi.	r12,r11,MSR_EE
40530db7c65611 Christophe Leroy       2019-04-30  373  	/* We came in with interrupts disabled, we WARN and mark them enabled
40530db7c65611 Christophe Leroy       2019-04-30  374  	 * for lockdep now */
40530db7c65611 Christophe Leroy       2019-04-30  375  0:	tweqi	r12, 0
40530db7c65611 Christophe Leroy       2019-04-30  376  	EMIT_BUG_ENTRY 0b,__FILE__,__LINE__, BUGFLAG_WARNING
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  377  #endif /* CONFIG_TRACE_IRQFLAGS */
f7354ccac844da Christophe Leroy       2019-01-31  378  	lwz	r11,TI_FLAGS(r2)
10ea834364c867 Michael Ellerman       2015-01-15  379  	andi.	r11,r11,_TIF_SYSCALL_DOTRACE
9994a33865f4d5 Paul Mackerras         2005-10-10  380  	bne-	syscall_dotrace
9994a33865f4d5 Paul Mackerras         2005-10-10  381  syscall_dotrace_cont:
9994a33865f4d5 Paul Mackerras         2005-10-10  382  	cmplwi	0,r0,NR_syscalls
9994a33865f4d5 Paul Mackerras         2005-10-10  383  	lis	r10,sys_call_table(a)h
9994a33865f4d5 Paul Mackerras         2005-10-10  384  	ori	r10,r10,sys_call_table(a)l
9994a33865f4d5 Paul Mackerras         2005-10-10  385  	slwi	r0,r0,2
9994a33865f4d5 Paul Mackerras         2005-10-10  386  	bge-	66f
c28218d4abbf4f Diana Craciun          2018-07-28  387  
c28218d4abbf4f Diana Craciun          2018-07-28  388  	barrier_nospec_asm
c28218d4abbf4f Diana Craciun          2018-07-28  389  	/*
c28218d4abbf4f Diana Craciun          2018-07-28  390  	 * Prevent the load of the handler below (based on the user-passed
c28218d4abbf4f Diana Craciun          2018-07-28  391  	 * system call number) being speculatively executed until the test
c28218d4abbf4f Diana Craciun          2018-07-28  392  	 * against NR_syscalls and branch to .66f above has
c28218d4abbf4f Diana Craciun          2018-07-28  393  	 * committed.
c28218d4abbf4f Diana Craciun          2018-07-28  394  	 */
c28218d4abbf4f Diana Craciun          2018-07-28  395  
9994a33865f4d5 Paul Mackerras         2005-10-10  396  	lwzx	r10,r10,r0	/* Fetch system call handler [ptr] */
9994a33865f4d5 Paul Mackerras         2005-10-10  397  	mtlr	r10
9994a33865f4d5 Paul Mackerras         2005-10-10  398  	addi	r9,r1,STACK_FRAME_OVERHEAD
9994a33865f4d5 Paul Mackerras         2005-10-10  399  	PPC440EP_ERR42
9994a33865f4d5 Paul Mackerras         2005-10-10  400  	blrl			/* Call handler */
9994a33865f4d5 Paul Mackerras         2005-10-10  401  	.globl	ret_from_syscall
9994a33865f4d5 Paul Mackerras         2005-10-10  402  ret_from_syscall:
6f37be4b1364ee Boqun Feng             2018-06-02  403  #ifdef CONFIG_DEBUG_RSEQ
6f37be4b1364ee Boqun Feng             2018-06-02  404  	/* Check whether the syscall is issued inside a restartable sequence */
6f37be4b1364ee Boqun Feng             2018-06-02  405  	stw	r3,GPR3(r1)
6f37be4b1364ee Boqun Feng             2018-06-02  406  	addi    r3,r1,STACK_FRAME_OVERHEAD
6f37be4b1364ee Boqun Feng             2018-06-02  407  	bl      rseq_syscall
6f37be4b1364ee Boqun Feng             2018-06-02  408  	lwz	r3,GPR3(r1)
6f37be4b1364ee Boqun Feng             2018-06-02  409  #endif
9994a33865f4d5 Paul Mackerras         2005-10-10  410  	mr	r6,r3
9994a33865f4d5 Paul Mackerras         2005-10-10  411  	/* disable interrupts so current_thread_info()->flags can't change */
ba18025fb03306 Christophe Leroy       2019-08-20  412  	LOAD_REG_IMMEDIATE(r10,MSR_KERNEL)	/* doesn't include MSR_EE */
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  413  	/* Note: We don't bother telling lockdep about it */
9994a33865f4d5 Paul Mackerras         2005-10-10  414  	SYNC
39bccfd1649705 Christophe Leroy       2019-12-21  415  	mtmsr	r10
f7354ccac844da Christophe Leroy       2019-01-31  416  	lwz	r9,TI_FLAGS(r2)
c3525940cca53c Michael Ellerman       2015-07-23  417  	li	r8,-MAX_ERRNO
10ea834364c867 Michael Ellerman       2015-01-15 @418  	andi.	r0,r9,(_TIF_SYSCALL_DOTRACE|_TIF_SINGLESTEP|_TIF_USER_WORK_MASK|_TIF_PERSYSCALL_MASK)
9994a33865f4d5 Paul Mackerras         2005-10-10  419  	bne-	syscall_exit_work
401d1f029bebb7 David Woodhouse        2005-11-15  420  	cmplw	0,r3,r8
401d1f029bebb7 David Woodhouse        2005-11-15  421  	blt+	syscall_exit_cont
401d1f029bebb7 David Woodhouse        2005-11-15  422  	lwz	r11,_CCR(r1)			/* Load CR */
401d1f029bebb7 David Woodhouse        2005-11-15  423  	neg	r3,r3
401d1f029bebb7 David Woodhouse        2005-11-15  424  	oris	r11,r11,0x1000	/* Set SO bit in CR */
401d1f029bebb7 David Woodhouse        2005-11-15  425  	stw	r11,_CCR(r1)
9994a33865f4d5 Paul Mackerras         2005-10-10  426  syscall_exit_cont:
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  427  	lwz	r8,_MSR(r1)
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  428  #ifdef CONFIG_TRACE_IRQFLAGS
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  429  	/* If we are going to return from the syscall with interrupts
40530db7c65611 Christophe Leroy       2019-04-30  430  	 * off, we trace that here. It shouldn't normally happen.
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  431  	 */
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  432  	andi.	r10,r8,MSR_EE
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  433  	bne+	1f
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  434  	stw	r3,GPR3(r1)
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  435  	bl      trace_hardirqs_off
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  436  	lwz	r3,GPR3(r1)
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  437  1:
5d38902c483881 Benjamin Herrenschmidt 2009-06-17  438  #endif /* CONFIG_TRACE_IRQFLAGS */
9994a33865f4d5 Paul Mackerras         2005-10-10  439  #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE)
4eaddb4d7ec380 Kumar Gala             2008-04-09  440  	/* If the process has its own DBCR0 value, load it up.  The internal
4eaddb4d7ec380 Kumar Gala             2008-04-09  441  	   debug mode bit tells us that dbcr0 should be loaded. */
9994a33865f4d5 Paul Mackerras         2005-10-10  442  	lwz	r0,THREAD+THREAD_DBCR0(r2)
2325f0a0c3d76b Kumar Gala             2008-07-26  443  	andis.	r10,r0,DBCR0_IDM(a)h
9994a33865f4d5 Paul Mackerras         2005-10-10  444  	bnel-	load_dbcr0
9994a33865f4d5 Paul Mackerras         2005-10-10  445  #endif
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  446  #ifdef CONFIG_44x
e7f75ad01d5902 Dave Kleikamp          2010-03-05  447  BEGIN_MMU_FTR_SECTION
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  448  	lis	r4,icache_44x_need_flush(a)ha
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  449  	lwz	r5,icache_44x_need_flush(a)l(r4)
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  450  	cmplwi	cr0,r5,0
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  451  	bne-	2f
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  452  1:
e7f75ad01d5902 Dave Kleikamp          2010-03-05  453  END_MMU_FTR_SECTION_IFCLR(MMU_FTR_TYPE_47x)
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  454  #endif /* CONFIG_44x */
b64f87c16f3c00 Becky Bruce            2007-11-10  455  BEGIN_FTR_SECTION
b64f87c16f3c00 Becky Bruce            2007-11-10  456  	lwarx	r7,0,r1
b64f87c16f3c00 Becky Bruce            2007-11-10  457  END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX)
9994a33865f4d5 Paul Mackerras         2005-10-10  458  	stwcx.	r0,0,r1			/* to clear the reservation */
f7354ccac844da Christophe Leroy       2019-01-31  459  	ACCOUNT_CPU_USER_EXIT(r2, r5, r7)
31ed2b13c48d77 Christophe Leroy       2019-03-11  460  #ifdef CONFIG_PPC_BOOK3S_32
31ed2b13c48d77 Christophe Leroy       2019-03-11  461  	kuep_unlock r5, r7
31ed2b13c48d77 Christophe Leroy       2019-03-11  462  #endif
e2fb9f5444312f Christophe Leroy       2019-03-11  463  	kuap_check r2, r4
9994a33865f4d5 Paul Mackerras         2005-10-10  464  	lwz	r4,_LINK(r1)
9994a33865f4d5 Paul Mackerras         2005-10-10  465  	lwz	r5,_CCR(r1)
9994a33865f4d5 Paul Mackerras         2005-10-10  466  	mtlr	r4
9994a33865f4d5 Paul Mackerras         2005-10-10  467  	mtcr	r5
9994a33865f4d5 Paul Mackerras         2005-10-10  468  	lwz	r7,_NIP(r1)
9994a33865f4d5 Paul Mackerras         2005-10-10  469  	lwz	r2,GPR2(r1)
9994a33865f4d5 Paul Mackerras         2005-10-10  470  	lwz	r1,GPR1(r1)
7cdf4401388572 Christophe Leroy       2020-03-31  471  syscall_exit_finish:
cd99ddbea250ee Christophe Leroy       2018-01-12  472  #if defined(CONFIG_PPC_8xx) && defined(CONFIG_PERF_EVENTS)
75b824727680a9 Christophe Leroy       2016-12-15  473  	mtspr	SPRN_NRI, r0
75b824727680a9 Christophe Leroy       2016-12-15  474  #endif
9994a33865f4d5 Paul Mackerras         2005-10-10  475  	mtspr	SPRN_SRR0,r7
9994a33865f4d5 Paul Mackerras         2005-10-10  476  	mtspr	SPRN_SRR1,r8
9994a33865f4d5 Paul Mackerras         2005-10-10  477  	SYNC
9994a33865f4d5 Paul Mackerras         2005-10-10  478  	RFI
7cdf4401388572 Christophe Leroy       2020-03-31  479  _ASM_NOKPROBE_SYMBOL(syscall_exit_finish)
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  480  #ifdef CONFIG_44x
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  481  2:	li	r7,0
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  482  	iccci	r0,r0
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  483  	stw	r7,icache_44x_need_flush(a)l(r4)
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  484  	b	1b
b98ac05d5e4603 Benjamin Herrenschmidt 2007-10-31  485  #endif  /* CONFIG_44x */
9994a33865f4d5 Paul Mackerras         2005-10-10  486  

:::::: The code at line 418 was first introduced by commit
:::::: 10ea834364c8670b3bf9bbbf6b9d27b4d2ebc9de powerpc: Rename _TIF_SYSCALL_T_OR_A to _TIF_SYSCALL_DOTRACE

:::::: TO: Michael Ellerman <mpe@ellerman.id.au>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 11140 bytes --]

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

only message in thread, other threads:[~2020-10-10  1:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-10  1:23 [block:tif-task_work 20/30] arch/powerpc/kernel/entry_32.S:418: Error: operand out of range (0x000000000020ffff is not between 0x0000000000000000 and 0x000000000000ffff) 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.