summaryrefslogtreecommitdiff
path: root/net/nfc/hci
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2016-01-29 22:24:24 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2016-02-25 10:40:55 +0300
commit81ca7835f2cb0c3ba4236e3bcf31d997c6f5d71a (patch)
tree5ca43bb47ccc627193473702e140b70b036c66a1 /net/nfc/hci
parent667f00630ebefc4d73aa105c6ab254e4aec867f8 (diff)
downloadlinux-81ca7835f2cb0c3ba4236e3bcf31d997c6f5d71a.tar.xz
NFC: Use GFP_USER for user-controlled kmalloc
These two functions are called in sendmsg path, and the 'len' is passed from user-space, so we should not allow malicious users to OOM kernel on purpose. Reported-by: Dmitry Vyukov <dvyukov@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Julian Calaby <julian.calaby@gmail.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/hci')
0 files changed, 0 insertions, 0 deletions