Re: [PATCH] NFC: Read frag at a time when sending packets

2014-08-04 Thread Sasha Levin
Ping? On 06/19/2014 11:23 PM, Sasha Levin wrote: > Right now userspace can pass a large chunk of data and the kernel > will attempt to allocate all of it to copy it in from userspace. > > The problem is that there is no upper limit on the size userspace > can pass. Right now userspace can even fo

[PATCH] NFC: Read frag at a time when sending packets

2014-06-19 Thread Sasha Levin
Right now userspace can pass a large chunk of data and the kernel will attempt to allocate all of it to copy it in from userspace. The problem is that there is no upper limit on the size userspace can pass. Right now userspace can even force a machine to run out of memory by forcing the kernel to