Go to file
David Howells acc657692a keys, dns: Fix size check of V1 server-list header
Fix the size check added to dns_resolver_preparse() for the V1 server-list
header so that it doesn't give EINVAL if the size supplied is the same as
the size of the header struct (which should be valid).

This can be tested with:

        echo -n -e '\0\0\01\xff\0\0' | keyctl padd dns_resolver desc @p

which will give "add_key: Invalid argument" without this fix.

Fixes: 1997b3cb42 ("keys, dns: Fix missing size check of V1 server-list header")
Reported-by: Pengfei Xu <pengfei.xu@intel.com>
Link: https://lore.kernel.org/r/ZZ4fyY4r3rqgZL+4@xpf.sh.intel.com/
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2024-01-10 13:20:08 -08:00
Documentation This update includes the following changes: 2024-01-10 12:23:43 -08:00
LICENSES
arch This update includes the following changes: 2024-01-10 12:23:43 -08:00
block Many singleton patches against the MM code. The patch series which 2024-01-09 11:18:47 -08:00
certs
crypto
drivers This update includes the following changes: 2024-01-10 12:23:43 -08:00
fs hardening updates for v6.8-rc1 2024-01-10 11:03:52 -08:00
include This update includes the following changes: 2024-01-10 12:23:43 -08:00
init
io_uring Many singleton patches against the MM code. The patch series which 2024-01-09 11:18:47 -08:00
ipc
kernel hardening updates for v6.8-rc1 2024-01-10 11:03:52 -08:00
lib This update includes the following changes: 2024-01-10 12:23:43 -08:00
mm New code for 6.8: 2024-01-10 08:45:22 -08:00
net keys, dns: Fix size check of V1 server-list header 2024-01-10 13:20:08 -08:00
rust
samples hardening updates for v6.8-rc1 2024-01-10 11:03:52 -08:00
scripts Quite a lot of kexec work this time around. Many singleton patches in 2024-01-09 11:46:20 -08:00
security integrity-v6.8 2024-01-09 13:24:06 -08:00
sound linux_kselftest-kunit-6.8-rc1 2024-01-09 17:16:58 -08:00
tools This update includes the following changes: 2024-01-10 12:23:43 -08:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap lsm/stable-6.8 PR 20240105 2024-01-09 12:57:46 -08:00
.rustfmt.toml
COPYING
CREDITS Quite a lot of kexec work this time around. Many singleton patches in 2024-01-09 11:46:20 -08:00
Kbuild
Kconfig
MAINTAINERS This update includes the following changes: 2024-01-10 12:23:43 -08:00
Makefile Quite a lot of kexec work this time around. Many singleton patches in 2024-01-09 11:46:20 -08:00
README

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.