Linux kernel source tree
Find a file
Kees Cook c0029de509 net/scm: Regularize compat handling of scm_detach_fds()
Duplicate the cleanups from commit 2618d530dd ("net/scm: cleanup
scm_detach_fds") into the compat code.

Replace open-coded __receive_sock() with a call to the helper.

Move the check added in commit 1f466e1f15 ("net: cleanly handle kernel
vs user buffers for ->msg_control") to before the compat call, even
though it should be impossible for an in-kernel call to also be compat.

Correct the int "flags" argument to unsigned int to match fd_install()
and similar APIs.

Regularize any remaining differences, including a whitespace issue,
a checkpatch warning, and add the check from commit 6900317f5e ("net,
scm: fix PaX detected msg_controllen overflow in scm_detach_fds") which
fixed an overflow unique to 64-bit. To avoid confusion when comparing
the compat handler to the native handler, just include the same check
in the compat handler.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Sargun Dhillon <sargun@sargun.me>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
2020-07-13 11:03:44 -07:00
arch seccomp: Use -1 marker for end of mode 1 syscall list 2020-07-10 16:01:52 -07:00
block
certs
crypto
Documentation
drivers
fs seccomp: Report number of loaded filters in /proc/$pid/status 2020-07-10 16:01:51 -07:00
include net/scm: Regularize compat handling of scm_detach_fds() 2020-07-13 11:03:44 -07:00
init seccomp: Report number of loaded filters in /proc/$pid/status 2020-07-10 16:01:51 -07:00
ipc
kernel pidfd: Add missing sock updates for pidfd_getfd() 2020-07-13 11:03:44 -07:00
lib
LICENSES
mm
net net/scm: Regularize compat handling of scm_detach_fds() 2020-07-13 11:03:44 -07:00
samples
scripts
security Add additional LSM hooks for SafeSetID 2020-06-14 11:39:31 -07:00
sound
tools selftests/seccomp: Check ENOSYS under tracing 2020-07-10 16:01:52 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 5.8-rc1 2020-06-14 12:45:04 -07:00
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.