[OpenAFS-devel] Kernel memory leak with 1.4.7 on Linux 2.6.25

Russ Allbery rra@debian.org
Sun, 06 Jul 2008 20:17:32 -0700


(Bcc'd to openafs-bugs.)

Looks like we're still getting kernel memory leaks on module unload on
Linux.  I see the following on an AMD64 system after unloading the module:

[34309.383678] WARM shutting down of: CB... afs... BkG... CTrunc... AFSDB... RxEvent... UnmaskRxkSignals... RxListener... 
[34309.900593] WARNING: not all blocks freed: large 1 small 4
[34309.900593]  ALL allocated tables
[34310.153148] ------------[ cut here ]------------
[34310.153148] WARNING: at fs/proc/generic.c:780 remove_proc_entry+0x13f/0x179()
[34310.153148] Modules linked in: openafs(P-) nvidia(P) ipv6 it87 hwmon_vid orinoco_pci orinoco hermes sd_mod hostap_pci hostap ieee80211_crypt snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd button i2c_nforce2 soundcore parport_pc parport k8temp i2c_core evdev shpchp pci_hotplug snd_page_alloc pcspkr ext3 jbd mbcache ide_cd_mod cdrom ide_disk ata_generic usb_storage amd74xx usbhid hid ff_memless floppy sata_sil libata scsi_mod dock firewire_ohci firewire_core crc_itu_t ide_pci_generic ide_core forcedeth ehci_hcd ohci_hcd thermal processor fan
[34310.153148] Pid: 15600, comm: rmmod Tainted: P   M     2.6.25-2-amd64 #1
[34310.153148] 
[34310.153148] Call Trace:
[34310.153148]  [<ffffffff80234ce5>] warn_on_slowpath+0x51/0x63
[34310.153148]  [<ffffffff8021b56c>] __smp_call_function_mask+0x42/0xbf
[34310.153148]  [<ffffffff8021b56c>] __smp_call_function_mask+0x42/0xbf
[34310.153148]  [<ffffffff8021b56c>] __smp_call_function_mask+0x42/0xbf
[34310.153148]  [<ffffffff8021b56c>] __smp_call_function_mask+0x42/0xbf
[34310.153148]  [<ffffffff8021b56c>] __smp_call_function_mask+0x42/0xbf
[34310.153148]  [<ffffffff8021b6bd>] do_flush_tlb_all+0x0/0x28
[34310.153148]  [<ffffffff8021b638>] smp_call_function_mask+0x4f/0x5d
[34310.153148]  [<ffffffff802d7039>] remove_proc_entry+0x13f/0x179
[34310.153148]  [<ffffffff88b21cac>] :openafs:cleanup_module+0x3c/0x66
[34310.153148]  [<ffffffff80255a3d>] sys_delete_module+0x1a8/0x1ec
[34310.153148]  [<ffffffff80318ea7>] __up_write+0x21/0x10e
[34310.153148]  [<ffffffff8020bd9a>] system_call_after_swapgs+0x8a/0x8f
[34310.153148] 
[34310.153148] ---[ end trace 21276b40b0dbeece ]---

The module reloads for me, but I've had it stop being able to load with
enough times through an unload and reload sequence.

See also http://bugs.debian.org/489613

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>