[Devel] [PATCH RHEL7 COMMIT] ms/net/[regression]: do not allow to reopen socket

Konstantin Khorenko khorenko at virtuozzo.com
Tue Oct 27 08:12:16 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.9.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.9.1
------>
commit 50eb3fca2c7204f2a44678e71ea2f01123db51d4
Author: Dmitry Monakhov <dmonakhov at openvz.org>
Date:   Tue Oct 27 19:12:16 2015 +0400

    ms/net/[regression]: do not allow to reopen socket
    
    https://jira.sw.ru/browse/PSBM-40500
    Signed-off-by: Dmitry Monakhov <dmonakhov at openvz.org>
    
    ms commit: e3bb504efd919f7bacd24cb14038953899b909e1
    
    From: Al Viro <viro at zeniv.linux.org.uk>
    Subject: [PATCH] [regression] chunk lost from bd9b51
    
    Reported-by: Pavel Emelyanov <xemul at parallels.com>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
    Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
---
 net/socket.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/socket.c b/net/socket.c
index 59b0780..06eaf08 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -373,7 +373,6 @@ struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname)
 	path.mnt = mntget(sock_mnt);
 
 	d_instantiate(path.dentry, SOCK_INODE(sock));
-	SOCK_INODE(sock)->i_fop = &socket_file_ops;
 
 	file = alloc_file(&path, FMODE_READ | FMODE_WRITE,
 		  &socket_file_ops);



More information about the Devel mailing list