From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932147AbZKLD4P (ORCPT ); Wed, 11 Nov 2009 22:56:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757252AbZKLD4P (ORCPT ); Wed, 11 Nov 2009 22:56:15 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:53685 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756199AbZKLD4O (ORCPT ); Wed, 11 Nov 2009 22:56:14 -0500 Date: Wed, 11 Nov 2009 19:56:40 -0800 (PST) Message-Id: <20091111.195640.82952998.davem@davemloft.net> To: arnd@arndb.de Cc: linux-kernel@vger.kernel.org, patrick.ohly@intel.com, netdev@vger.kernel.org Subject: Re: [PATCH] net/compat: fix dev_ifsioc emulation corner cases From: David Miller In-Reply-To: <200911111439.40753.arnd@arndb.de> References: <200911061500.01651.arnd@arndb.de> <20091110.204118.12070030.davem@davemloft.net> <200911111439.40753.arnd@arndb.de> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Wed, 11 Nov 2009 14:39:40 +0100 > Handling for SIOCSHWTSTAMP is broken on architectures > with a split user/kernel address space like s390, > because it passes a real user pointer while using > set_fs(KERNEL_DS). > A similar problem might arise the next time somebody > adds code to dev_ifsioc. > > Split up dev_ifsioc into three separate functions for > SIOCSHWTSTAMP, SIOC*IFMAP and all other numbers so > we can get rid of set_fs in all potentially affected > cases. > > Signed-off-by: Arnd Bergmann Applied. > Resending this one as well, rebased to current net-next. > Please tell me if you want a backport to 2.6.32 or -stable > for this one. > No.