- sock_create-bad-error-return.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     sock_create bad error return

has been removed from the -mm tree.  Its filename is

     sock_create-bad-error-return.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: sock_create bad error return
From: Stephen Hemminger <shemminger@xxxxxxxx>

If socket create call races with module unload, it correctly fails the socket
call but doesn't return an error.  This race is theoritical because the
sock->ops are always the same and non-modular.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 net/socket.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN net/socket.c~sock_create-bad-error-return net/socket.c
--- a/net/socket.c~sock_create-bad-error-return
+++ a/net/socket.c
@@ -1211,6 +1211,7 @@ static int __sock_create(int family, int
 	 * socket at sock_release time we decrement its refcnt.
 	 */
 	if (!try_module_get(sock->ops->owner)) {
+		err = -EAGAIN;
 		sock->ops = NULL;
 		goto out_module_put;
 	}
_

Patches currently in -mm which might be from shemminger@xxxxxxxx are

git-netdev-all.patch
via-rhine-napi-support.patch
via-rhine-napi-poll-enable.patch
skge-remember-to-run-netif_poll_disable.patch
git-net.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux