Yes. The correct fix should be to add a
atomic_inc(¤t->user->processes);
to just before the atomic_dec(&user->processes). Because we also need to
increment the root process count and not just decrement the process count
of whoever happened to do the kmod()..
And no, it's not tested, I'd love to hear whether it fixes the problem
people have.. (I have that atomic_inc in my kernel already, but it would
be good to have it verified from somebody who actually _uses_ kmod ;)
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/