[Bug 217062] for file systems mounted with -o noexec, exec=off property does not work for mmap

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 14 20:21:35 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217062

--- Comment #6 from shamaz.mazum at gmail.com ---
(In reply to Konstantin Belousov from comment #4)

Thanks for the fix. This discrepancy between mmap and mprotect made me think
that there was a bug there. If you are interested, I noticed that, as I said
before, trying to launch SBCL (Steel Bank Common Lisp) with a core image stored
in my home no-exec file system. It failed to start because it maps core image
in memory and then calls mprotect for those mappings. But when I opened a
shared library using foreign functions interface, it worked perfectly (I
believe dynamic linker uses mmap).

> If you determined, there is nothing which could prevent you from mapping anonymous memory, copying data from the file into it, and then executing.

Yes, you are right. Too bad for my paranoia ;)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list