Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751472AbXAHHY1 (ORCPT ); Mon, 8 Jan 2007 02:24:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751471AbXAHHY0 (ORCPT ); Mon, 8 Jan 2007 02:24:26 -0500 Received: from moutng.kundenserver.de ([212.227.126.188]:57052 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751469AbXAHHYZ convert rfc822-to-8bit (ORCPT ); Mon, 8 Jan 2007 02:24:25 -0500 From: Arnd Bergmann To: Stephen Rothwell Subject: Re: [PATCH] Common compat_sys_sysinfo (v2) Date: Mon, 8 Jan 2007 06:54:26 +0100 User-Agent: KMail/1.9.5 Cc: Kyle McMartin , Christoph Hellwig , akpm@osdl.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, parisc-linux@lists.parisc-linux.org References: <20070107144850.GB3207@athena.road.mcmartin.ca> <20070107154045.GD3207@athena.road.mcmartin.ca> <20070108104347.83a004aa.sfr@canb.auug.org.au> In-Reply-To: <20070108104347.83a004aa.sfr@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200701080654.27100.arnd@arndb.de> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:c48f057754fc1b1a557605ab9fa6da41 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 860 Lines: 24 On Monday 08 January 2007 00:43, Stephen Rothwell wrote: > > +asmlinkage long sys_sysinfo(struct sysinfo __user *info) > > +{ > > +?????struct sysinfo val; > > + > > +?????do_sysinfo(&val); > > > > - out: > > ??????if (copy_to_user(info, &val, sizeof(struct sysinfo))) > > ??????????????return -EFAULT; > > People have complined before that this adds a whole stack frame to the > "normal" syscall path. ?Personally I don't care, but it has been > mentioned. It might be a concern for something like 'read' which is called frequently and in strange ways, but for 'sysinfo' this really should not matter. Arnd <>< - 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/