[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190617132222.32182-1-aastier@freebox.fr>
Date: Mon, 17 Jun 2019 15:22:21 +0200
From: Anisse Astier <aastier@...ebox.fr>
To: Will Deacon <will.deacon@....com>,
Dave Martin <Dave.Martin@....com>,
linux-arm-kernel@...ts.infradead.org
Cc: Catalin Marinas <catalin.marinas@....com>,
Kristina Martsenko <kristina.martsenko@....com>,
Richard Henderson <richard.henderson@...aro.org>,
Mark Rutland <mark.rutland@....com>,
linux-kernel@...r.kernel.org, Rich Felker <dalias@...ifal.cx>,
"Dmitry V . Levin" <ldv@...linux.org>,
Ricardo Salveti <ricardo@...ndries.io>,
Sasha Levin <sashal@...nel.org>,
Anisse Astier <aastier@...ebox.fr>
Subject: [PATCH v3 1/2] arm64: ssbd: explicitly depend on <linux/prctl.h>
Fix ssbd.c which depends implicitly on asm/ptrace.h including
linux/prctl.h (through for example linux/compat.h, then linux/time.h,
linux/seqlock.h, linux/spinlock.h and linux/irqflags.h), and uses
PR_SPEC* defines.
This is an issue since we'll remove the include in the next commit.
Fixes: 9cdc0108baa8 ("arm64: ssbd: Add prctl interface for per-thread mitigation")
Cc: stable@...r.kernel.org
Signed-off-by: Anisse Astier <aastier@...ebox.fr>
---
Contrary to what I said in the previous email, I can reproduce the build
error on Linus' master when ARM64_SSBD is enabled.
Changes since v2:
- fix build when ARM64_SSBD is enabled with additionnal patch
Changes since v1:
- made a bit more explicit that we copied defined symbols, in commit
and code.
- Use Fixes: tag in commit message
Thanks to Dave Martin and Will Deacon for the review, and Sasha Levin
for the auto-build bot.
---
arch/arm64/kernel/ssbd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/kernel/ssbd.c b/arch/arm64/kernel/ssbd.c
index 885f13e58708..52cfc6148355 100644
--- a/arch/arm64/kernel/ssbd.c
+++ b/arch/arm64/kernel/ssbd.c
@@ -5,6 +5,7 @@
#include <linux/compat.h>
#include <linux/errno.h>
+#include <linux/prctl.h>
#include <linux/sched.h>
#include <linux/sched/task_stack.h>
#include <linux/thread_info.h>
--
2.19.1
Powered by blists - more mailing lists