diff options
author | Alexei Starovoitov <ast@fb.com> | 2017-03-07 20:00:12 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-09 13:27:17 -0800 |
commit | 9f691549f76d488a0c74397b3e51e943865ea01f (patch) | |
tree | c73054636fa049cf4eee1b15a0eac5191b926e6f /lib/digsig.c | |
parent | 745cb7f8a5de0805cade3de3991b7a95317c7c73 (diff) | |
download | linux-9f691549f76d488a0c74397b3e51e943865ea01f.tar.gz linux-9f691549f76d488a0c74397b3e51e943865ea01f.tar.bz2 linux-9f691549f76d488a0c74397b3e51e943865ea01f.zip |
bpf: fix struct htab_elem layout
when htab_elem is removed from the bucket list the htab_elem.hash_node.next
field should not be overridden too early otherwise we have a tiny race window
between lookup and delete.
The bug was discovered by manual code analysis and reproducible
only with explicit udelay() in lookup_elem_raw().
Fixes: 6c9059817432 ("bpf: pre-allocate hash map elements")
Reported-by: Jonathan Perry <jonperry@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/digsig.c')
0 files changed, 0 insertions, 0 deletions