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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 14 May 2020 18:27:41 -0700 From: Alexei Starovoitov <alexei.starovoitov@...il.com> To: Yonghong Song <yhs@...com> Cc: Lorenzo Bianconi <lorenzo@...nel.org>, bpf <bpf@...r.kernel.org>, Network Development <netdev@...r.kernel.org>, Alexei Starovoitov <ast@...nel.org>, "David S. Miller" <davem@...emloft.net>, Jesper Dangaard Brouer <brouer@...hat.com>, Daniel Borkmann <daniel@...earbox.net>, lorenzo.bianconi@...hat.com Subject: Re: [PATCH bpf-next v2] samples/bpf: xdp_redirect_cpu: set MAX_CPUS according to NR_CPUS On Tue, May 12, 2020 at 10:03 AM Yonghong Song <yhs@...com> wrote: > > > > On 5/12/20 9:30 AM, Lorenzo Bianconi wrote: > > xdp_redirect_cpu is currently failing in bpf_prog_load_xattr() > > allocating cpu_map map if CONFIG_NR_CPUS is less than 64 since > > cpu_map_alloc() requires max_entries to be less than NR_CPUS. > > Set cpu_map max_entries according to NR_CPUS in xdp_redirect_cpu_kern.c > > and get currently running cpus in xdp_redirect_cpu_user.c > > > > Signed-off-by: Lorenzo Bianconi <lorenzo@...nel.org> > > Acked-by: Yonghong Song <yhs@...com> Applied. Thanks
Powered by blists - more mailing lists