diff options
| author | Alexei Starovoitov <[email protected]> | 2017-03-08 04:00:12 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-03-09 21:27:17 +0000 |
| commit | 9f691549f76d488a0c74397b3e51e943865ea01f (patch) | |
| tree | c73054636fa049cf4eee1b15a0eac5191b926e6f /net/unix/af_unix.c | |
| parent | uapi: fix linux/packet_diag.h userspace compilation error (diff) | |
| download | kernel-9f691549f76d488a0c74397b3e51e943865ea01f.tar.gz kernel-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 <[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
