Re: [PATCH net v2] net: add validation for the socket syscall protocol argument

2015-12-14 Thread David Miller
From: Hannes Frederic Sowa Date: Mon, 14 Dec 2015 22:03:39 +0100 > 郭永刚 reported that one could simply crash the kernel as root by > using a simple program: > > int socket_fd; > struct sockaddr_in addr; > addr.sin_port = 0; > addr.sin_addr.s_addr = INADDR_ANY; > addr

[PATCH net v2] net: add validation for the socket syscall protocol argument

2015-12-14 Thread Hannes Frederic Sowa
郭永刚 reported that one could simply crash the kernel as root by using a simple program: int socket_fd; struct sockaddr_in addr; addr.sin_port = 0; addr.sin_addr.s_addr = INADDR_ANY; addr.sin_family = 10; socket_fd = socket(10,3,0x4000); c