[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Zh1VT-6wKfeE0VJS@casper.infradead.org>
Date: Mon, 15 Apr 2024 17:26:55 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Suren Baghdasaryan <surenb@...gle.com>
Cc: Peter Xu <peterx@...hat.com>,
"Liam R. Howlett" <Liam.Howlett@...cle.com>,
LKML <linux-kernel@...r.kernel.org>, linux-mm@...ck.org,
Andrew Morton <akpm@...ux-foundation.org>,
Lokesh Gidra <lokeshgidra@...gle.com>,
Alistair Popple <apopple@...dia.com>
Subject: Re: [PATCH] mm: Always sanity check anon_vma first for per-vma locks
On Mon, Apr 15, 2024 at 09:19:06AM -0700, Suren Baghdasaryan wrote:
> On Mon, Apr 15, 2024 at 9:13 AM Matthew Wilcox <willy@...radead.org> wrote:
> > The tcp vma is not file backed, but I'm pretty sure that COW is not
> > something they want, so there's never an anon_vma. It's for pages
> > that contain received TCP packets; ie it's mmaped TCP.
>
> I was following
> tcp_zerocopy_receive()->tcp_zerocopy_vm_insert_batch()->vm_insert_pages()->insert_page_in_batch_locked()->validate_page_before_insert()
> which errors out for PageAnon(page). So, I assumed this path works on
> file-backed pages but I'm not familiar with this code at all.
It turns out there are pages which are neither file nor anon ;-)
I have a partial list here:
https://kernelnewbies.org/MatthewWilcox/Memdescs
but I don't even have TCP on that list. I haven't looked into what they
need -- I don't think they need mapping, index, etc, but I need to
figure that out.
Powered by blists - more mailing lists