Summary: | www-client/firefox 9.0 and xpcshell on grsec/pax kernel run into infinite loop doing mmap/munmap, need paxctl -r | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Klaus Kusche <klaus.kusche> |
Component: | Hardened | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alphaomicron, anthoine.bourgeois, hardened, jaak, kensington, milton, pageexec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | possible fix for ff9/aslr |
Description
Klaus Kusche
2011-12-28 09:42:10 UTC
The problem does not only affect xpcshell during install. It also affects firefox itself: Firefox 9.0 loops infinitely when started (before showing any window), paxctl -r on the firefox binary solves the problem. Created attachment 297447 [details, diff]
possible fix for ff9/aslr
zakalwe, one of our users, posted the attached patch on irc the other day, it's the adaptation of my fix for jemalloc from a few years ago (yes, looks like bad code spreads by copy-pasting). i didn't try it myself yet but if it works for others, please include it in gentoo, upstream will be unlikely to react in a timely manner (the jemalloc/aslr bug is still not fix in ff itself, afaik).
The proposed patch fixes the problem for me. Most likely, it needs to be applied to thunderbird 9.x, too? Attachment 297447 [details, diff] patch also works for me, with hardened kernel ~amd64. FWIW firefox USE="alsa custom-optimization dbus ipc libnotify linguas_en system-sqlite webm". Built with hardened profile x86_64-pc-linux-gnu-4.6.2
(In reply to comment #4) > Attachment 297447 [details, diff] [details, diff] patch also works for me, with hardened kernel ~amd64. FWIW > firefox USE="alsa custom-optimization dbus ipc libnotify linguas_en > system-sqlite webm". Built with hardened profile x86_64-pc-linux-gnu-4.6.2 Am I correct, that this diff must be applied to js/src/jsgcchunk.cpp? (In reply to comment #5) > Am I correct, that this diff must be applied to js/src/jsgcchunk.cpp? Yes. (In reply to comment #6) > (In reply to comment #5) > > Am I correct, that this diff must be applied to js/src/jsgcchunk.cpp? > > Yes. Works for me. hardened team feel free to make the adjustment or I will do so on thursday when I return. Anarchy bumped the patch tarball. This is now fixed in the tree, please sync and re-merge 9.0. Thanks! Same problem with www-client/icecat-9.0.1, I think. Could this bug be reopened for icecat please? (In reply to comment #10) > Same problem with www-client/icecat-9.0.1, I think. Could this bug be reopened > for icecat please? I had a similar issue (infinite loop on firefox 9.0 build on xpcshell) but paxctl -r doesn't fix it neither. After a strace on xpcshell I find that the issue is more like #390911. May be you should read https://bugs.gentoo.org/show_bug.cgi?id=390911#c11 and http://forums.gentoo.org/viewtopic-p-6934508.html . |