No description
Find a file
Andy Lutomirski dd7de70449 x86/ptrace: Fix xfpregs_set()'s incorrect xmm clearing
commit 44cad52cc1 upstream.

xfpregs_set() handles 32-bit REGSET_XFP and 64-bit REGSET_FP. The actual
code treats these regsets as modern FX state (i.e. the beginning part of
XSTATE). The declarations of the regsets thought they were the legacy
i387 format. The code thought they were the 32-bit (no xmm8..15) variant
of XSTATE and, for good measure, made the high bits disappear by zeroing
the wrong part of the buffer. The latter broke ptrace, and everything
else confused anyone trying to understand the code. In particular, the
nonsense definitions of the regsets confused me when I wrote this code.

Clean this all up. Change the declarations to match reality (which
shouldn't change the generated code, let alone the ABI) and fix
xfpregs_set() to clear the correct bits and to only do so for 32-bit
callers.

Fixes: 6164331d15 ("x86/fpu: Rewrite xfpregs_set()")
Reported-by: Luís Ferreira <contact@lsferreira.net>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=215524
Link: https://lore.kernel.org/r/YgpFnZpF01WwR8wU@zn.tnic
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-19 17:45:37 +08:00
arch x86/ptrace: Fix xfpregs_set()'s incorrect xmm clearing 2023-04-19 17:45:37 +08:00
block block: fix surprise removal for drivers calling blk_set_queue_dying 2023-04-19 17:45:32 +08:00
certs certs: Add support for using elliptic curve keys for signing modules 2021-08-23 19:55:42 +03:00
crypto crypto: api - Move cryptomgr soft dependency into algapi 2023-04-19 17:45:10 +08:00
Documentation ARM: dts: Fix timer regression for beagleboard revision c 2023-04-19 17:45:16 +08:00
drivers i2c: brcmstb: fix support for DSL and CM variants 2023-04-19 17:45:36 +08:00
fs mm: io_uring: allow oom-killer from io_uring_setup 2023-04-19 17:45:34 +08:00
include x86/bug: Merge annotate_reachable() into _BUG_FLAGS() asm 2023-04-19 17:45:33 +08:00
init init: make unknown command line param message clearer 2023-04-19 16:57:51 +08:00
ipc ipc/sem: do not sleep with a spin lock held 2023-04-19 17:45:01 +08:00
kernel cgroup-v1: Correct privileges check in release_agent writes 2023-04-19 17:45:37 +08:00
lib lib/iov_iter: initialize "flags" in new pipe_buffer 2023-04-19 17:45:35 +08:00
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes" 2021-07-15 06:31:24 -06:00
mm mm/filemap: Fix handling of THPs in generic_file_buffered_read() 2023-04-19 17:45:37 +08:00
net net: sched: limit TC_ACT_REPEAT loops 2023-04-19 17:45:36 +08:00
samples samples: bpf: Fix 'unknown warning group' build warning on Clang 2023-04-19 17:43:59 +08:00
scripts kconfig: fix failing to generate auto.conf 2023-04-19 17:45:35 +08:00
security ima: Do not print policy rule with inactive LSM labels 2023-04-19 17:45:10 +08:00
sound ASoC: qcom: Actually clear DMA interrupt register for HDMI 2023-04-19 17:45:32 +08:00
tools tests: fix idmapped mount_setattr test 2023-04-19 17:45:36 +08:00
usr usr/include/Makefile: add linux/nfc.h to the compile-test coverage 2023-04-19 17:44:58 +08:00
virt KVM: eventfd: Fix false positive RCU usage warning 2023-04-19 17:45:14 +08:00
.clang-format clang-format: Update with the latest for_each macro list 2021-05-12 23:32:39 +02:00
.cocciconfig
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl 2019-05-16 10:53:40 -07:00
.gitattributes .gitattributes: use 'dts' diff driver for dts files 2019-12-04 19:44:11 -08:00
.gitignore .gitignore: ignore only top-level modules.builtin 2021-05-02 00:43:35 +09:00
.mailmap mailmap: add Andrej Shadura 2021-10-18 20:22:03 -10:00
COPYING COPYING: state that all contributions really are covered by this file 2020-02-10 13:32:20 -08:00
CREDITS MAINTAINERS: Move Daniel Drake to credits 2021-09-21 08:34:58 +03:00
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y 2020-02-04 01:53:07 +09:00
Kconfig kbuild: ensure full rebuild when the compiler is updated 2020-05-12 13:28:33 +09:00
MAINTAINERS MAINTAINERS: Add entry for RISC-V PMU drivers 2023-01-03 14:26:18 +08:00
Makefile Linux 5.15.25 2023-04-19 17:45:36 +08:00
README Drop all 00-INDEX files from Documentation/ 2018-09-09 15:08:58 -06:00

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.