lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <1453830820-27104-1-git-send-email-xiyou.wangcong@gmail.com> Date: Tue, 26 Jan 2016 09:53:39 -0800 From: Cong Wang <xiyou.wangcong@...il.com> To: netdev@...r.kernel.org Cc: dvyukov@...gle.com, linux-wireless@...r.kernel.org, Cong Wang <xiyou.wangcong@...il.com>, Lauro Ramos Venancio <lauro.venancio@...nbossa.org>, Aloisio Almeida Jr <aloisio.almeida@...nbossa.org>, Samuel Ortiz <sameo@...ux.intel.com> Subject: [PATCH RESEND net] nfc: use GFP_USER for user-controlled kmalloc Reported-by: Dmitry Vyukov <dvyukov@...gle.com> Cc: Lauro Ramos Venancio <lauro.venancio@...nbossa.org> Cc: Aloisio Almeida Jr <aloisio.almeida@...nbossa.org> Cc: Samuel Ortiz <sameo@...ux.intel.com> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com> --- net/nfc/llcp_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nfc/llcp_commands.c b/net/nfc/llcp_commands.c index 3621a90..5d94055 100644 --- a/net/nfc/llcp_commands.c +++ b/net/nfc/llcp_commands.c @@ -729,7 +729,7 @@ int nfc_llcp_send_ui_frame(struct nfc_llcp_sock *sock, u8 ssap, u8 dsap, if (local == NULL) return -ENODEV; - msg_data = kzalloc(len, GFP_KERNEL); + msg_data = kzalloc(len, GFP_USER | __GFP_NOWARN); if (msg_data == NULL) return -ENOMEM; -- 1.8.3.1
Powered by blists - more mailing lists