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: 9199543 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 CAE1D607D3 for ; Sun, 26 Jun 2016 15:28:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8F8F2849E for ; Sun, 26 Jun 2016 15:28:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB7E928544; Sun, 26 Jun 2016 15:28:23 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C25E52849E for ; Sun, 26 Jun 2016 15:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752054AbcFZP2U (ORCPT ); Sun, 26 Jun 2016 11:28:20 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36809 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752048AbcFZP2U (ORCPT ); Sun, 26 Jun 2016 11:28:20 -0400 Received: by mail-wm0-f66.google.com with SMTP id c82so18258773wme.3 for ; Sun, 26 Jun 2016 08:28:19 -0700 (PDT) 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=GNhybbA+AmOCJ4/sxjDAfldduxFhrpOw06ununiZtScE1208LTqIvJdYrgveyBC4Me 5ByVCgDw/HQbH1Xelr9a+K5wbWkR4uCgQTc/n7VeVna3dJEBVTQ7+ebVF65cAXFCUOwx vk92eTY9chMQEekYgtH5uvbUGyLjvVw5b7kutNWX5RNXIb8ckXlFQjE733Lm+4QEge8l X2NjOX92g+3z1I/xDc6UCHbKEYm/asrZ8hmqF66LTNmO/OI3Fvh92q/xx4xpq0kQV1Hn bJEu43sIS3QN0J37qQks1hzV+gfRumhtbGd5IWJGmBxky6EJJ9mscYNc6zwzwLWQNq6A JdCA== X-Gm-Message-State: ALyK8tKr9gquoNP8Tk499lCkw0OoqjughPOdU1cs8lMP+IJ9r62uxo8gWG73wlwIUOp07g== X-Received: by 10.28.215.139 with SMTP id o133mr6506323wmg.74.1466954898686; Sun, 26 Jun 2016 08:28:18 -0700 (PDT) Received: from localhost (beleg.madhouse-project.org. [128.199.36.147]) by smtp.gmail.com with ESMTPSA id yr4sm7666289wjc.18.2016.06.26.08.28.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Jun 2016 08:28:17 -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 Subject: [PATCH] powerpc/kernel: Disable the latent entropy plugin unconditionally 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 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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)