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
| ||
|
Date: Wed, 27 Feb 2019 17:15:16 -0800 From: Alexei Starovoitov <alexei.starovoitov@...il.com> To: Martin Lau <kafai@...com> Cc: zerons <sironhide0null@...il.com>, "ast@...nel.org" <ast@...nel.org>, "daniel@...earbox.net" <daniel@...earbox.net>, "netdev@...r.kernel.org" <netdev@...r.kernel.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org> Subject: Re: [PATCH] bpf: drop refcount if bpf_map_new_fd() fails in map_create() On Wed, Feb 27, 2019 at 04:52:16PM +0000, Martin Lau wrote: > On Wed, Feb 27, 2019 at 10:36:25PM +0800, zerons wrote: > > In bpf/syscall.c, map_create() first set map->usercnt to 1, a file descriptor is > > supposed to return to userspace. When bpf_map_new_fd() fails, drop the refcount. > Thanks for the patch. > > Please add a Fixes tag for bug fix in the future. > > Fixes: bd5f5f4ecb78 ("bpf: Add BPF_MAP_GET_FD_BY_ID") > Acked-by: Martin KaFai Lau <kafai@...com> Applied, Thanks
Powered by blists - more mailing lists