From: Alexei Starovoitov Date: Fri, 11 Feb 2022 21:13:04 +0000 (-0800) Subject: Merge branch 'Fix for crash due to overwrite in copy_map_value' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=acc3c47394a1790b4023ca316ac46e798338dd1a;p=linux.git 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 --- acc3c47394a1790b4023ca316ac46e798338dd1a