public inbox for [email protected]
help / color / mirror / Atom feedFrom: Kirill Reshke <[email protected]>
To: Andres Freund <[email protected]>
Cc: [email protected]
Subject: Re: io_uring: Fix danger of completion getting reused before being read
Date: Thu, 15 Jan 2026 23:53:56 +0500
Message-ID: <CALdSSPgLT1PP5hzqr1o+fGV_HjMSThvPsSSPiGOeLBwUaWO1eg@mail.gmail.com> (raw)
In-Reply-To: <bwo3e5lj2dgi2wzq4yvbyzu7nmwueczvvzioqsqo6azu6lm5oy@pbx75g2ach3p>
References: <bwo3e5lj2dgi2wzq4yvbyzu7nmwueczvvzioqsqo6azu6lm5oy@pbx75g2ach3p>
On Thu, 15 Jan 2026 at 20:38, Andres Freund <[email protected]> wrote:
>
> Hi,
>
> I privately got a report about a bug in method_io_uring.c:
>
> We are calling io_uring_cqe_seen(..., cqe) before reading cqe->res. That
> allows the completion to be reused, which in turn could lead to cqe->res being
> overwritten. The window for that is very narrow and the likelihood of it
> happening is very low, as we should never actually utilize all CQEs, but the
> consequences would be bad.
>
> I plan to push the fix soon-ish.
>
> Greetings,
>
> Andres Freund
I see this is already committed as 807764990. Just pointing in case
somebody wants to review.
--
Best regards,
Kirill Reshke
view thread (3+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: io_uring: Fix danger of completion getting reused before being read
In-Reply-To: <CALdSSPgLT1PP5hzqr1o+fGV_HjMSThvPsSSPiGOeLBwUaWO1eg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox