[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <173687820427.1326090.9681462149230294879.b4-ty@kernel.dk>
Date: Tue, 14 Jan 2025 11:10:04 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Pavel Begunkov <asml.silence@...il.com>, io-uring@...r.kernel.org,
Jann Horn <jannh@...gle.com>
Cc: linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH] io_uring/rsrc: require cloned buffers to share
accounting contexts
On Tue, 14 Jan 2025 18:49:00 +0100, Jann Horn wrote:
> When IORING_REGISTER_CLONE_BUFFERS is used to clone buffers from uring
> instance A to uring instance B, where A and B use different MMs for
> accounting, the accounting can go wrong:
> If uring instance A is closed before uring instance B, the pinned memory
> counters for uring instance B will be decremented, even though the pinned
> memory was originally accounted through uring instance A; so the MM of
> uring instance B can end up with negative locked memory.
>
> [...]
Applied, thanks!
[1/1] io_uring/rsrc: require cloned buffers to share accounting contexts
commit: 19d340a2988d4f3e673cded9dde405d727d7e248
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists