diff options
author | Xu Kuohai <xukuohai@huawei.com> | 2022-11-11 15:56:20 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-11-11 23:35:07 +0300 |
commit | 1f6e04a1c7b85da3b765ca9f46029e5d1826d839 (patch) | |
tree | d235618bfd0d5f48ae0336a3a2920db26c4e00a6 /mm | |
parent | 4b45cd81f737d79d0fbfc0d320a1e518e7f0bbf0 (diff) | |
download | linux-1f6e04a1c7b85da3b765ca9f46029e5d1826d839.tar.xz |
bpf: Fix offset calculation error in __copy_map_value and zero_map_value
Function __copy_map_value and zero_map_value miscalculated copy offset,
resulting in possible copy of unwanted data to user or kernel.
Fix it.
Fixes: cc48755808c6 ("bpf: Add zero_map_value to zero map value with special fields")
Fixes: 4d7d7f69f4b1 ("bpf: Adapt copy_map_value for multiple offset case")
Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/bpf/20221111125620.754855-1-xukuohai@huaweicloud.com
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions