Linux network filesystem support library
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: David Howells <dhowells@redhat.com>
Cc: Paulo Alcantara <pc@manguebit.org>, netfs@lists.linux.dev
Subject: Re: Function to do end-writeback in bulk
Date: Mon, 24 Aug 2026 20:27:02 +0100	[thread overview]
Message-ID: <aoybBhYB7Km3y0qG@casper.infradead.org> (raw)
In-Reply-To: <770270.1787598865@warthog.procyon.org.uk>

On Mon, Aug 24, 2026 at 08:14:25PM +0100, David Howells wrote:
> Matthew Wilcox <willy@infradead.org> wrote:
> 
> > Jan's more of an expert on the writeback path than I am, but once we've
> > cleared the PG_writeback flag on the folio, there's nothing preventing
> > us from removing the folio from the pagecache, right?  So the inode could
> > then be evicted, and then doing mapping->host would be a UAF.
> 
> netfs inode cleanup waits for all outstanding requests to complete, which
> would include writeback.

I don't think core kernel code can depend on that behaviour from all
filesystems that do writeback though.

  reply	other threads:[~2026-08-24 19:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-24 15:09 Function to do end-writeback in bulk David Howells
2026-08-24 15:25 ` Matthew Wilcox
2026-08-24 15:47   ` David Howells
2026-08-24 16:16     ` Matthew Wilcox
2026-08-24 19:14       ` David Howells
2026-08-24 19:27         ` Matthew Wilcox [this message]
2026-09-01  7:17     ` David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aoybBhYB7Km3y0qG@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=dhowells@redhat.com \
    --cc=netfs@lists.linux.dev \
    --cc=pc@manguebit.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox