[Pkg-uml-pkgs] Bug#837579: user-mode-linux: FTBFS with bindnow and PIE enabled

Bálint Réczey balint at balintreczey.hu
Sun Sep 25 20:28:09 UTC 2016


Hi Ritesh,

2016-09-25 18:54 GMT+02:00 Ritesh Raj Sarraf <rrs at debian.org>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Control: tag -1 -patch
>
> Hello Balint,
>
> On Wed, 2016-09-14 at 00:56 +0200, Balint Reczey wrote:
>> The following patch fixes the build for me with the changed GCC and also
>> builds fine with the original GCC 6:
>>
>
> I just built locally with your patches applied. It fixes the build. But lintian
> still complains about hardening flags.
>
> I: user-mode-linux: hardening-no-pie usr/bin/linux.uml
> W: user-mode-linux: hardening-no-relro usr/bin/linux.uml
> I: user-mode-linux: hardening-no-bindnow usr/bin/linux.uml

It is expected, since PIE is still not used.

I tried using -fPIE and -fPIC to allow PIE but kernel mode code did
not allow those
thus I believe the proposed patch is the way to go, disabling PIE for
UML for now.

Cheers,
Balint

>
>
>
>> @@ -16,9 +16,11 @@
>>  #SUBARCH?=$(shell uname -m)
>>
>>  ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
>> -KBUILDVARS := CFLAGS_KERNEL=-O1
>> +CFLAGS_KERNEL += -O1
>>  endif
>>
>> +KBUILDVARS := CFLAGS_KERNEL="$(CFLAGS_KERNEL)" CC="$(CC) -no-pie"
>> LD="$(LD) -no-pie"
>> +
>>  # development only targets
>>  #
>>  copy-config:
> - --
> Ritesh Raj Sarraf | http://people.debian.org/~rrs
> Debian - The Universal Operating System
> -----BEGIN PGP SIGNATURE-----
>
> iQIcBAEBCgAGBQJX6AExAAoJEKY6WKPy4XVpboEP/iqgOn1ulPYRJBDdeq1VpCOs
> CAAHS2GilQvgJ/0+D5KvhybKKgGVCB9iIU0TEfmEwqxrH4cGWDbufH9Zq+mqmbq5
> qGGz2BVCMCxC0+y++aZrmOuLin4V6m36pMxOrLbZcehn5iCRONqWYdCxSnHUWnNd
> n2fpEdBk5WJHoC64snEpoC9z4vfqfoA9/5sPHYz176KWC8YwBErDc26f1tSwM6tJ
> /5keNW8+yRSEBq3Q98VkLlumvVkOQUyZO3WW3Y87GVKR1TSZVYIbU47pGMhdo5cd
> +hgyfEPPAOCBGt6TPFBf9ZKkLTB4e7wYQYO8ogZpGtSMF/aNQxgJzpFIHzpLil6h
> D1M+wH2cSLcszZxtKTj884DvKjgPCoMIVUSGzCOlrcqU4ycHZAL2+/l9ZZCeaurh
> Hpxny5z6Cx+t8fKhlPN3x2Nbqd3s1Jgs6PG5eUXQVdtyUojlV89Hwoa7TP0LkNW2
> UsBy/s2GFFLqf2qjUUCStkMEwVnT2C9HcENWSUjV9HteBFu2BdJCe78QxBg8+yZC
> Ljo3+COY4sxBJUdRGb+8jvoe9xXZPpqsDrSB6TsmiIX1U8ZTvkoBz6xjvkEaKPho
> EazwIpfqF5vd9CCYyQFZUTmcCLXFmSuEaajEdO6buVjhmlPfKH+HyxNjgTdVC3Xv
> eMkbVXoPVaVyHzmmZsfY
> =aC6I
> -----END PGP SIGNATURE-----
>



More information about the Pkg-uml-pkgs mailing list