From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [ardb:x86-pie-v3 5/15] arch/x86/include/asm/sync_core.h:33:15: error: invalid operand for instruction
Date: Fri, 26 Dec 2025 04:46:32 +0800 [thread overview]
Message-ID: <202512260435.f670RACW-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git x86-pie-v3
head: 16f858473d90ca1f50cd701fcaa7a3a7d58c44f7
commit: 7ab00e870d46ca1ce4ddfbc68a9e36149f22ecf0 [5/15] x86/sync_core: Use RIP-relative addressing
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20251226/202512260435.f670RACW-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251226/202512260435.f670RACW-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512260435.f670RACW-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/x86/kernel/alternative.c:4:
In file included from include/linux/mmu_context.h:5:
In file included from arch/x86/include/asm/mmu_context.h:7:
In file included from include/linux/pkeys.h:5:
In file included from include/linux/mm.h:17:
In file included from include/linux/mmap_lock.h:15:
In file included from include/linux/sched/mm.h:10:
In file included from include/linux/sync_core.h:6:
>> arch/x86/include/asm/sync_core.h:33:15: error: invalid operand for instruction
33 | "pushq %q0\n\t"
| ^
<inline asm>:8:17: note: instantiated into assembly here
8 | leaq 1f(%rip), %eax
| ^~~~
In file included from arch/x86/kernel/alternative.c:4:
In file included from include/linux/mmu_context.h:5:
In file included from arch/x86/include/asm/mmu_context.h:7:
In file included from include/linux/pkeys.h:5:
In file included from include/linux/mm.h:17:
In file included from include/linux/mmap_lock.h:15:
In file included from include/linux/sched/mm.h:10:
In file included from include/linux/sync_core.h:6:
>> arch/x86/include/asm/sync_core.h:33:15: error: invalid operand for instruction
33 | "pushq %q0\n\t"
| ^
<inline asm>:8:17: note: instantiated into assembly here
8 | leaq 1f(%rip), %eax
| ^~~~
2 errors generated.
--
In file included from arch/x86/kernel/static_call.c:2:
In file included from include/linux/static_call.h:135:
In file included from include/linux/cpu.h:17:
In file included from include/linux/node.h:18:
In file included from include/linux/device.h:16:
In file included from include/linux/energy_model.h:7:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:12:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:21:
In file included from include/linux/xarray.h:21:
In file included from include/linux/sched/mm.h:10:
In file included from include/linux/sync_core.h:6:
>> arch/x86/include/asm/sync_core.h:33:15: error: invalid operand for instruction
33 | "pushq %q0\n\t"
| ^
<inline asm>:8:17: note: instantiated into assembly here
8 | leaq 1f(%rip), %eax
| ^~~~
1 error generated.
vim +33 arch/x86/include/asm/sync_core.h
ac1ab12a3e6e87 Mathieu Desnoyers 2018-01-29 9
f69ca629d89d65 Ricardo Neri 2020-07-26 10 #ifdef CONFIG_X86_32
0ef8047b737d74 Juergen Gross 2024-11-29 11 static __always_inline void iret_to_self(void)
f69ca629d89d65 Ricardo Neri 2020-07-26 12 {
f69ca629d89d65 Ricardo Neri 2020-07-26 13 asm volatile (
f69ca629d89d65 Ricardo Neri 2020-07-26 14 "pushfl\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 15 "pushl %%cs\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 16 "pushl $1f\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 17 "iret\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 18 "1:"
f69ca629d89d65 Ricardo Neri 2020-07-26 19 : ASM_CALL_CONSTRAINT : : "memory");
f69ca629d89d65 Ricardo Neri 2020-07-26 20 }
f69ca629d89d65 Ricardo Neri 2020-07-26 21 #else
0ef8047b737d74 Juergen Gross 2024-11-29 22 static __always_inline void iret_to_self(void)
f69ca629d89d65 Ricardo Neri 2020-07-26 23 {
f69ca629d89d65 Ricardo Neri 2020-07-26 24 unsigned int tmp;
f69ca629d89d65 Ricardo Neri 2020-07-26 25
f69ca629d89d65 Ricardo Neri 2020-07-26 26 asm volatile (
f69ca629d89d65 Ricardo Neri 2020-07-26 27 "mov %%ss, %0\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 28 "pushq %q0\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 29 "pushq %%rsp\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 30 "addq $8, (%%rsp)\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 31 "pushfq\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 32 "mov %%cs, %0\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 @33 "pushq %q0\n\t"
7ab00e870d46ca Ard Biesheuvel 2023-04-07 34 "leaq 1f(%%rip), %0\n\t"
7ab00e870d46ca Ard Biesheuvel 2023-04-07 35 "pushq %q0\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 36 "iretq\n\t"
f69ca629d89d65 Ricardo Neri 2020-07-26 37 "1:"
f69ca629d89d65 Ricardo Neri 2020-07-26 38 : "=&r" (tmp), ASM_CALL_CONSTRAINT : : "cc", "memory");
f69ca629d89d65 Ricardo Neri 2020-07-26 39 }
f69ca629d89d65 Ricardo Neri 2020-07-26 40 #endif /* CONFIG_X86_32 */
f69ca629d89d65 Ricardo Neri 2020-07-26 41
:::::: The code at line 33 was first introduced by commit
:::::: f69ca629d89d65737537e05308ac531f7bb07d5c x86/cpu: Refactor sync_core() for readability
:::::: TO: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-25 20:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202512260435.f670RACW-lkp@intel.com \
--to=lkp@intel.com \
--cc=ardb@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.