diff options
author | Alexei Starovoitov <[email protected]> | 2017-03-07 20:00:12 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-03-09 13:27:17 -0800 |
commit | 9f691549f76d488a0c74397b3e51e943865ea01f (patch) | |
tree | c73054636fa049cf4eee1b15a0eac5191b926e6f /net/unix/af_unix.c | |
parent | 745cb7f8a5de0805cade3de3991b7a95317c7c73 (diff) |
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions