Re: [PATCH v9 net-next 1/2] hv_sock: introduce Hyper-V Sockets

From: David Miller
Date: Sat May 07 2016 - 13:41:17 EST


From: Dexuan Cui <decui@xxxxxxxxxxxxx>
Date: Sat, 7 May 2016 10:49:25 +0000

> I should be able to make 'send', 'recv' here to pointers and use vmalloc()
> to allocate the memory for them. I will do this.

That's still unswappable kernel memory.

People can open N sockets, where N is something on the order of the FD
limit the process has, per process. This allows someone to quickly
eat up a lot of memory and hold onto it nearly indefinitely.