Can't start HHVM with PAX kernel enabled
I'm using linux kernel 3.17.7 with grsecurity patches, trying to start HHVM gives:
2015-01-11 20:50:11 Golem kernel PAX: From 83.134.219.8: execution attempt in:
It's a JIT, so it needs to be able to execute memory that it wrote to. Look for documentation on whitelisting processes - possibly labelled as 'NX' or non-executable pages. If there's documentation for the JVM, similar steps should apply to HHVM.
paxctl-ng -pem /usr/bin/hhvm solved tthe issue, maybe it will be good to handle this in ebuild script.