Re: [PATCH] fs/aio: fix uaf in sys_io_cancel
From: Benjamin LaHaise
Date: Mon Mar 04 2024 - 12:31:35 EST
On Mon, Mar 04, 2024 at 09:15:47AM -0800, Bart Van Assche wrote:
> On 3/4/24 09:03, Benjamin LaHaise wrote:
> >This is just so wrong there aren't even words to describe it. I
> >recommending reverting all of Bart's patches since they were not reviewed
> >by anyone with a sufficient level of familiarity with fs/aio.c to get it
> >right.
>
> Where were you while my patches were posted for review on the fsdevel
> mailing list and before these were sent to Linus?
That doesn't negate the need for someone with experience in a given
subsystem to sign off on the patches. There are at least 2 other people I
would trust to properly review these patches, and none of their signoffs
are present either.
> A revert request should include a detailed explanation of why the revert
> should happen. Just claiming that something is wrong is not sufficient
> to motivate a revert.
A revert is justified when a series of patches is buggy and had
insufficient review prior to merging. Mainline is not the place to be
testing half baked changes. Getting cancellation semantics and locking
right is *VERY HARD*, and the results of getting it wrong are very subtle
and user exploitable. Using the "a kernel warning hit" approach for work
on cancellation is very much a sign that the patches were half baked.
What testing did you do on your patch series? The commit messages show
nothing of interest regarding testing. Why are you touching the kiocb
after ownership has already been passed on to another entity? This is as
bad as touching memory that has been freed. You clearly do not understand
how that code works.
-ben
--
"Thought is the essence of where you are now."