Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340297 - net-news/liferea-1.6.4 dies when mmap() with 'rwx' because of PaX
Summary: net-news/liferea-1.6.4 dies when mmap() with 'rwx' because of PaX
Status: RESOLVED DUPLICATE of bug 338213
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-09 21:26 UTC by Anthony Basile
Modified: 2010-10-09 21:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Basile gentoo-dev 2010-10-09 21:26:58 UTC
The newer grsecurity patches (versions 2.2.0) do not allow mmapping with rwx protection which liferea attempts as seen in the following strace:

mmap(NULL, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 EPERM (Operation not permitted)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

This effects all systems running hardened sources *after* h-s-2.6.32-r9

A quick workaround is to paxctl -m /usr/bin/liferea, but this should be fixed in the code.

For reference, see bug #329499 which similarly affected python's ctypes.
Comment 1 Anthony Basile gentoo-dev 2010-10-09 21:30:01 UTC

*** This bug has been marked as a duplicate of bug 338213 ***