Conversation

This Tweet was deleted by the Tweet author. Learn more
Replying to
github.com/AndroidHardeni uses it for a relatively unimportant security feature. It's not enabled by default because MPK performed much worse than I expected and I don't think it's worth the cost in this case. I also found a serious bug in the Linux kernel implementation of MPK.
1
Replying to and
I implemented the feature for github.com/AndroidHardeni partly as a proof of concept for MPK. The performance on AWS was awful though. Toggling it on and off is comparable to locking and unlocking a mutex. I think it might have been way faster before assorted Spectre fixes, etc.
This Tweet was deleted by the Tweet author. Learn more
Replying to and
Just be aware that when you fork, the kernel is currently buggy and completely loses your pkey configuration... and you can't easily work around that since allocating a new pkey would create a leak on patched systems where it isn't losing your configuration.