Skip to contentSkip to conversation

New: pktgen procfs problem

Bugme-new Alexey Dobriyan 1 participant 1 message May 19, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 5 lines

remove_proc_entry: removing non-empty directory 'net/pktgen', leaking at least 'kpktgend_1'

fs/proc/inode.c struct inode *proc_get_inode(struct super_block *sb, unsigned int ino, · line 432

Quoted 9 lines
fs/proc/inode.c +2 -1
@@ -425,7 +425,8 @@ struct inode *proc_get_inode(struct super_block *sb, unsigned int ino,
                        }
                }
                unlock_new_inode(inode);
-       }
+       } else
+              module_put(de->owner);
        return inode;
 
 out_ino:

For the record, I fail to see how this can fix original bugreport:
If rmmod started and proc warnings were spewed, module's refcount was 0, so positive refcount leak can't do that.

Roland, was it just modprobe/rmmod or something else?