Gentoo Archives: gentoo-user

From: Nilesh Govindrajan <me@××××××××.com>
To: Gentoo User Mailing List <gentoo-user@l.g.o>
Subject: [gentoo-user] Re: Hardened Kernel and UKSM
Date: Sat, 23 Aug 2014 06:42:50
Message-Id: CAHgBc-vuMNNQPqkg+EbpmJpizeVsSgDfKhsK5X7DN=PyJ2_V7A@mail.gmail.com
In Reply to: [gentoo-user] Hardened Kernel and UKSM by Nilesh Govindrajan
1 On Sat, Aug 23, 2014 at 12:03 PM, Nilesh Govindrajan <me@××××××××.com> wrote:
2 > Hi,
3 >
4 > I'm trying to patch Gentoo Hardened sources 3.15.5r2 with UKSM. It
5 > patched fine, got some rejects on fork.c, mmap.c and exec.c. I saw the
6 > code, they were trivial so I added the changes manually.
7 >
8 > But I need help on this one:
9 >
10 > In file included from include/linux/ksm.h:138:0,
11 > from kernel/fork.c:56:
12 > include/linux/uksm.h: In function ‘uksm_cow_page’:
13 > include/linux/uksm.h:74:9: error: ‘struct vm_area_struct’ has no member
14 > named ‘uksm_vma_slot’
15 > include/linux/uksm.h:75:6: error: ‘struct vm_area_struct’ has no member
16 > named ‘uksm_vma_slot’
17 > include/linux/uksm.h: In function ‘uksm_cow_pte’:
18 > include/linux/uksm.h:80:9: error: ‘struct vm_area_struct’ has no member
19 > named ‘uksm_vma_slot’
20 > include/linux/uksm.h:81:6: error: ‘struct vm_area_struct’ has no member
21 > named ‘uksm_vma_slot’
22 > make[1]: *** [kernel/fork.o] Error 1
23 > make: *** [kernel] Error 2
24 >
25
26
27 Ouch, just after writing to the list I managed to crack it. It turns
28 out that the piece of code which defined the structure member got into
29 some other struct instead of vm_area_struct.
30
31 Anyway, I'd like to know if anybody has tried UKSM on hardened kernel
32 and if there are any problems, etc