1 |
> kernel/ptrace.c: In function `ptrace_attach': |
2 |
> kernel/ptrace.c:138: error: `__KERNEL_TEXT_OFFSET' undeclared (first use |
3 |
> in this function) |
4 |
[...] |
5 |
> Building from 'regular' gentoo kernel sources works fine, even with the |
6 |
> security stuff selected (as per an selinux kernel). |
7 |
> |
8 |
> Is this a known incompatibility? |
9 |
|
10 |
that define comes from PaX (needed for KERNEXEC) and should be |
11 |
defined regardless of whether KERNEXEC is enabled or disabled. |
12 |
|
13 |
what happens here is that ptrace.c uses the macro smp_rmb() |
14 |
that on i386 uses the macro alternative() from |
15 |
include/asm-i386/system.h. alternative() in turn references |
16 |
__KERNEL_TEXT_OFFSET that comes from include/asm-i386/page.h |
17 |
except it seems that uml doesn't use that page.h but its own |
18 |
version (which lacks this define). since i'm not familiar |
19 |
with uml i don't know if it's a bug or feature in uml and how |
20 |
to fix it properly (i guess copying the __KERNEL_TEXT_OFFSET |
21 |
bits into include/asm-um/page.h would work but i'm not sure |
22 |
if it's the cleanest approach). |
23 |
|
24 |
-- |
25 |
gentoo-hardened@g.o mailing list |