[PATCH] A workaround for getting process memory map taking too long for sanitizers on FreeBSD

Viktor Kutuzov vkutuzov at accesssoftek.com
Mon Jun 23 04:56:53 PDT 2014


> 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.

Well, it's not just somewhat slower than the sysctl() version; the problem is that the call consumes so much time that it makes impossible to run the tests in practice.

This patch is a temporary solution intended to allow us to continue the work on adding FreeBSD support for sanitizers. It's OK if we do not put this patch to the mainline, but then the FreeBSD builbot will further skip running tests unless the issue with sysctl() is fixed and backported to v9.2 .

http://reviews.llvm.org/D3732






More information about the llvm-commits mailing list