[GIT PULL] x86/vdso for v6.3-rc1

From: Borislav Petkov
Date: Mon Feb 20 2023 - 13:26:37 EST


Hi Linus,

please pull a bunch of x86 vdso improvements for 6.3.

Thx.

---

The following changes since commit 2241ab53cbb5cdb08a6b2d4688feb13971058f65:

Linux 6.2-rc5 (2023-01-21 16:27:01 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_vdso_for_v6.3_rc1

for you to fetch changes up to dac0da428f8dfb23666ab4ea54a7768c152b857a:

x86/vdso: Fix -Wmissing-prototypes warnings (2023-02-07 18:23:17 +0100)

----------------------------------------------------------------
- Add getcpu support for the 32-bit version of the vDSO

- Some smaller fixes

----------------------------------------------------------------
Borislav Petkov (AMD) (1):
x86/vdso: Fix -Wmissing-prototypes warnings

Brian Gerst (1):
x86/vdso: Move VDSO image init to vdso2c generated code

Sebastian Andrzej Siewior (4):
x86/cpu: Provide the full setup for getcpu() on x86-32
x86/vdso: Provide getcpu for x86-32.
selftests: Emit a warning if getcpu() is missing on 32bit
x86/vdso: Fake 32bit VDSO build on 64bit compile for vgetcpu

arch/x86/entry/vdso/Makefile | 3 ++-
arch/x86/entry/vdso/vdso2c.h | 6 ++++++
arch/x86/entry/vdso/vdso32-setup.c | 9 ---------
arch/x86/entry/vdso/vdso32/fake_32bit_build.h | 25 +++++++++++++++++++++++++
arch/x86/entry/vdso/vdso32/vclock_gettime.c | 27 +--------------------------
arch/x86/entry/vdso/vdso32/vdso32.lds.S | 1 +
arch/x86/entry/vdso/vdso32/vgetcpu.c | 3 +++
arch/x86/entry/vdso/vgetcpu.c | 3 +--
arch/x86/entry/vdso/vma.c | 19 ++++---------------
arch/x86/include/asm/processor.h | 1 -
arch/x86/include/asm/segment.h | 8 ++++----
arch/x86/include/asm/vdso.h | 2 +-
arch/x86/include/asm/vdso/gettimeofday.h | 2 ++
arch/x86/include/asm/vdso/processor.h | 4 ++++
arch/x86/kernel/cpu/common.c | 5 +----
tools/testing/selftests/x86/test_vsyscall.c | 7 ++-----
16 files changed, 57 insertions(+), 68 deletions(-)
create mode 100644 arch/x86/entry/vdso/vdso32/fake_32bit_build.h
create mode 100644 arch/x86/entry/vdso/vdso32/vgetcpu.c

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette