Re: [PATCH v2] io_uring/waitid: clear waitid info before copying it to userspace
Jens Axboe <[email protected]>
| Newsgroups | org.kernel.vger.io-uring,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <177895835836.925638.10996898303585193992.b4-ty@b4> |
On Sun, 17 May 2026 03:47:09 +0900, Heechan Kang wrote:
> IORING_OP_WAITID stores its result fields in struct io_waitid::info and
> later copies them to userspace siginfo. The prep path initializes the
> request arguments, but it does not initialize info itself.
>
> If the wait operation completes without reporting a child event, the common
> wait code can return without writing wo_info. In that case io_waitid_finish()
> still copies iw->info to userspace, exposing stale bytes from the reused
> io_kiocb command storage.
>
> [...]
Applied, thanks!
[1/1] io_uring/waitid: clear waitid info before copying it to userspace
commit: 93d93f5f8da791e98159795c6ef683f45bd95d13
Best regards,
--
Jens Axboe