Pulling slabs out of struct page
Pulling slabs out of struct page
Posted Oct 10, 2021 14:39 UTC (Sun) by willy (subscriber, #9762)In reply to: Pulling slabs out of struct page by luto
Parent article: Pulling slabs out of struct page
> In my dream world, the low-level memory failure / machine check code gets a virtual address and can look up a VMA or vmap area. Making this work with kmap might be interesting.
I don't think your dream world is possible. It's the same problem the page cache has with errors on writeback -- the producer might not be around any more. We might have unmapped the vmap/kmap; the user process that dirtied the cache line might have exited, or just been switched away from.
But more importantly, unless the cache is writethrough, the CPU no longer knows which virtual address(es) were used to dirty the cache line.
