All of lore.kernel.org
 help / color / mirror / Atom feed
* [kkdwivedi:cancellations-backup/scratch/guards-tested 3/51] arch/x86/include/asm/nospec-branch.h:656:31: error: '__KERNEL_DS' undeclared
@ 2026-11-16 23:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-16 23:37 UTC (permalink / raw)
  To: Kumar Kartikeya Dwivedi; +Cc: oe-kbuild-all

tree:   https://github.com/kkdwivedi/linux cancellations-backup/scratch/guards-tested
head:   67019855e76166974da23fb9e8c833b967bcc76a
commit: d6c820ed0315c90ec643c56fbf84d76d28ca9776 [3/51] bpf: Let a callback unwind into the pad of its helper
config: um-allyesconfig (https://download.01.org/0day-ci/archive/20261117/202611170726.Sw6EPtoN-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261117/202611170726.Sw6EPtoN-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/202611170726.Sw6EPtoN-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/bpf_unwind.h:55,
                    from kernel/bpf/verifier.c:13:
   arch/x86/include/asm/nospec-branch.h: In function 'x86_clear_cpu_buffers':
>> arch/x86/include/asm/nospec-branch.h:656:31: error: '__KERNEL_DS' undeclared (first use in this function)
     656 |         static const u16 ds = __KERNEL_DS;
         |                               ^~~~~~~~~~~
   arch/x86/include/asm/nospec-branch.h:656:31: note: each undeclared identifier is reported only once for each function it appears in


vim +/__KERNEL_DS +656 arch/x86/include/asm/nospec-branch.h

6a9e5292725177 Thomas Gleixner       2019-02-18  646  
6a9e5292725177 Thomas Gleixner       2019-02-18  647  /**
f9af88a3d384c8 Borislav Petkov (AMD  2024-09-11  648)  * x86_clear_cpu_buffers - Buffer clearing support for different x86 CPU vulns
6a9e5292725177 Thomas Gleixner       2019-02-18  649   *
6a9e5292725177 Thomas Gleixner       2019-02-18  650   * This uses the otherwise unused and obsolete VERW instruction in
6a9e5292725177 Thomas Gleixner       2019-02-18  651   * combination with microcode which triggers a CPU buffer flush when the
6a9e5292725177 Thomas Gleixner       2019-02-18  652   * instruction is executed.
6a9e5292725177 Thomas Gleixner       2019-02-18  653   */
f9af88a3d384c8 Borislav Petkov (AMD  2024-09-11  654) static __always_inline void x86_clear_cpu_buffers(void)
6a9e5292725177 Thomas Gleixner       2019-02-18  655  {
6a9e5292725177 Thomas Gleixner       2019-02-18 @656  	static const u16 ds = __KERNEL_DS;
6a9e5292725177 Thomas Gleixner       2019-02-18  657  
6a9e5292725177 Thomas Gleixner       2019-02-18  658  	/*
6a9e5292725177 Thomas Gleixner       2019-02-18  659  	 * Has to be the memory-operand variant because only that
6a9e5292725177 Thomas Gleixner       2019-02-18  660  	 * guarantees the CPU buffer flush functionality according to
6a9e5292725177 Thomas Gleixner       2019-02-18  661  	 * documentation. The register-operand variant does not.
6a9e5292725177 Thomas Gleixner       2019-02-18  662  	 * Works with any segment selector, but a valid writable
6a9e5292725177 Thomas Gleixner       2019-02-18  663  	 * data segment is the fastest variant.
6a9e5292725177 Thomas Gleixner       2019-02-18  664  	 *
6a9e5292725177 Thomas Gleixner       2019-02-18  665  	 * "cc" clobber is required because VERW modifies ZF.
6a9e5292725177 Thomas Gleixner       2019-02-18  666  	 */
6a9e5292725177 Thomas Gleixner       2019-02-18  667  	asm volatile("verw %[ds]" : : [ds] "m" (ds) : "cc");
6a9e5292725177 Thomas Gleixner       2019-02-18  668  }
6a9e5292725177 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-16 23:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16 23:37 [kkdwivedi:cancellations-backup/scratch/guards-tested 3/51] arch/x86/include/asm/nospec-branch.h:656:31: error: '__KERNEL_DS' undeclared 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.