Linux kernel modifications for the Kernel Hacking exam
Find a file
Jens Axboe 3fb1bd6881 io_uring/net: handle -EINPROGRESS correct for IORING_OP_CONNECT
We treat EINPROGRESS like EAGAIN, but if we're retrying post getting
EINPROGRESS, then we just need to check the socket for errors and
terminate the request.

This was exposed on a bluetooth connection request which ends up
taking a while and hitting EINPROGRESS, and yields a CQE result of
-EBADFD because we're retrying a connect on a socket that is now
connected.

Cc: stable@vger.kernel.org
Fixes: 87f80d623c ("io_uring: handle connect -EINPROGRESS like -EAGAIN")
Link: https://github.com/axboe/liburing/issues/671
Reported-by: Aidan Sun <aidansun05@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-10-12 16:30:56 -06:00
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
Documentation 24 ksmbd server fixes 2022-10-07 08:19:26 -07:00
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: remove notif leftovers 2022-10-12 16:30:56 -06:00
init Kbuild: add Rust support 2022-09-28 09:02:20 +02:00
io_uring io_uring/net: handle -EINPROGRESS correct for IORING_OP_CONNECT 2022-10-12 16:30:56 -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
LICENSES
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

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.