Re: [PATCH v8 5/7] mseal sysmap: uprobe mapping

2025-03-03 Thread Kees Cook
On Mon, Mar 03, 2025 at 05:09:19AM +, jef...@chromium.org wrote: > From: Jeff Xu > > Provide support to mseal the uprobe mapping. > > Unlike other system mappings, the uprobe mapping is not > established during program startup. However, its lifetime is the same > as the process's lifetime. I

Re: [PATCH v8 5/7] mseal sysmap: uprobe mapping

2025-03-03 Thread Liam R. Howlett
* jef...@chromium.org [250303 00:09]: > From: Jeff Xu > > Provide support to mseal the uprobe mapping. > > Unlike other system mappings, the uprobe mapping is not > established during program startup. However, its lifetime is the same > as the process's lifetime. It could be sealed from creatio

Re: [PATCH v8 5/7] mseal sysmap: uprobe mapping

2025-03-03 Thread Lorenzo Stoakes
On Mon, Mar 03, 2025 at 05:09:19AM +, jef...@chromium.org wrote: > From: Jeff Xu > > Provide support to mseal the uprobe mapping. > > Unlike other system mappings, the uprobe mapping is not > established during program startup. However, its lifetime is the same > as the process's lifetime. It

Re: [PATCH v8 5/7] mseal sysmap: uprobe mapping

2025-03-02 Thread Oleg Nesterov
On 03/03, jef...@chromium.org wrote: > > @@ -1683,7 +1683,8 @@ static int xol_add_vma(struct mm_struct *mm, struct > xol_area *area) > } > > vma = _install_special_mapping(mm, area->vaddr, PAGE_SIZE, > - VM_EXEC|VM_MAYEXEC|VM_DONTCOPY|VM_IO, > +

[PATCH v8 5/7] mseal sysmap: uprobe mapping

2025-03-02 Thread jeffxu
From: Jeff Xu Provide support to mseal the uprobe mapping. Unlike other system mappings, the uprobe mapping is not established during program startup. However, its lifetime is the same as the process's lifetime. It could be sealed from creation. Test was done with perf tool, and observe the upr