Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757444AbZAXEk0 (ORCPT ); Fri, 23 Jan 2009 23:40:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754461AbZAXEkL (ORCPT ); Fri, 23 Jan 2009 23:40:11 -0500 Received: from terminus.zytor.com ([198.137.202.10]:46634 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754485AbZAXEkK (ORCPT ); Fri, 23 Jan 2009 23:40:10 -0500 Message-ID: <497A9B93.2050703@zytor.com> Date: Fri, 23 Jan 2009 20:39:47 -0800 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Hiroshi Shimamoto CC: Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [RFC v2 -tip 0/3] x86: reduce fixup of uaccess References: <4962CAAE.6090300@ct.jp.nec.com> <496476D0.5040607@zytor.com> <497A5737.8030408@ct.jp.nec.com> In-Reply-To: <497A5737.8030408@ct.jp.nec.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1336 Lines: 36 Hiroshi Shimamoto wrote: > This patch series redues fixup code for exceptions of uaccess in signal. > > There is a lot of fixup code which is generated by using __{get|put}_user. > I think that code can be reduced. The concept is that to add uaccess_err in > thread_info and set it to -EFAULT on exception, finally check this value on > the last of function. > > The code size reductions are below; > $ size *signal*.o.* > text data bss dec hex filename > 4596 0 0 4596 11f4 ia32_signal.o.new > 6006 0 0 6006 1776 ia32_signal.o.old > 3583 0 0 3583 dff signal.o.new > 4540 0 0 4540 11bc signal.o.old > 3863 0 0 3863 f17 signal32.o.new > 4876 0 0 4876 130c signal32.o.old > [ signal32.o means signal.o on 32-bit. ] > Applied to tip:x86/uaccess. I haven't tested it much yet, but at least a visual lookover looks good. Thanks! -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/