[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <vi8ojsasknll8us53fy9myb8.1412439420039@email.android.com>
Date: Sat, 4 Oct 2014 16:17:03 +0000
From: Leonid Yegoshin <Leonid.Yegoshin@...tec.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
CC: Peter Zijlstra <peterz@...radead.org>,
linux-mips <linux-mips@...ux-mips.org>,
Zubair Kakakhel <Zubair.Kakakhel@...tec.com>,
David Daney <david.daney@...ium.com>,
Paul Gortmaker <paul.gortmaker@...driver.com>,
Davidlohr Bueso <davidlohr@...com>,
"Maciej W. Rozycki" <macro@...ux-mips.org>,
"chenhc@...ote.com" <chenhc@...ote.com>,
Rafał Miłecki <zajec5@...il.com>,
James Hogan <James.Hogan@...tec.com>,
Kees Cook <keescook@...omium.org>,
"alex@...x-smith.me.uk" <alex@...x-smith.me.uk>,
Thomas Gleixner <tglx@...utronix.de>,
John Crispin <blogic@...nwrt.org>,
"jchandra@...adcom.com" <jchandra@...adcom.com>,
Paul Burton <Paul.Burton@...tec.com>,
Qais Yousef <Qais.Yousef@...tec.com>,
"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>,
Ralf Baechle <ralf@...ux-mips.org>,
Markos Chandras <Markos.Chandras@...tec.com>,
"Manuel Lauss" <manuel.lauss@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
"lars.persson@...s.com" <lars.persson@...s.com>
Subject: Re: [PATCH 0/3] MIPS executable stack protection
Linus, it works on CPU with hardware page table walker - MIPS P5600 aka Apache.
I was involved in architecture development of HTW and took care of it.
Linus Torvalds <torvalds@...ux-foundation.org> wrote:
On Sat, Oct 4, 2014 at 1:23 AM, Peter Zijlstra <peterz@...radead.org> wrote:
> On Fri, Oct 03, 2014 at 08:17:14PM -0700, Leonid Yegoshin wrote:
>> The following series implements an executable stack protection in MIPS.
>>
>> It sets up a per-thread 'VDSO' page and appropriate TLB support.
>
> So traditionally we've always avoided per-thread pages like that. What
> makes it worth it on MIPS?
Nothing makes it worth it on MIPS.
It may be easy to implement when you have all software-fill of TLB's,
but it's a mistake even then - because it means that you'll never be
able to do hardware TLB walkers.
And MIPS *does* have hardware TLB walkers, even if they are not
necessarily available everywhere.
So this is a horrible idea. Don't do it. Page tables need to be
per-process, not per thread, so that page tables can be shared.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists