Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 14 Nov 2001 23:26:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 14 Nov 2001 23:26:08 -0500 Received: from c1313109-a.potlnd1.or.home.com ([65.0.121.190]:30981 "HELO kroah.com") by vger.kernel.org with SMTP id ; Wed, 14 Nov 2001 23:25:58 -0500 Date: Wed, 14 Nov 2001 21:24:41 -0800 From: Greg KH To: Alexander Viro Cc: Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [RFC] races in access to pci_devices Message-ID: <20011114212441.B8285@kroah.com> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-Operating-System: Linux 2.2.20 (i586) Reply-By: Thu, 18 Oct 2001 04:03:20 -0700 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 14, 2001 at 11:00:26PM -0500, Alexander Viro wrote: > Linus, as far as I can see there's no exclusion between > the code that walks pci_devices and pci_insert_device(). It's > not a big deal wrt security (not many laptops with remote access) > but... It's a bigger deal with large servers that have PCI Hotplug controllers. > What locking is supposed to be there? I'll add a lock to keep the problem from happening. thanks, greg k-h - 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/