arch/s390/kernel/entry.S:165: Error: Unrecognized opcode: `aghik'
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 663d0d1af3faefe673cabf4b6b077149a87ad71f commit: f5730d44e05efb43a5cb64e5eb04e24994bbb50f [10912/12060] s390: Add stackprotector support config: s390-randconfig-002-20251125 (https://download.01.org/0day-ci/archive/20251126/[email protected]/config) compiler: s390-linux-gcc (GCC) 14.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251126/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
arch/s390/kernel/entry.S: Assembler messages:
>> arch/s390/kernel/entry.S:165: Error: Unrecognized opcode: `aghik'
vim +165 arch/s390/kernel/entry.S
125
126 .macro STACKLEAK_ERASE
127 #ifdef CONFIG_KSTACK_ERASE
128 brasl %r14,stackleak_erase_on_task_stack
129 #endif
130 .endm
131
132 GEN_BR_THUNK %r14
133
134 .section .kprobes.text, "ax"
135 .Ldummy:
136 /*
137 * The following nop exists only in order to avoid that the next
138 * symbol starts at the beginning of the kprobes text section.
139 * In that case there would be several symbols at the same address.
140 * E.g. objdump would take an arbitrary symbol when disassembling
141 * the code.
142 * With the added nop in between this cannot happen.
143 */
144 nop 0
145
146 /*
147 * Scheduler resume function, called by __switch_to
148 * gpr2 = (task_struct *)prev
149 * gpr3 = (task_struct *)next
150 * Returns:
151 * gpr2 = prev
152 */
153 SYM_FUNC_START(__switch_to_asm)
154 stmg %r6,%r15,__SF_GPRS(%r15) # store gprs of prev task
155 lghi %r4,__TASK_stack
156 lghi %r1,__TASK_thread
157 llill %r5,STACK_INIT_OFFSET
158 stg %r15,__THREAD_ksp(%r1,%r2) # store kernel stack of prev
159 lg %r15,0(%r4,%r3) # start of kernel stack of next
160 agr %r15,%r5 # end of kernel stack of next
161 GET_LC %r13
162 stg %r3,__LC_CURRENT(%r13) # store task struct of next
163 stg %r15,__LC_KERNEL_STACK(%r13) # store end of kernel stack
164 lg %r15,__THREAD_ksp(%r1,%r3) # load kernel stack of next
> 165 aghik %r4,%r3,__TASK_pid
166 mvc __LC_CURRENT_PID(4,%r13),0(%r4) # store pid of next
167 ALTERNATIVE "nop", "lpp _LPP_OFFSET(%r13)", ALT_FACILITY(40)
168 #ifdef CONFIG_STACKPROTECTOR
169 lg %r3,__TASK_stack_canary(%r3)
170 stg %r3,__LC_STACK_CANARY(%r13)
171 #endif
172 lmg %r6,%r15,__SF_GPRS(%r15) # load gprs of next task
173 BR_EX %r14
174 SYM_FUNC_END(__switch_to_asm)
175
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki