I'm also not happy with requiring read access to /dev/kmem. This is a serious security hole. If the only issue is performance, then I think I would rather live with it being slow than insecure and fix it upstream. http://reviews.llvm.org/D3732