[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v6 14/27] x86/percpu: Adapt percpu for PIE support
- To: Thomas Garnier <thgarnie@xxxxxxxxxxxx>
- From: Christopher Lameter <cl@xxxxxxxxx>
- Date: Mon, 8 Apr 2019 17:56:20 +0000
- Cc: Michal Hocko <mhocko@xxxxxxxx>, Brijesh Singh <brijesh.singh@xxxxxxx>, Kernel Hardening <kernel-hardening@xxxxxxxxxxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>, Kristen Carlson Accardi <kristen@xxxxxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, the arch/x86 maintainers <x86@xxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Dennis Zhou <dennis@xxxxxxxxxx>, Joerg Roedel <jroedel@xxxxxxx>, Kees Cook <keescook@xxxxxxxxxxxx>, Cao jin <caoj.fnst@xxxxxxxxxxxxxx>, Mike Rapoport <rppt@xxxxxxxxxxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Andy Lutomirski <luto@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, Andi Kleen <ak@xxxxxxxxxxxxxxx>, Tejun Heo <tj@xxxxxxxxxx>, Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx>
- Delivery-date: Mon, 08 Apr 2019 17:56:23 +0000
- Feedback-id: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Mon, 8 Apr 2019, Thomas Garnier wrote:
> > It didn't work originally but I will revisit to see if I missed something.
>
> I revisited and couldn't find a way to prevent relocations to the
> percpu section. Without PIE, you can reference absolute address which
> was convenient for percpu.
Can you switch PIE off for the percpu section? If not maybe the linker
needs to have an additional option?
Cannot imagine that this is not possible. You neeed to be able to
reference registers that are in fixed memory locations.
> Christopher: Did you have something specific in mind?
I thought that we just leave it as is.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|