alloc_socket: interrupt lock
authorAlan Cox <alan@linux.intel.com>
Fri, 25 Mar 2016 21:07:07 +0000 (21:07 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 25 Mar 2016 21:07:07 +0000 (21:07 +0000)
commita31db315645b286a5f1f0901b8c63668a7e57a15
treea74498da56319140b38e54f4bcca34c8a3911831
parentb78133edfa33436433bffe6f1c90582a79b4ebff
alloc_socket: interrupt lock

In the normal case this is safe because we always allocate from in kernel.
Likewise it's safe for accept with the native TCP/IP. However it's not safe
if we have a hardware TCP/IP and it implements accept() and thus allocates
accepting sockets from an interrupt.

So block IRQs for the brief scan.

[noted by Brett]
Kernel/syscall_net.c