Re: [RFCv1 1/6] mm: Make get_vma_name() function public

2024-11-18 Thread Lorenzo Stoakes
On Sat, Nov 16, 2024 at 05:59:17PM +, Pasha Tatashin wrote: > Page Detective will be using get_vma_name() that is currently used by > fs/proc to show names of VMAs in /proc//smaps for example. > > Move this function to mm/vma.c, and make it accessible by modules. This is incorrect. mm/vma.c i

Re: [RFCv1 4/6] misc/page_detective: Introduce Page Detective

2024-11-18 Thread Lorenzo Stoakes
On Sat, Nov 16, 2024 at 05:59:20PM +, Pasha Tatashin wrote: > Page Detective is a kernel debugging tool that provides detailed > information about the usage and mapping of physical memory pages. > > It operates through the Linux debugfs interface, providing access > to both virtual and physical

Re: [RFCv1 2/6] pagewalk: Add a page table walker for init_mm page table

2024-11-18 Thread Lorenzo Stoakes
On Sun, Nov 17, 2024 at 10:49:06PM -0800, Christoph Hellwig wrote: > On Sat, Nov 16, 2024 at 05:59:18PM +, Pasha Tatashin wrote: > > } while (start = next, start < end); > > return err; > > } > > +EXPORT_SYMBOL_GPL(walk_page_range); > > Umm, no. We really should not expose all these p

Re: [RFCv1 0/6] Page Detective

2024-11-18 Thread Lorenzo Stoakes
On Sat, Nov 16, 2024 at 05:59:16PM +, Pasha Tatashin wrote: > Page Detective is a new kernel debugging tool that provides detailed > information about the usage and mapping of physical memory pages. > > It is often known that a particular page is corrupted, but it is hard to > extract more info

Re: [PATCH v6 11/33] riscv/mm : ensure PROT_WRITE leads to VM_READ | VM_WRITE

2024-10-09 Thread Lorenzo Stoakes
On Tue, Oct 08, 2024 at 03:36:53PM -0700, Deepak Gupta wrote: > `arch_calc_vm_prot_bits` is implemented on risc-v to return VM_READ | > VM_WRITE if PROT_WRITE is specified. Similarly `riscv_sys_mmap` is > updated to convert all incoming PROT_WRITE to (PROT_WRITE | PROT_READ). > This is to make sure

[PATCH] x86: fix memory ranges in mm documentation

2016-08-23 Thread Lorenzo Stoakes
This is a trivial fix to correct upper bound addresses to always be inclusive. Previously, the majority of ranges specified were inclusive with a small minority specifying an exclusive upper bound. This patch fixes this inconsistency. Signed-off-by: Lorenzo Stoakes --- Documentation/x86/x86_64