Re: [PATCH] mm: Keep memory type same on DEVMEM Page-Fault
From: Andrew Morton
Date: Sun Apr 16 2023 - 14:39:55 EST
On Wed, 12 Apr 2023 14:22:36 -0700 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Sun, 19 Mar 2023 11:37:50 +0800 "buddy.zhang" <buddy.zhang@xxxxxxxxxxxx> wrote:
>
> > On X86 architecture, supports memory type on Page-table, such as
> > PTE is PAT/PCD/PWD, which can setup up Memory Type as WC/WB/WT/UC etc.
> > Then, Virtual address from userspace or kernel space can map to
> > same physical page, if each page table has different memory type,
> > then it's confused to have more memory type for same physical page.
>
> Thanks. Nobody has worked on this code for a long time. I'll cc a few
> folks who may be able to comment.
>
Well that didn't go very well.
Buddy, can you please explain what are the user-visible effects of the
bug? Does the kernel crash? Memory corruption, etc? Thanks.