Go to file
Pavel Begunkov 0091bfc817 io_uring/af_unix: defer registered files gc to io_uring release
Instead of putting io_uring's registered files in unix_gc() we want it
to be done by io_uring itself. The trick here is to consider io_uring
registered files for cycle detection but not actually putting them down.
Because io_uring can't register other ring instances, this will remove
all refs to the ring file triggering the ->release path and clean up
with io_ring_ctx_free().

Cc: stable@vger.kernel.org
Fixes: 6b06314c47 ("io_uring: add file set registration")
Reported-and-tested-by: David Bouman <dbouman03@gmail.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
[axboe: add kerneldoc comment to skb, fold in skb leak fix]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-10-12 16:30:34 -06:00
Documentation 24 ksmbd server fixes 2022-10-07 08:19:26 -07:00
LICENSES
arch for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
block for-6.1/passthrough-2022-10-04 2022-10-07 09:35:50 -07:00
certs certs: make system keyring depend on built-in x509 parser 2022-09-24 04:31:18 +09:00
crypto
drivers drm fix for 6.1-rc1 2022-10-07 09:47:47 -07:00
fs for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
include io_uring/af_unix: defer registered files gc to io_uring release 2022-10-12 16:30:34 -06:00
init Kbuild: add Rust support 2022-09-28 09:02:20 +02:00
io_uring io_uring/af_unix: defer registered files gc to io_uring release 2022-10-12 16:30:34 -06:00
ipc
kernel for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
lib for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
mm for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
net io_uring/af_unix: defer registered files gc to io_uring release 2022-10-12 16:30:34 -06:00
rust Kbuild: add Rust support 2022-09-28 09:02:20 +02:00
samples ARM: driver updates for 6.1 2022-10-06 11:04:57 -07:00
scripts Networking changes for 6.1. 2022-10-04 13:38:03 -07:00
security whack-a-mole: constifying struct path * 2022-10-06 17:31:02 -07:00
sound sound updates for 6.1-rc1 2022-10-05 12:02:07 -07:00
tools for-6.1/io_uring-2022-10-03 2022-10-07 08:52:43 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore Kbuild: add Rust support 2022-09-28 09:02:20 +02:00
.mailmap Qualcomm ARM64 DTS fixes for 6.0 2022-09-23 16:44:37 +02:00
.rustfmt.toml rust: add `.rustfmt.toml` 2022-09-28 09:02:20 +02:00
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
Makefile hardening updates for v6.1-rc1 2022-10-03 17:24:22 -07: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.