Date: Tue, 8 Aug 2017 09:06:13 -0700 From: Thomas Garnier <thgarnie@...gle.com> To: Russell King - ARM Linux <linux@...linux.org.uk> Cc: Kees Cook <keescook@...omium.org>, Andy Lutomirski <luto@...capital.net>, Will Drewry <wad@...omium.org>, Thomas Gleixner <tglx@...utronix.de>, Al Viro <viro@...iv.linux.org.uk>, Dave Martin <Dave.Martin@....com>, Catalin Marinas <catalin.marinas@....com>, Will Deacon <will.deacon@....com>, Pratyush Anand <panand@...hat.com>, Chris Metcalf <cmetcalf@...lanox.com>, Leonard Crestez <leonard.crestez@....com>, "linux-arm-kernel@...ts.infradead.org" <linux-arm-kernel@...ts.infradead.org>, LKML <linux-kernel@...r.kernel.org>, "kernel-hardening@...ts.openwall.com" <kernel-hardening@...ts.openwall.com> Subject: Re: [PATCH v2 2/3] arm/syscalls: Optimize address limit check On Mon, Aug 7, 2017 at 10:55 AM, Russell King - ARM Linux <linux@...linux.org.uk> wrote: > > It's better in so far as it avoids the problems previously highlighted. > > However, it depends how efficient we want these paths to be - the > difference between your assembly and the assembly I've previously > supplied is that mine fills in any delay slots with some useful work > and avoids adding extra delay slots in this path. The previous assembly implementation we did was design as you described but all checks were done after the pending work was managed. I would like the address limit check to be done before, especially if we move from panic to a SIGKILL approach. > > Arguably, the system call exit path is as important as the system > call entry path for OS performance, so I think we should strive to > make it as efficient as possible - much as I already did when I > posted code on this topic previously. How do you think it could improve while keeping the check before pending work? > > I think that code can simply be adapted to call your C function > instead of the assembly "addr_limit_fail" label. I don't use the label anymore on this version. > > -- > RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ > FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up > According to speedtest.net: 8.21Mbps down 510kbps up -- Thomas
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.