Bug 150331 - Enable CC_STACKPROTECTOR will need GCC's libssp, which is a userspace library
Summary: Enable CC_STACKPROTECTOR will need GCC's libssp, which is a userspace library
Status: NEW
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-26 04:03 UTC by Icenowy Zheng
Modified: 2016-07-26 04:03 UTC (History)
0 users

See Also:
Kernel Version: 4.6.4
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Icenowy Zheng 2016-07-26 04:03:23 UTC
If CC_STACKPROTECTOR_{REGULAR,STRONG} is enabled, the GCC will try to use the stack protector code of its libssp (which is forced to be linked to libc).

It will fail with a compiler clean enough not to provide libssp.

An internal version of libssp should be provided in the kernel tree, to prevent the kernel from accidentally use userspace code, and provide the support to build a kernel with a toolchain without libc.

(While linking vmlinux.o with such a toolchain, I get symbol missing error of '__stack_chk_guard')

Note You need to log in before you can comment on or make changes to this bug.