Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 94896

Summary: pax problem in linux-headers-2.6
Product: Gentoo Linux Reporter: Daniel Black (RETIRED) <dragonheart>
Component: [OLD] Core systemAssignee: Tim Yamin (RETIRED) <plasmaroo>
Status: RESOLVED NEEDINFO    
Severity: normal CC: hardened, netmon, pageexec
Priority: High    
Version: 2005.0   
Hardware: All   
OS: Other   
URL: http://forums.grsecurity.net./viewtopic.php?p=4741#4741
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: system.h.diff

Description Daniel Black (RETIRED) gentoo-dev 2005-06-03 01:20:51 UTC
netmon - I'll fix libpcap-ringbuffer

Thanks to Ned
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-06-03 01:44:18 UTC
libpcap-ringbuffer fixed 
Comment 2 Daniel Black (RETIRED) gentoo-dev 2005-06-03 06:38:55 UTC
Created attachment 60518 [details, diff]
system.h.diff
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2005-06-03 12:12:59 UTC
Patch looks good, thanks, what version of headers you need this applying to?
Will 2.6.11 be sufficient?
Comment 4 PaX Team 2005-06-03 15:18:34 UTC
actually, upon further thinking using 'awx' is not the best solution either, it
will produce RWE PT_LOAD segments, which is not nice (albeit it happens to work
even under PaX as no code is actually executed from there). the best solution
would be to simply not expose the alternative() macro to userland at all, after
all there's noone in userland who would actually make use of it (the kernel
itself has special processing on boot that does the insn substitution when run
on the proper CPU). short of that, use 'aw' everywhere.
Comment 5 Daniel Black (RETIRED) gentoo-dev 2005-06-03 17:51:58 UTC
confession - I don't know much about the asm alternate stuff at all. I was 
just going of the refurl. 
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2005-08-22 13:49:35 UTC
There seems to be some confusion as to what would be the right way of doing
things, so if somebody can attach an updated patch or comment if the current
patch is correct and reopen I'll gladly add this in.

Thanks!
Comment 7 PaX Team 2005-08-22 14:57:55 UTC
as i suggested, use "aw" section flags in all 4 places, i.e., the attached patch
gets half of that right, the other half should be changed from "awx" into "aw".