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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <af65a52b-7a64-74bf-8330-2f4f93547c82@fb.com>
Date:   Fri, 23 Apr 2021 15:59:38 -0700
From:   Yonghong Song <yhs@...com>
To:     Andrii Nakryiko <andrii@...nel.org>, <bpf@...r.kernel.org>,
        <netdev@...r.kernel.org>, <ast@...com>, <daniel@...earbox.net>
CC:     <kernel-team@...com>
Subject: Re: [PATCH v2 bpf-next 4/6] bpftool: handle transformed static map
 names in BPF skeleton



On 4/23/21 11:53 AM, Andrii Nakryiko wrote:
> Static maps will be renamed according to the same rules as global variables
   global => static
> (<obj_name>..<map_name>) during static linking. This breaks current BPF
> skeleton logic that uses normal non-internal maps' names as is. Instead, do
> the same map identifier sanitization as is done for global variables, turning
   global => static
> static maps into <obj_name>__<map_name> fields in BPF skeleton. Their original
> names with '..' separator are preserved by libbpf and submitted as is into the
> kernel. As well as they can be looked up using their unsanitized name with
> using bpf_object__find_map_by_name() API.
> 
> There are no breaking changes concerns, similarly to static variable renames,
> because this renaming happens only during static linking. Plus static maps
> never really worked and thus were never used in practice.
> 
> Signed-off-by: Andrii Nakryiko <andrii@...nel.org>

Acked-by: Yonghong Song <yhs@...com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ