summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2004-11-28 11:57:52 +0000
committerTim Yamin <plasmaroo@gentoo.org>2004-11-28 11:57:52 +0000
commitc433ced1f6ec8662d44e77eea8a7cf7c02f81625 (patch)
tree3ea40a01bebc964a015d2547649971fb9d7cb6d1 /sys-kernel/xbox-sources/files
parentAdding fixed 2.6 AF_UNIX security patch for 2.6 branch; bug #72688. (Manifest... (diff)
downloadgentoo-2-c433ced1f6ec8662d44e77eea8a7cf7c02f81625.tar.gz
gentoo-2-c433ced1f6ec8662d44e77eea8a7cf7c02f81625.tar.bz2
gentoo-2-c433ced1f6ec8662d44e77eea8a7cf7c02f81625.zip
Adding fixed 2.6 AF_UNIX security patch for 2.6 branch; bug #72688.
Diffstat (limited to 'sys-kernel/xbox-sources/files')
-rw-r--r--sys-kernel/xbox-sources/files/xbox-sources-2.6.8.1.AF_UNIX.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-kernel/xbox-sources/files/xbox-sources-2.6.8.1.AF_UNIX.patch b/sys-kernel/xbox-sources/files/xbox-sources-2.6.8.1.AF_UNIX.patch
new file mode 100644
index 000000000000..a95e94fd9362
--- /dev/null
+++ b/sys-kernel/xbox-sources/files/xbox-sources-2.6.8.1.AF_UNIX.patch
@@ -0,0 +1,24 @@
+--- linux-2.6.9/net/unix/af_unix.c 2004-11-24 08:23:21 -08:00
++++ linux-2.6.9.plasmaroo/net/unix/af_unix.c 2004-11-24 08:23:21 -08:00
+@@ -1535,9 +1535,11 @@
+
+ msg->msg_namelen = 0;
+
++ down(&u->readsem);
++
+ skb = skb_recv_datagram(sk, flags, noblock, &err);
+ if (!skb)
+- goto out;
++ goto out_unlock;
+
+ wake_up_interruptible(&u->peer_wait);
+
+@@ -1587,6 +1589,8 @@
+
+ out_free:
+ skb_free_datagram(sk,skb);
++out_unlock:
++ up(&u->readsem);
+ out:
+ return err;
+ }