Re: [PATCH] mm/page-writeback: document folio_mark_dirty() locking more explicitly

From: Jann Horn

Date: Mon Aug 10 2026 - 14:30:10 EST


On Mon, Aug 10, 2026 at 7:36 PM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
> On Mon, Aug 10, 2026 at 06:02:36PM +0200, Jann Horn wrote:
> > I have found two out-of-tree driver bugs in the past where set_page_dirty()
> > was used on a page from GUP without appropriate locking, leading to UAF:
>
> More documentation is always good, but out of tree drivers are totally
> irrelevant for upstream, so please reword your commit message to be
> relevant for the kernel itself and drop these references.

Ack, I've reworded the commit message and added some more examples I
found in mainline history.