and creating a signing key, see e.g. here: http://fedoranews.org/tchung/gpg/
I am following your instructions and trying to compile devel-4.10. I am getting the following error. This error also occurs on stable-4.9. Any idea how i can fix this.
Thanks.
/home/user/qubes-linux-kernel/u2mfn/u2mfn.c: In function 'u2mfn_ioctl':
/home/user/qubes-linux-kernel/u2mfn/u2mfn.c:80:23: error: passing argument 5 of 'get_user_pages' from incompatible pointer type [-Werror=incompatible-pointer-types]
(data, 1, 1, 0, &user_page, 0);
^
In file included from /home/user/qubes-linux-kernel/u2mfn/u2mfn.c:26:0:
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/include/linux/mm.h:1271:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/home/user/qubes-linux-kernel/u2mfn/u2mfn.c:79:9: error: too many arguments to function 'get_user_pages'
ret = get_user_pages
^
In file included from /home/user/qubes-linux-kernel/u2mfn/u2mfn.c:26:0:
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/include/linux/mm.h:1271:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
cc1: some warnings being treated as errors
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/scripts/Makefile.build:300: recipe for target '/home/user/qubes-linux-kernel/u2mfn/u2mfn.o' failed
make[4]: *** [/home/user/qubes-linux-kernel/u2mfn/u2mfn.o] Error 1
/home/user/qubes-linux-kernel/kernel-4.10.13/linux-4.10.13/Makefile:1490: recipe for target '_module_/home/user/qubes-linux-kernel/u2mfn' failed
make[3]: *** [_module_/home/user/qubes-linux-kernel/u2mfn] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[1]: *** [__sub-make] Error 2
make[1]: Leaving directory '/home/user/qubes-linux-kernel/kernel-4.10.13/linux-obj'
error: Bad exit status from /var/tmp/rpm-tmp.6UeD6a (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.6UeD6a (%build)
Makefile:90: recipe for target 'rpms-dom0' failed
make: *** [rpms-dom0] Error 1
I have version 3.2.3 installed. I also have the "current", "current-testing", and "unstable" repositories enabled in qubes-r3.repo.
doing a search for qubes-kernel-vm-support only shows version 3.2.3. Doing upgrade says nothing to do. Doing a reinstall only installs version 3.2.3 Is there somewhere else to get the version 3.2.4
Thanks.
It works now. Thanks for your help.
I started from scratch with a new clone of the fedora 23 template that was installed with R3.2. I replaced the u2mfn.c file with the one you linked to.
Thanks.
somehow I never found that page during google searching.
It seems building works fine on fc23. Wonder what changed between 6/17 and today that fc25 no longer compiles kernels, though.
Wasn't using any patches from the hardening project.
as before, it's easiest to build these in a fc23-based VM.
This is in a f25 based machine. Would it be possible to have the entire thing in chroot or a docker container?
Probably, but IDK how, because I'm stupid. :)
If you're running f25, the easiest way to get it to work is to enable the fc27/rawhide repo in an AppVM, and selectively update the packages related to dracut (to dracut-045). After that, it'll compile.