Linux Local Privilege Escalation via SUID /proc/pid/mem Write
The use of goto[1] in this code surprises me. Isn't use of it still generally shunned?Appearing in the Linux kernel makes me reconsider my avoidance of it[2]. A quick google throws up a discussion with Linus in 2003[3] which can be summarised as: don't blame the tool, blame the programmer and as a tool goto has a place.[1] XKCD comic on the subject http://xkcd.com/292/[2] On my infrequent visits to C++ land, I generally live in Python land where goto doesn't exist.[3] http://kerneltrap.org/node/553/2131