* [kkdwivedi:cancellations-backup/20261106-fold 3/43] arch/x86/include/asm/nospec-branch.h:656:24: error: use of undeclared identifier '__KERNEL_DS'
@ 2026-11-15 20:48 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-15 20:48 UTC (permalink / raw)
To: Kumar Kartikeya Dwivedi; +Cc: oe-kbuild-all
tree: https://github.com/kkdwivedi/linux cancellations-backup/20261106-fold
head: f7a6ac447d4ea6d82d72db9b0502902d00e5be03
commit: 47f78e8bb6f2ae787e80bf2b64b3e17bd0e370ae [3/43] bpf: Let a callback unwind into the pad of its helper
config: um-randconfig-2200-20261115 (https://download.01.org/0day-ci/archive/20261115/202611152131.FSoFPGIW-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project cbfac21cd384f6c7c480c2d0026ecedfe2d619e7)
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261115/202611152131.FSoFPGIW-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/202611152131.FSoFPGIW-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/bpf/verifier.c:13:
In file included from include/linux/bpf_unwind.h:55:
>> arch/x86/include/asm/nospec-branch.h:656:24: error: use of undeclared identifier '__KERNEL_DS'
656 | static const u16 ds = __KERNEL_DS;
| ^~~~~~~~~~~
1 error generated.
vim +/__KERNEL_DS +656 arch/x86/include/asm/nospec-branch.h
6a9e52927251775 Thomas Gleixner 2019-02-18 646
6a9e52927251775 Thomas Gleixner 2019-02-18 647 /**
f9af88a3d384c8b Borislav Petkov (AMD 2024-09-11 648) * x86_clear_cpu_buffers - Buffer clearing support for different x86 CPU vulns
6a9e52927251775 Thomas Gleixner 2019-02-18 649 *
6a9e52927251775 Thomas Gleixner 2019-02-18 650 * This uses the otherwise unused and obsolete VERW instruction in
6a9e52927251775 Thomas Gleixner 2019-02-18 651 * combination with microcode which triggers a CPU buffer flush when the
6a9e52927251775 Thomas Gleixner 2019-02-18 652 * instruction is executed.
6a9e52927251775 Thomas Gleixner 2019-02-18 653 */
f9af88a3d384c8b Borislav Petkov (AMD 2024-09-11 654) static __always_inline void x86_clear_cpu_buffers(void)
6a9e52927251775 Thomas Gleixner 2019-02-18 655 {
6a9e52927251775 Thomas Gleixner 2019-02-18 @656 static const u16 ds = __KERNEL_DS;
6a9e52927251775 Thomas Gleixner 2019-02-18 657
6a9e52927251775 Thomas Gleixner 2019-02-18 658 /*
6a9e52927251775 Thomas Gleixner 2019-02-18 659 * Has to be the memory-operand variant because only that
6a9e52927251775 Thomas Gleixner 2019-02-18 660 * guarantees the CPU buffer flush functionality according to
6a9e52927251775 Thomas Gleixner 2019-02-18 661 * documentation. The register-operand variant does not.
6a9e52927251775 Thomas Gleixner 2019-02-18 662 * Works with any segment selector, but a valid writable
6a9e52927251775 Thomas Gleixner 2019-02-18 663 * data segment is the fastest variant.
6a9e52927251775 Thomas Gleixner 2019-02-18 664 *
6a9e52927251775 Thomas Gleixner 2019-02-18 665 * "cc" clobber is required because VERW modifies ZF.
6a9e52927251775 Thomas Gleixner 2019-02-18 666 */
6a9e52927251775 Thomas Gleixner 2019-02-18 667 asm volatile("verw %[ds]" : : [ds] "m" (ds) : "cc");
6a9e52927251775 Thomas Gleixner 2019-02-18 668 }
6a9e52927251775 Thomas Gleixner 2019-02-18 669
:::::: The code at line 656 was first introduced by commit
:::::: 6a9e529272517755904b7afa639f6db59ddb793e x86/speculation/mds: Add mds_clear_cpu_buffers()
:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-15 20:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-15 20:48 [kkdwivedi:cancellations-backup/20261106-fold 3/43] arch/x86/include/asm/nospec-branch.h:656:24: error: use of undeclared identifier '__KERNEL_DS' 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.