From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0E4191381F3 for ; Sat, 30 Dec 2017 12:21:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 281C4E07F2; Sat, 30 Dec 2017 12:21:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC3E4E07F2 for ; Sat, 30 Dec 2017 12:21:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 630D8335C2F for ; Sat, 30 Dec 2017 12:21:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED294151 for ; Sat, 30 Dec 2017 12:20:59 +0000 (UTC) From: "Alice Ferrazzi" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alice Ferrazzi" Message-ID: <1514636447.a5d779212b266be96f87f91cd5d468f50f3377c7.alicef@gentoo> Subject: [gentoo-commits] proj/linux-patches:4.14 commit in: / X-VCS-Repository: proj/linux-patches X-VCS-Files: 0000_README 2902_Make-sure-fstack-check-isn-t-enabled.patch X-VCS-Directories: / X-VCS-Committer: alicef X-VCS-Committer-Name: Alice Ferrazzi X-VCS-Revision: a5d779212b266be96f87f91cd5d468f50f3377c7 X-VCS-Branch: 4.14 Date: Sat, 30 Dec 2017 12:20:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0cd683b7-a118-45d3-afc4-7088ab0c62da X-Archives-Hash: 7012285c65be9d66a3fe2bbf3984ba0c commit: a5d779212b266be96f87f91cd5d468f50f3377c7 Author: Alice Ferrazzi gentoo org> AuthorDate: Sat Dec 30 12:20:47 2017 +0000 Commit: Alice Ferrazzi gentoo org> CommitDate: Sat Dec 30 12:20:47 2017 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a5d77921 Make sure -fstack-check isn't enabled bug #642268 0000_README | 4 ++ 2902_Make-sure-fstack-check-isn-t-enabled.patch | 50 +++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/0000_README b/0000_README index 9111187..86c72af 100644 --- a/0000_README +++ b/0000_README @@ -119,6 +119,10 @@ Patch: 2901_tools-objtool-makefile-dont-assume-sync-checksh-is-executable.patch From: http://www.ozlabs.org/~akpm/mmotm/broken-out/tools-objtool-makefile-dont-assume-sync-checksh-is-executable.patch Desc: patch(1) loses the x bit. Kernel build breaks. +Patch: 2902_Make-sure-fstack-check-isn-t-enabled.patch +From: https://lkml.org/lkml/2017/12/29/488 +Desc: Make sure -fstack-check isn't enabled. + Patch: 4200_fbcondecor.patch From: http://www.mepiscommunity.org/fbcondecor Desc: Bootsplash ported by Conrad Kostecki. (Bug #637434) diff --git a/2902_Make-sure-fstack-check-isn-t-enabled.patch b/2902_Make-sure-fstack-check-isn-t-enabled.patch new file mode 100644 index 0000000..50660b1 --- /dev/null +++ b/2902_Make-sure-fstack-check-isn-t-enabled.patch @@ -0,0 +1,50 @@ +From 4689f2971534dad4b6ce1a50aa9a616580272e07 Mon Sep 17 00:00:00 2001 +From: Alice Ferrazzi +Date: Sat, 30 Dec 2017 12:11:39 +0000 +Subject: [PATCH] Make sure -fstack-check isn't enabled + +On Fri, Dec 29, 2017 at 5:00 PM, Linus Torvalds + wrote: +> +> Good. I was not feeling so happy about this bug report, but now I can +> firmly just blame the gentoo compiler for having some shit-for-brains +> "feature". + +Looks like I can generate similar bad code with the F26 version of +gcc, it's just not enabled by default. + +So all gentoo did was change the default options. + +I suspect we should just add a + + KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,) + + somewhere to the main Makefile, just to make sure. + + Maybe like the appended? + + Toralf, Alexander, does this make things JustWork(tm) for you? + + Linus + +--- + Makefile | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/Makefile b/Makefile +index 9edfb78836a9..930fa93f397d 100644 +--- a/Makefile ++++ b/Makefile +@@ -802,6 +802,9 @@ KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign) + # disable invalid "can't wrap" optimizations for signed / pointers + KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow) + ++# Make sure -fstack-check isn't enabled (like gentoo apparently did) ++KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,) ++ + # conserve stack if available + KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) + +-- +2.13.6 +