On 03/11/2017 03:29 PM, faber wrote:
> I'm trying to adopt the kernel image 4.9.0-2-amd64 on my Debian 9
> TemplateVM.
>
> After installing the image and its headers, I do the following command:
>
> --------------------------------------
> sudo dkms autoinstall -k 4.9.0-2-amd64
> --------------------------------------
>
> And get the following output:
>
>
> -------------------------------------------------------------------------
> Kernel preparation unnecessary for this kernel.  Skipping...
>
> Building module:
> cleaning build area...
> make -j2 KERNELRELEASE=4.9.0-2-amd64 KVERSION=4.9.0-2-amd64...(bad exit
> status: 2)
> Error! Bad return status for module build on kernel: 4.9.0-2-amd64 (x86_64)
> Consult /var/lib/dkms/digimend/6/build/make.log for more information.
>
> Kernel preparation unnecessary for this kernel.  Skipping...
>
> Building module:
> cleaning build area...
> make -j2 KERNELRELEASE=4.9.0-2-amd64 -C /lib/modules/4.9.0-2-amd64/build
> M=/var/lib/dkms/u2mfn/3.2.3/build...(bad exit status: 2)
> Error! Bad return status for module build on kernel: 4.9.0-2-amd64 (x86_64)
> Consult /var/lib/dkms/u2mfn/3.2.3/build/make.log for more information.
> -------------------------------------------------------------------------
>
>
>
> And the output of /var/lib/dkms/u2mfn/3.2.3/build/make.log is:
>
>
> -------------------------------------------------------------------------
> DKMS make.log for u2mfn-3.2.3 for kernel 4.9.0-2-amd64 (x86_64)
> Sat Mar 11 16:13:29 CET 2017
> make: Entering directory '/usr/src/linux-headers-4.9.0-2-amd64'
>   LD      /var/lib/dkms/u2mfn/3.2.3/build/built-in.o
>   CC [M]  /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.o
> /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c: In function ‘u2mfn_ioctl’:
> /var/lib/dkms/u2mfn/3.2.3/build/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 /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:26:0:
> /usr/src/linux-headers-4.9.0-2-common/include/linux/mm.h:1302: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,
>       ^~~~~~~~~~~~~~
> /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:79:9: error: too many arguments
> to function ‘get_user_pages’
>    ret = get_user_pages
>          ^~~~~~~~~~~~~~
> In file included from /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:26:0:
> /usr/src/linux-headers-4.9.0-2-common/include/linux/mm.h:1302:6: note:
> declared here
>  long get_user_pages(unsigned long start, unsigned long nr_pages,
>       ^~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> /usr/src/linux-headers-4.9.0-2-common/scripts/Makefile.build:304: recipe
> for target '/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.o' failed
> make[3]: *** [/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.o] Error 1
> /usr/src/linux-headers-4.9.0-2-common/Makefile:1507: recipe for target
> '_module_/var/lib/dkms/u2mfn/3.2.3/build' failed
> make[2]: *** [_module_/var/lib/dkms/u2mfn/3.2.3/build] Error 2
> Makefile:150: recipe for target 'sub-make' failed
> make[1]: *** [sub-make] Error 2
> Makefile:8: recipe for target 'all' failed
> make: *** [all] Error 2
> make: Leaving directory '/usr/src/linux-headers-4.9.0-2-amd64'
> -------------------------------------------------------------------------
>
>
>
> Any idea?
>
> Thanks in advance
>

This has happened because 'qubes-kernel-vm-support' package using the
outdated 'u2mfn.c'.

Refer to this issue: https://github.com/QubesOS/qubes-issues/issues/2691

At the moment, you can simply fix this by copy the updated 'u2mfn.c' and
replace your old one here:
https://github.com/QubesOS/qubes-linux-utils/blob/master/kernel-modules/u2mfn/u2mfn.c

or just edit your 'u2mfn.c' and add the related lines from here:
https://github.com/QubesOS/qubes-linux-utils/commit/e01745f66fd2b4b0035ce7e064f340faeb997675

Hope this help :)


-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/f12b162b-4826-1e9e-1bf5-b01005fe35d9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to