Re: [PATCH v3 4/5] selftests/mseal: add more tests for mmap

2024-09-08 Thread Pedro Falcato
On Sun, Sep 8, 2024 at 10:35 PM Pedro Falcato wrote: > Hi, > > I agree with most of the points. Sitting down here to write unofficial > guidelines for mseal behavior. > > mseal should seal regions and mark them immutable, which means their > protection > and contents (ish?) (not _only_ backing ma

Re: [PATCH v3 4/5] selftests/mseal: add more tests for mmap

2024-09-08 Thread Pedro Falcato
On Sat, Sep 07, 2024 at 08:27:52PM GMT, Lorenzo Stoakes wrote: > On Fri, Aug 30, 2024 at 04:57:26PM GMT, Jeff Xu wrote: > > On Fri, Aug 30, 2024 at 12:23 PM Lorenzo Stoakes > > wrote: > > > > > > On Fri, Aug 30, 2024 at 07:43:12PM GMT, Lorenzo Stoakes wrote: > > > > On Fri, Aug 30, 2024 at 06:02:3

[PATCH] powerpc: Add __must_check to set_memory_...()

2024-09-08 Thread Christophe Leroy
After the following powerpc commits, all calls to set_memory_...() functions check returned value. - Commit 8f17bd2f4196 ("powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx()") - Commit f7f18e30b468 ("powerpc/kprobes: Handle error returned by set_memory_rox()") - Commit 009cf11d4aab ("p

[PATCH] set_memory: Add __must_check to generic stubs

2024-09-08 Thread Christophe Leroy
Following query shows that architectures that don't provide asm/set_memory.h don't use set_memory_...() functions. $ git grep set_memory_ alpha arc csky hexagon loongarch m68k microblaze mips nios2 openrisc parisc sh sparc um xtensa Following query shows that all core users of set_memory_...()