From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751207AbWDPETW (ORCPT ); Sun, 16 Apr 2006 00:19:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751209AbWDPETW (ORCPT ); Sun, 16 Apr 2006 00:19:22 -0400 Received: from xenotime.net ([66.160.160.81]:35217 "HELO xenotime.net") by vger.kernel.org with SMTP id S1751207AbWDPETW (ORCPT ); Sun, 16 Apr 2006 00:19:22 -0400 Date: Sat, 15 Apr 2006 21:21:47 -0700 From: "Randy.Dunlap" To: hzy@cs.otago.ac.nz Cc: zhiyi6@xtra.co.nz, penberg@cs.helsinki.fi, hnagar2@gmail.com, linux-kernel@vger.kernel.org Subject: Re: Slab corruption after unloading a module Message-Id: <20060415212147.6e9b0c11.rdunlap@xenotime.net> In-Reply-To: <20060412230439.WMCC8268.mta4-rme.xtra.co.nz@[202.27.184.228]> References: <20060412230439.WMCC8268.mta4-rme.xtra.co.nz@[202.27.184.228]> Organization: YPO4 X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.3; x86_64-unknown-linux-gnu) Mime-Version: 1.0 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 On Thu, 13 Apr 2006 11:04:39 +1200 Zhiyi Huang wrote: > > 2.6.8 is an old kernel, you could very well be hitting a kernel bug > > that has been fixed already. Can you reproduce this with 2.6.16? > > I will try that soon. > > > Also, > > you're not including sources to your module so it's impossible to tell > > whether you're doing something wrong. > > > > Pekka > > Below is my baby module which only uses kmalloc and kfree for my device > structure. I found the slab corruption address is the address of the structure. > It seems to be a bug for kmalloc and kfree. > /* The parameter for testing */ > int major=0; > MODULE_PARM(major, "i"); > MODULE_PARM_DESC(major, "device major number"); Hi, I had no problem loading and unloading your module on 2.6.17-rc1 [after changing MODULE_PARM() to module_param(major, int, 0644); ]. --- ~Randy