selftests/rseq: x86-32: use %gs segment selector for accessing rseq thread area
Mathieu Desnoyers authored
commit 127b6429

 upstream.

Rather than use rseq_get_abi() and pass its result through a register to
the inline assembler, directly access the per-thread rseq area through a
memory reference combining the %gs segment selector, the constant offset
of the field in struct rseq, and the rseq_offset value (in a register).
Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220124171253.22072-16-mathieu.desnoyers@efficios.com

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
dc282528
Name Last commit Last update
Documentation iio: adc: vf610: fix conversion mode sysfs node name
LICENSES LICENSES: Rename other to deprecated
arch s390: remove unneeded 'select BUILD_BIN2C'
block block: fix bio_clone_blkg_association() to associate with proper blkcg_gq
certs certs/blacklist_hashes.c: fix const confusion in certs blacklist
crypto crypto: drbg - make reseeding from get_random_bytes() synchronous
drivers net: dsa: bcm_sf2: force pause link settings
fs afs: Fix dynamic root getattr
include linux/dim: Fix divide by 0 in RDMA DIM
init random: handle latent entropy and command line from random_init()
ipc ipc/mqueue: use get_tree_nodev() in mqueue_get_tree()
kernel kexec_file: drop weak attribute from arch_kexec_apply_relocations[_add]
lib random: remove ratelimiting for in-kernel unseeded randomness
mm random: move randomize_page() into mm where it belongs
net ipv6/sit: fix ipip6_tunnel_get_prl return value
samples samples/kretprobes: Fix return value if register_kretprobe() failed
scripts modpost: fix section mismatch check for exported init/exit sections
security efi: Do not import certificates from UEFI Secure Boot for T2 Macs
sound ALSA: hda/realtek: Add quirk for Clevo PD70PNT
tools selftests/rseq: x86-32: use %gs segment selector for accessing rseq thread area
usr initramfs: restore default compression behavior
virt KVM: Prevent module exit until all VMs are freed
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.