Skip to content
Commit acc3c473 authored by Alexei Starovoitov's avatar Alexei Starovoitov
Browse files

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: default avatarAlexei Starovoitov <ast@kernel.org>
parents 4a11678f a7e75016
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment