lkml.org 
[lkml]   [1997]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectbug in inode.c, pre-10 2.0.31

With proper exploit code i could trigger 'iput: inode 55356 on device
08:02 still has mappings' messages. I'm not sure wether the fix is OK, but
the messages are gone.

-- mingo

--- .inode.c.orig Wed Oct 15 19:38:54 1997
+++ inode.c Wed Oct 15 19:45:30 1997
@@ -467,6 +467,14 @@

inode->i_count--;

+ if (inode->i_count)
+ /*
+ * Huoh, we were supposed to be the last user, but someone has
+ * grabbed it while we were sleeping. Dont destroy inode VM
+ * mappings, it might cause a memory leak.
+ */
+ return;
+
if (inode->i_mmap) {
printk("iput: inode %lu on device %s still has mappings.\n",
inode->i_ino, kdevname(inode->i_dev));


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.075 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site