On Thu, Feb 24, 2022 at 09:22:04AM -0500, matoro wrote: > Hi Kees, I can provide live ssh access to my system exhibiting the issue. > My system is a lot more stable due to using openrc rather than systemd, for > me GCC seems to be the only binary affected. Would that be helpful? Thanks for this access! I think I see the problem. Non-PIE (i.e. normal ET_EXEC) ia64 binaries appear to have two very non-contiguous virtual memory PT_LOAD segments that are file-offset adjacent. As seen in readelf -lW: LOAD 0x000000 0x4000000000000000 0x4000000000000000 0x00b5a0 0x00b5a0 R E 0x10000 LOAD 0x00b5a0 0x600000000000b5a0 0x600000000000b5a0 0x0005ac 0x000710 RW 0x10000 ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ When the kernel tries to map these with a combined allocation, it asks for a giant mmap of the file, but the file is, of course, not at all that large, and the mapping is rejected. So... I'm trying to think about how best to deal with this. If I or anyone else can't think of an elegant solution, I'll send a revert for the offending patch next week. In the meantime now I've got another dimension to regression test. ;) -- Kees Cook