shared memory deallocation

Bevan Schroeder (bevan@ucsd.edu)
Sun, 26 Apr 1998 19:59:34 -0700 (PDT)


Having been raised to be a slacker coder by garbage-collecting UNIX
environments, I was a bit surprised when linux failed to do anything about
the shared memory I had allocated for use with XLib. In retrospect, it
makes sense, but the damage was done, and I had a 60MB+ memory leak on a
system that can't spare quite that much. I looked through ipc/shm.c for
structures that at least kept track of these pointers so that I could
write a program that would look them up and shmdt() them, but nothing
obvious bit me: is there anything in /proc or otherwise user-accessible
that lists shared memory pointers that are currently allocated?
Given a system with malicious users, this seems like a particularly
attractive DoS attack - sysadmins either have to reboot all the time or
limit memory allocation, and the latter is unpleasant to do even if it
works...

-bevan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu