Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754701AbYLGQ5q (ORCPT ); Sun, 7 Dec 2008 11:57:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753866AbYLGQ5f (ORCPT ); Sun, 7 Dec 2008 11:57:35 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:45682 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753493AbYLGQ5e (ORCPT ); Sun, 7 Dec 2008 11:57:34 -0500 Date: Sun, 7 Dec 2008 16:57:40 +0000 From: Alan Cox To: "Kay Sievers" Cc: "Herbert Xu" , zbr@ioremap.net, linux-kernel@vger.kernel.org, "Linux Crypto Mailing List" Subject: Re: Runaway loop with the current git. Message-ID: <20081207165740.2c4bbb0d@lxorguk.ukuu.org.uk> In-Reply-To: References: <20081207112335.0afd5192@lxorguk.ukuu.org.uk> <20081207155507.GA15355@gondor.apana.org.au> <20081207160921.693f637a@lxorguk.ukuu.org.uk> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.12; x86_64-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 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 Content-Length: 1256 Lines: 29 > > It isn't a problem. It is trying to have hotplug load a suitable driver. > > This is what is supposed to happen. > > No, it's not. 5:1 is _in_ the kernel, and must not be tried to be > loaded by the kernel. We need to make /dev/console access return > -ENODEV if not available, not try to load a module for it. Hello earth calling, wake up. The userspace opens major 5 minor 1. The kernel has no driver mapped to that so the kernel asks user space to load a module of its choice for major 5 minor 1. What user space does with that is and has always been a problem for user space. User space is quite at liberty to go .. 5,1 and I have a serial console I want to load 8250_pci please. What it must not do is try and re-open it again and again and again. You may not assume that a given device load mapping is solely used to create the most basic device node involved. It isn't that simple. In many cases a device node translates to a series of module loads of otherwise apparently unrelated devices. -- 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/