mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 08:50:30 +00:00 
			
		
		
		
	In 4.10.5 and 4.9.17 include a fix for the VMBus memory leak, cherry-picked from char-misc: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/commit/?h=char-misc-linus&id=5e030d5ce9d99a899b648413139ff65bab12b038 This patch was tested with the 4.10.5 kernel and the Hyper-V Socket stress test. It was forwarded to stable@vger to be included in one of the next stable releases. Also remove the CPU ACCT revert as 17.03.1-rc1 is out and has a fix Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			929 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			929 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 93842085264c9dbc2ccf2a783f6af7ef7ea1c122 Mon Sep 17 00:00:00 2001
 | |
| From: Ian Campbell <ian.campbell@docker.com>
 | |
| Date: Mon, 4 Apr 2016 14:50:10 +0100
 | |
| Subject: [PATCH 15/44] VSOCK: Only allow host network namespace to use
 | |
|  AF_VSOCK.
 | |
| 
 | |
| The VSOCK addressing schema does not really lend itself to simply creating an
 | |
| alternative end point address within a namespace.
 | |
| 
 | |
| Signed-off-by: Ian Campbell <ian.campbell@docker.com>
 | |
| ---
 | |
|  net/vmw_vsock/af_vsock.c | 3 +++
 | |
|  1 file changed, 3 insertions(+)
 | |
| 
 | |
| diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
 | |
| index 17dbbe64cd73..1bb1b016e945 100644
 | |
| --- a/net/vmw_vsock/af_vsock.c
 | |
| +++ b/net/vmw_vsock/af_vsock.c
 | |
| @@ -1852,6 +1852,9 @@ static const struct proto_ops vsock_stream_ops = {
 | |
|  static int vsock_create(struct net *net, struct socket *sock,
 | |
|  			int protocol, int kern)
 | |
|  {
 | |
| +	if (!net_eq(net, &init_net))
 | |
| +		return -EAFNOSUPPORT;
 | |
| +
 | |
|  	if (!sock)
 | |
|  		return -EINVAL;
 | |
|  
 | |
| -- 
 | |
| 2.11.0
 | |
| 
 |