Stack protector kernel build error
Hi Kees,
Today my linux-next build broke for the pxa architecture.
My specific setup is :
- ARCH=arm make pxa_defconfig; ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make
- my compiler is:
rj at belgarion:~/mio_linux/kernel$ arm-linux-gnueabi-gcc --version arm-linux-gnueabi-gcc (Debian 6.3.0-18) 6.3.0 20170516
And the error message is :
rj at belgarion:~/mio_linux/kernel$ make -j 4
CHK include/config/kernel.releaseCONFIG_CC_STACKPROTECTOR_AUTO: Compiler does not support any known stack-protector Cannot use CONFIG_CC_STACKPROTECTOR_AUTO: not supported by compiler Makefile:1097: recipe for target 'prepare-compiler-check' failed
make: *** [prepare-compiler-check] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
Is this expected, as I was under the impression my compiler was not that outdated ...
Cheers.
Signature · 1 line
Robert
Quoted 20 lines · Robert Jarzmik
Hi Kees,
Today my linux-next build broke for the pxa architecture.
My specific setup is :
- ARCH=arm makepxa_defconfig; ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make
- my compiler is:rj at belgarion:~/mio_linux/kernel$ arm-linux-gnueabi-gcc --version arm-linux-gnueabi-gcc (Debian 6.3.0-18) 6.3.0 20170516And the error message is :
rj at belgarion:~/mio_linux/kernel$ make -j 4
CHKinclude/config/kernel.releaseCONFIG_CC_STACKPROTECTOR_AUTO: Compiler does not support any known stack-protector Cannot useCONFIG_CC_STACKPROTECTOR_AUTO: not supported by compiler Makefile:1097: recipe for target 'prepare-compiler-check' failed
make: *** [prepare-compiler-check] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
Quoted 2 lines
Is this expected, as I was under the impression my compiler was not that outdated ...
Hmm, there's probably a bug in my attempt at making the ..._AUTO mode work.
What does "arm-linux-gnueabi-gcc -fstack-protector" say?
-Kees
Signature · 2 lines
Kees Cook Pixel Security
Quoted 21 lines · Kees Cook
Quoted 20 lines · Robert Jarzmik
Hi Kees,
Today my linux-next build broke for the pxa architecture.
My specific setup is :
- ARCH=arm makepxa_defconfig; ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make
- my compiler is:rj at belgarion:~/mio_linux/kernel$ arm-linux-gnueabi-gcc --version arm-linux-gnueabi-gcc (Debian 6.3.0-18) 6.3.0 20170516And the error message is :
rj at belgarion:~/mio_linux/kernel$ make -j 4
CHKinclude/config/kernel.releaseCONFIG_CC_STACKPROTECTOR_AUTO: Compiler does not support any known stack-protector Cannot useCONFIG_CC_STACKPROTECTOR_AUTO: not supported by compiler Makefile:1097: recipe for target 'prepare-compiler-check' failed
make: *** [prepare-compiler-check] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
Quoted 4 lines
Quoted 2 lines
Is this expected, as I was under the impression my compiler was not that outdated ...
Hmm, there's probably a bug in my attempt at making the ..._AUTO mode work.
(Specifically, that report about compiler support should be a _warning_ not a _failure_ for _AUTO mode...)
-Kees
Quoted 8 lines
What does "arm-linux-gnueabi-gcc -fstack-protector" say?
-Kees
--
Kees Cook
Pixel Security
Signature · 2 lines
Kees Cook Pixel Security
Quoted 22 lines · Kees Cook
Quoted 21 lines · Kees Cook
Quoted 20 lines · Robert Jarzmik
Hi Kees,
Today my linux-next build broke for the pxa architecture.
My specific setup is :
- ARCH=arm makepxa_defconfig; ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make
- my compiler is:rj at belgarion:~/mio_linux/kernel$ arm-linux-gnueabi-gcc --version arm-linux-gnueabi-gcc (Debian 6.3.0-18) 6.3.0 20170516And the error message is :
rj at belgarion:~/mio_linux/kernel$ make -j 4
CHKinclude/config/kernel.releaseCONFIG_CC_STACKPROTECTOR_AUTO: Compiler does not support any known stack-protector Cannot useCONFIG_CC_STACKPROTECTOR_AUTO: not supported by compiler Makefile:1097: recipe for target 'prepare-compiler-check' failed
make: *** [prepare-compiler-check] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Is this expected, as I was under the impression my compiler was not that outdated ...
Hmm, there's probably a bug in my attempt at making the ..._AUTO mode work.
(Specifically, that report about compiler support should be a _warning_ not a _failure_ for
_AUTOmode...)
Okay, I think I found it. Patch sent in separate email (to avoid whitespace damage...)
-Kees
Signature · 2 lines
Kees Cook Pixel Security