Merge branch 'Fix for crash due to overwrite in copy_map_value'
authorAlexei Starovoitov <ast@kernel.org>
Fri, 11 Feb 2022 21:13:04 +0000 (13:13 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 11 Feb 2022 21:13:04 +0000 (13:13 -0800)
commitacc3c47394a1790b4023ca316ac46e798338dd1a
tree54d657bc7593fa1eae529ceec59827dd754b5d32
parent4a11678f683814df82fca9018d964771e02d7e6d
parenta7e75016a0753c24d6c995bc02501ae35368e333
Merge branch 'Fix for crash due to overwrite in copy_map_value'

Kumar Kartikeya says:

====================

A fix for an oversight in copy_map_value that leads to kernel crash.

Also, a question for BPF developers:
It seems in arraymap.c, we always do check_and_free_timer_in_array after we do
copy_map_value in map_update_elem callback, but the same is not done for
hashtab.c. Is there a specific reason for this difference in behavior, or did I
miss that it happens for hashtab.c as well?

Changlog:
---------
v1 -> v2:
v1: https://lore.kernel.org/bpf/20220209051113.870717-1-memxor@gmail.com

 * Fix build error for selftests patch due to missing SYS_PREFIX in bpf tree
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>