* [PATCH] io_uring: return back safer resurrect
[not found] ` <7a080c20f686d026efade810b116b72f88abaff9.1618101759.git.asml.silence@gmail.com>
@ 2022-03-16 16:18 ` Lee Jones
2022-03-16 16:38 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Lee Jones @ 2022-03-16 16:18 UTC (permalink / raw)
To: Pavel Begunkov, stable; +Cc: Jens Axboe, io-uring
Stable Team,
> Revert of revert of "io_uring: wait potential ->release() on resurrect",
> which adds a helper for resurrect not racing completion reinit, as was
> removed because of a strange bug with no clear root or link to the
> patch.
>
> Was improved, instead of rcu_synchronize(), just wait_for_completion()
> because we're at 0 refs and it will happen very shortly. Specifically
> use non-interruptible version to ignore all pending signals that may
> have ended prior interruptible wait.
>
> This reverts commit cb5e1b81304e089ee3ca948db4d29f71902eb575.
>
> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
> ---
> fs/io_uring.c | 18 ++++++++++++++----
> 1 file changed, 14 insertions(+), 4 deletions(-)
Please back-port this as far as it will apply.
Definitely through v5.10.y.
It solves a critical bug.
Subject: "io_uring: return back safer resurrect"
Upstream commit:: f70865db5ff35f5ed0c7e9ef63e7cca3d4947f04
--
Lee Jones [李琼斯]
Principal Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] io_uring: return back safer resurrect
2022-03-16 16:18 ` [PATCH] io_uring: return back safer resurrect Lee Jones
@ 2022-03-16 16:38 ` Greg KH
2022-03-16 16:46 ` Lee Jones
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2022-03-16 16:38 UTC (permalink / raw)
To: Lee Jones; +Cc: Pavel Begunkov, stable, Jens Axboe, io-uring
On Wed, Mar 16, 2022 at 04:18:16PM +0000, Lee Jones wrote:
> Stable Team,
>
> > Revert of revert of "io_uring: wait potential ->release() on resurrect",
> > which adds a helper for resurrect not racing completion reinit, as was
> > removed because of a strange bug with no clear root or link to the
> > patch.
> >
> > Was improved, instead of rcu_synchronize(), just wait_for_completion()
> > because we're at 0 refs and it will happen very shortly. Specifically
> > use non-interruptible version to ignore all pending signals that may
> > have ended prior interruptible wait.
> >
> > This reverts commit cb5e1b81304e089ee3ca948db4d29f71902eb575.
> >
> > Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
> > ---
> > fs/io_uring.c | 18 ++++++++++++++----
> > 1 file changed, 14 insertions(+), 4 deletions(-)
>
> Please back-port this as far as it will apply.
>
> Definitely through v5.10.y.
>
> It solves a critical bug.
>
> Subject: "io_uring: return back safer resurrect"
>
> Upstream commit:: f70865db5ff35f5ed0c7e9ef63e7cca3d4947f04
It only applies to 5.10.y. It showed up in 5.12, so if you want it
further back than 5.10.y, can you provide a working backport?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] io_uring: return back safer resurrect
2022-03-16 16:38 ` Greg KH
@ 2022-03-16 16:46 ` Lee Jones
0 siblings, 0 replies; 3+ messages in thread
From: Lee Jones @ 2022-03-16 16:46 UTC (permalink / raw)
To: Greg KH; +Cc: Pavel Begunkov, stable, Jens Axboe, io-uring
On Wed, 16 Mar 2022, Greg KH wrote:
> On Wed, Mar 16, 2022 at 04:18:16PM +0000, Lee Jones wrote:
> > Stable Team,
> >
> > > Revert of revert of "io_uring: wait potential ->release() on resurrect",
> > > which adds a helper for resurrect not racing completion reinit, as was
> > > removed because of a strange bug with no clear root or link to the
> > > patch.
> > >
> > > Was improved, instead of rcu_synchronize(), just wait_for_completion()
> > > because we're at 0 refs and it will happen very shortly. Specifically
> > > use non-interruptible version to ignore all pending signals that may
> > > have ended prior interruptible wait.
> > >
> > > This reverts commit cb5e1b81304e089ee3ca948db4d29f71902eb575.
> > >
> > > Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
> > > ---
> > > fs/io_uring.c | 18 ++++++++++++++----
> > > 1 file changed, 14 insertions(+), 4 deletions(-)
> >
> > Please back-port this as far as it will apply.
> >
> > Definitely through v5.10.y.
> >
> > It solves a critical bug.
> >
> > Subject: "io_uring: return back safer resurrect"
> >
> > Upstream commit:: f70865db5ff35f5ed0c7e9ef63e7cca3d4947f04
>
> It only applies to 5.10.y. It showed up in 5.12, so if you want it
> further back than 5.10.y, can you provide a working backport?
Works for me, thanks.
--
Lee Jones [李琼斯]
Principal Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-16 16:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1618101759.git.asml.silence@gmail.com>
[not found] ` <7a080c20f686d026efade810b116b72f88abaff9.1618101759.git.asml.silence@gmail.com>
2022-03-16 16:18 ` [PATCH] io_uring: return back safer resurrect Lee Jones
2022-03-16 16:38 ` Greg KH
2022-03-16 16:46 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox