Thread (15 messages) 15 messages, 4 authors, 2016-10-30

Re: [PATCH] aio: fix a user triggered use after free (and fix freeze protection of aio writes)

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-10-29 20:09:27
Also in: linux-fsdevel, lkml

On Sat, Oct 29, 2016 at 12:17 PM, Al Viro [off-list ref] wrote:
AFAICS, the possibility of dropping the last reference to struct file
before ->write_iter() has returned is fundamentally broken.  I might be
missing something subtle here, but...
Ok, let's add a get_file(); fput(); around that whole iter call sequence.

And that's a separate issue from "we should hold the fs freezer lock
around the whole operation". So I think we need both.

Does that make everybody happy?

              Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help