hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

Can't start HHVM with PAX kernel enabled

Open atomekl opened this issue 11 years ago • 2 comments

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: , 638cf67000-6399c00000 638cf67000 2015-01-11 20:50:11 Golem kernel PAX: terminating task: /usr/bin/hhvm(hhvm):13491, uid/euid: 0/0, PC: 000000638d008270, SP: 0000038acc17eee0 2015-01-11 20:50:11 Golem kernel PAX: bytes at PC: 48 89 ef 48 89 de e8 05 fc a3 fb ff e0 0f 0b cc 55 48 89 e5 2015-01-11 20:50:11 Golem kernel PAX: bytes at SP-8: 0000006388544223 0000006388ae6a7e 7812c3f57650ee00 0000000000000000 7812c3f57650ee00 0000038acc17ef60 0000000000000010 000002b8c39a8a80 0000000000000010 000002b8c97ea350 0000038acc17f0d0

atomekl avatar Jan 11 '15 19:01 atomekl

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.

fredemmott avatar Jan 11 '15 21:01 fredemmott

paxctl-ng -pem /usr/bin/hhvm solved tthe issue, maybe it will be good to handle this in ebuild script.

atomekl avatar Jan 12 '15 10:01 atomekl