Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567732 - sys-kernel/hardened-sources-4.1.7-r1: CONFIG_BUILD_DOCSRC is broken with -fstack-protector
Summary: sys-kernel/hardened-sources-4.1.7-r1: CONFIG_BUILD_DOCSRC is broken with -fst...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: Bug, REGRESSION
: 574214 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-12-07 19:39 UTC by Richard Yao (RETIRED)
Modified: 2018-10-12 00:32 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
disable ssp (kernel_doc_vDSO_nossp.patch,692 bytes, patch)
2015-12-07 22:01 UTC, Magnus Granberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2015-12-07 19:39:04 UTC
This likely affects all versions of sys-kernel/hardened-sources. It is a problem because we set CONFIG_BUILD_DOCSRC by default in the ~arch genkernel version and will block us from stabilizing it unless we stop doing that. We likely will, but this is a bug that should be fixed.
Comment 1 Magnus Granberg gentoo-dev 2015-12-07 22:01:19 UTC
Created attachment 418736 [details, diff]
disable ssp

The problem is that parse_vdso.o get compile with ssp and
vdso_standalone_test_x86.o with no ssp as it should but
vdso_standalone_test_x86 dep on parse_vdso.o
so it fail to link.
It is more a upstream bug.
Comment 2 Anthony Basile gentoo-dev 2015-12-16 00:39:44 UTC
(In reply to Magnus Granberg from comment #1)
> It is more a upstream bug.

Okay, let's let pipacs look at this.
Comment 3 PaX Team 2015-12-16 02:51:22 UTC
i don't see any plugin issues here? what's the exact error and how do you reproduce it?
Comment 4 ephemer0l 2015-12-16 21:59:40 UTC
I think it was a CFLAG thats coded into the kernel calling -fno-stack-protector.

See https://github.com/torvalds/linux/blob/master/Documentation/vDSO/Makefile
Comment 5 Anthony Basile gentoo-dev 2015-12-16 22:08:39 UTC
(In reply to scott from comment #4)
> I think it was a CFLAG thats coded into the kernel calling
> -fno-stack-protector.
> 
> See https://github.com/torvalds/linux/blob/master/Documentation/vDSO/Makefile

yes it is.

@pipacs, sorry for the noise, i didn't read the bug carefully enough
Comment 6 Magnus Granberg gentoo-dev 2016-02-08 20:13:40 UTC
*** Bug 574214 has been marked as a duplicate of this bug. ***
Comment 7 Jason Zaman gentoo-dev 2016-02-09 02:59:47 UTC
The patch looks like it just moves no-stack-protector from HOSTCFLAGS_vdso_standalone_test_x86.o to plain HOSTCFLAGS. Is it overkill to add it everywhere? should it instead be added only to the other objects that fail?