]> git.hungrycats.org Git - linux/commit
[NET] Fix X.25 use after free.
authorStephen Hemminger <shemminger@osdl.org>
Wed, 6 Aug 2003 20:31:11 +0000 (06:31 +1000)
committerStephen Hemminger <shemminger@osdl.org>
Wed, 6 Aug 2003 20:31:11 +0000 (06:31 +1000)
commitee1dc1428b630b8efefcf962f607396af5954c5e
tree1d5cdc92cda381b5c957f3ca9e793b373a4d8b08
parentca8c5e0ed008cd41d69d6a47165de0f785706896
[NET] Fix X.25 use after free.

The conversion from cli/sti to locking in X.25 must not have been tested
on a real SMP with memory debugging enabled.  It OOPS right away if
I do:
        modprobe x25; ifconfig -a

The problem is that it dereferences the socket after it has already been
freed.  The fix for this is to make the call to sock_put, later in
x25_destroy_socket do the free.  Also, need a go to avoid references
in x25_release.
net/x25/af_x25.c