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] [day] [month] [year] [list]
Date:   Tue, 14 May 2019 01:33:47 +0200
From:   Daniel Borkmann <>
To:     Eric Dumazet <>,
        Alexei Starovoitov <>
Cc:     "David S . Miller" <>,
        netdev <>,
        Eric Dumazet <>,
        bpf <>,,
        Toke Høiland-Jørgensen <>,
        Jesper Dangaard Brouer <>
Subject: Re: [PATCH net] bpf: devmap: fix use-after-free Read in

On 05/13/2019 06:59 PM, Eric Dumazet wrote:
> synchronize_rcu() is fine when the rcu callbacks only need
> to free memory (kfree_rcu() or direct kfree() call rcu call backs)
> __dev_map_entry_free() is a bit more complex, so we need to make
> sure that call queued __dev_map_entry_free() callbacks have completed.
> sysbot report:
> BUG: KASAN: use-after-free in dev_map_flush_old kernel/bpf/devmap.c:365
> [inline]
> BUG: KASAN: use-after-free in __dev_map_entry_free+0x2a8/0x300
> kernel/bpf/devmap.c:379
> Read of size 8 at addr ffff8801b8da38c8 by task ksoftirqd/1/18
> Fixes: 546ac1ffb70d ("bpf: add devmap, a map for storing net device references")
> Signed-off-by: Eric Dumazet <>
> Reported-by:
> Acked-by: Toke Høiland-Jørgensen <>
> Acked-by: Jesper Dangaard Brouer <>

Applied, thanks!

Powered by blists - more mailing lists