Re: [PATCH] drivers/char/mem: mmap readonly MAP_SHARED-/dev/zero correctly
From: David Hildenbrand (Arm)
Date: Tue Sep 29 2026 - 02:15:11 EST
On 9/29/26 02:26, Andrew Morton wrote:
> On Mon, 28 Sep 2026 13:59:47 +0200 "David Hildenbrand (Arm)" <david@xxxxxxxxxx> wrote:
>
>>
>>>
>>>
>>> I would say this patch is the right fix for the moment to fix the assert, and we
>>> can chase up with other approaches afterwards.
>>
>> It will get backported, so we better be careful.
>
> I don't think it'll get backported. I hope not.
>
> The Fixes: target of 93c0c8dc87f6 ("mm/rmap: use anon pgoff to track
> MAP_PRIVATE file-backed anon folios") is new in v7.3-rc1, so this will
> go in as a hotfix against this -rc cycle only.
Ah, ok. I was assuming for a second that we can trigger some otherwise
unpleasant conditions with anon folios in non-cow mappings. If we're not aware
of any, it is indeed not relevant to backport.
--
Cheers,
David