Re: [PATCH] mm: Keep memory type same on DEVMEM Page-Fault

From: David Hildenbrand
Date: Wed Jun 28 2023 - 05:27:55 EST


On 19.06.23 22:14, Andrew Morton wrote:
On Sun, 16 Apr 2023 11:39:44 -0700 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

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.


Anyone?


With a clear problem description, ad requested by you, I could be motivated to review this and understand the details :)

--
Cheers,

David / dhildenb