]> asedeno.scripts.mit.edu Git - linux.git/commit
sock: ulimit on MSG_ZEROCOPY pages
authorWillem de Bruijn <willemb@google.com>
Thu, 3 Aug 2017 20:29:43 +0000 (16:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2017 04:37:30 +0000 (21:37 -0700)
commita91dbff551a6f1865b68fa82b654591490b59901
tree89d57387331da71c174bff7d3d840c7f39b30e83
parent4ab6c99d99bb1bf0fbba8ff4e52114c66109992f
sock: ulimit on MSG_ZEROCOPY pages

Bound the number of pages that a user may pin.

Follow the lead of perf tools to maintain a per-user bound on memory
locked pages commit 789f90fcf6b0 ("perf_counter: per user mlock gift")

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sched/user.h
include/linux/skbuff.h
net/core/skbuff.c