From patchwork Sun Jun 26 15:34:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emese Revfy X-Patchwork-Id: 9199545 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CDB3C607D3 for ; Sun, 26 Jun 2016 15:28:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE1512849E for ; Sun, 26 Jun 2016 15:28:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B230928544; Sun, 26 Jun 2016 15:28:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id D334C2849E for ; Sun, 26 Jun 2016 15:28:39 +0000 (UTC) Received: (qmail 7493 invoked by uid 550); 26 Jun 2016 15:28:35 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: kernel-hardening@lists.openwall.com Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 7451 invoked from network); 26 Jun 2016 15:28:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=QxxhQILhTp6ZsCPDprbHFdZBWqYMFVgZd57cKr4zf34=; b=ffhYYcoJUeDH4g/fgp3FTuWbOv83nHbxQeMrKj1KNI803rNkj1ewXQ21G2lwk0feBN M9wTCWbNOn7yxw2XqE0JQlrSV908Q1YqeiiEiRoZTl40azuQ/aBiXiXcjOAwW1Qjjm1z 7GO5SEDZs8l1UqMnegnzmlC50tybTky0Tl8UMAMdYZ1Gk3n6kk/kcHGBe/KVBJMyW44R 0MTcip6ZMkUC/kkrFNuhtk5K+lsNMsQCqRWD4JibgJZy8NG9iDIutO7rAOeb4N3/US1z 0F4TtgvXjSDMTOfPMDepDXqdLkrqjYQDmjA7FwJ2QOLB7+CBqTFhVzjWnepT0KwocJN8 Vtmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=QxxhQILhTp6ZsCPDprbHFdZBWqYMFVgZd57cKr4zf34=; b=HeH/NfKieSCDkLjR/NSANDUKTUdeJHMfNohSoJGxoN+Che1x5FWJgfnHhCH4WrP1ct POlBFHDNJu8vZ/mBVOXeLSWDrIBp09ck/aiXStPqWQ4IX7oICX48fHsrU7DgdFOxSKGg +M/2d4fVMQxyIP1NCFSWKym5SLsQf21GhZGqRc2Z9Is8lfuNPnL4i2ZwyTAHiG6te6fZ /cAkFigw8FJJfIDPBCjYC9siIvi155fqTtrdiIbVvd2T5Qsipvt/E8IPp4BJcZryHc6r iU6iXODXzxwHIeYBg6fwvKVMxU/eoLyqNX7oF1/hMkGavuTjI0mpAtBN0UJ3Yt9S9CcJ YqNA== X-Gm-Message-State: ALyK8tIoenSFB3sqEsEUQb4O1gm9lC4QvD1fiUt85HG0wyG8s5P6lFajXa5W5MEUYz8q/g== X-Received: by 10.28.215.139 with SMTP id o133mr6506323wmg.74.1466954898686; Sun, 26 Jun 2016 08:28:18 -0700 (PDT) Date: Sun, 26 Jun 2016 17:34:51 +0200 From: Emese Revfy To: keescook@chromium.org Cc: mmarek@suse.com, linux-kbuild@vger.kernel.org, kernel-hardening@lists.openwall.com, pageexec@freemail.hu Message-Id: <20160626173451.c8406cd0c7a87cc3f94d9753@gmail.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Mime-Version: 1.0 Subject: [kernel-hardening] [PATCH] powerpc/kernel: Disable the latent entropy plugin unconditionally X-Virus-Scanned: ClamAV using ClamSMTP Reported-by: PaX Team Signed-off-by: Emese Revfy --- arch/powerpc/kernel/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 01935b8..e9ef44f 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile @@ -14,11 +14,12 @@ CFLAGS_prom_init.o += -fPIC CFLAGS_btext.o += -fPIC endif -ifdef CONFIG_FUNCTION_TRACER CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_btext.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) + +ifdef CONFIG_FUNCTION_TRACER # Do not trace early boot code CFLAGS_REMOVE_cputable.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_prom_init.o = -mno-sched-epilog $(CC_FLAGS_FTRACE)