]> git.baikalelectronics.ru Git - kernel.git/commit
sit: use __GFP_NOWARN for user controlled allocation
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 22 Jun 2017 22:29:33 +0000 (15:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jun 2017 18:08:40 +0000 (14:08 -0400)
commitf933ce032da1c783ffb6dc809e76c8e0e0654508
tree096fe914e9a99b0bf3feefae7825a20a02f9b6ef
parent3204ad976d355d0926d7613910f28d8048c9874d
sit: use __GFP_NOWARN for user controlled allocation

The memory allocation size is controlled by user-space,
if it is too large just fail silently and return NULL,
not to mention there is a fallback allocation later.

Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c