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  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]
Date:   Fri, 8 Nov 2019 16:42:41 -0800
From:   Andrii Nakryiko <>
To:     Toke Høiland-Jørgensen <>
Cc:     Daniel Borkmann <>,
        Alexei Starovoitov <>,
        Martin KaFai Lau <>,
        Song Liu <>, Yonghong Song <>,
        Jesper Dangaard Brouer <>,
        David Miller <>,
        Networking <>, bpf <>
Subject: Re: [PATCH bpf-next v3 1/6] libbpf: Unpin auto-pinned maps if loading fails

On Fri, Nov 8, 2019 at 4:00 PM Toke Høiland-Jørgensen <> wrote:
> From: Toke Høiland-Jørgensen <>
> Since the automatic map-pinning happens during load, it will leave pinned
> maps around if the load fails at a later stage. Fix this by unpinning any
> pinned maps on cleanup. To avoid unpinning pinned maps that were reused
> rather than newly pinned, add a new boolean property on struct bpf_map to
> keep track of whether that map was reused or not; and only unpin those maps
> that were not reused.
> Fixes: 57a00f41644f ("libbpf: Add auto-pinning of maps when loading BPF objects")
> Acked-by: David S. Miller <>
> Acked-by: Song Liu <>
> Signed-off-by: Toke Høiland-Jørgensen <>
> ---

Acked-by: Andrii Nakryiko <>


Powered by blists - more mailing lists