Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 11 Dec 2001 20:09:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 11 Dec 2001 20:08:57 -0500 Received: from vasquez.zip.com.au ([203.12.97.41]:267 "EHLO vasquez.zip.com.au") by vger.kernel.org with ESMTP id ; Tue, 11 Dec 2001 20:08:45 -0500 Message-ID: <3C16ADB1.F9E847E9@zip.com.au> Date: Tue, 11 Dec 2001 17:06:57 -0800 From: Andrew Morton X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.17-pre8 i686) X-Accept-Language: en MIME-Version: 1.0 To: Berend De Schouwer CC: linux-kernel@vger.kernel.org Subject: Re: PROBLEM: Kernel Oops on cat /proc/ioports In-Reply-To: <1008073796.5535.5.camel@bds.ucs.co.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Berend De Schouwer wrote: > > [1.] One line summary of the problem: > > Running "cat /proc/ioports" causes a segfault and kernel oops. > > ... > [7.3.] Module information (from /proc/modules): > > cyclades 147616 16 (autoclean) cyclades does request_region(), but forgets to do release_region(). This will leave the region allocated in kernel data structures, but its "name" field resides in module memory. So if you load cyclades.o, then rmmod it, then cat /proc/ioports, you'll touch unmapped memory and go boom. Some brave soul needs to teach cyclades about release_region(). Shame the Nobel prizes are all gone this year. - - 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/