On Sat, Aug 23, 2014 at 12:03 PM, Nilesh Govindrajan <[email protected]> wrote:
> Hi,
>
> I'm trying to patch Gentoo Hardened sources 3.15.5r2 with UKSM. It
> patched fine, got some rejects on fork.c, mmap.c and exec.c. I saw the
> code, they were trivial so I added the changes manually.
>
> But I need help on this one:
>
> In file included from include/linux/ksm.h:138:0,
>                  from kernel/fork.c:56:
> include/linux/uksm.h: In function ‘uksm_cow_page’:
> include/linux/uksm.h:74:9: error: ‘struct vm_area_struct’ has no member
> named ‘uksm_vma_slot’
> include/linux/uksm.h:75:6: error: ‘struct vm_area_struct’ has no member
> named ‘uksm_vma_slot’
> include/linux/uksm.h: In function ‘uksm_cow_pte’:
> include/linux/uksm.h:80:9: error: ‘struct vm_area_struct’ has no member
> named ‘uksm_vma_slot’
> include/linux/uksm.h:81:6: error: ‘struct vm_area_struct’ has no member
> named ‘uksm_vma_slot’
> make[1]: *** [kernel/fork.o] Error 1
> make: *** [kernel] Error 2
>


Ouch, just after writing to the list I managed to crack it. It turns
out that the piece of code which defined the structure member got into
some other struct instead of vm_area_struct.

Anyway, I'd like to know if anybody has tried UKSM on hardened kernel
and if there are any problems, etc

Reply via email to