Created attachment 155524 [details] Propagate memory allocation failure to out_of_memory_NORETURN Some memory policies, like selinux deny_execmem cause hard to understand error messages. Provide the user with a hint of what caused an out of memory error. And explain that some memory policies, like selinux deny_execmem might cause Permission denied errors.
commit f32cc294e363f9ea953b22cddcb290954725d83b Author: Mark Wielaard <mark@klomp.org> Date: Sun Jan 22 23:18:18 2023 +0100 Propagate memory allocation failure to out_of_memory_NORETURN Provide the user with a hint of what caused an out of memory error. And explain that some memory policies, like selinux deny_execmem might cause Permission denied errors. Add an err argument to out_of_memory_NORETURN. And change am_shadow_alloc to return a SysRes (all three callers were already checking for errors and calling out_of_memory_NORETURN).