Re: [Patch net] kcm: fix a socket double free

2016-08-31 Thread David Miller
From: Cong Wang Date: Sun, 28 Aug 2016 21:28:26 -0700 > Dmitry reported a double free on kcm socket, which could > be easily reproduced by: > > #include > #include > > int main() > { > int fd = syscall(SYS_socket, 0x29ul, 0x5ul, 0x0ul, 0, 0, 0); > sysca

[Patch net] kcm: fix a socket double free

2016-08-28 Thread Cong Wang
Dmitry reported a double free on kcm socket, which could be easily reproduced by: #include #include int main() { int fd = syscall(SYS_socket, 0x29ul, 0x5ul, 0x0ul, 0, 0, 0); syscall(SYS_ioctl, fd, 0x89e2ul, 0x20a98000ul, 0, 0, 0); re