Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94896 - pax problem in linux-headers-2.6
Summary: pax problem in linux-headers-2.6
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL: http://forums.grsecurity.net./viewtop...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-03 01:20 UTC by Daniel Black (RETIRED)
Modified: 2005-08-22 14:57 UTC (History)
3 users (show)

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


Attachments
system.h.diff (system.h.diff,1.67 KB, patch)
2005-06-03 06:38 UTC, Daniel Black (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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".