Files
kernel_xiaomi_cepheus/kernel
Martin KaFai Lau 64d77408df bpf: Change bpf_obj_name_cpy() to better ensure map's name is init by 0
During get_info_by_fd, the prog/map name is memcpy-ed.  It depends
on the prog->aux->name and map->name to be zero initialized.

bpf_prog_aux is easy to guarantee that aux->name is zero init.

The name in bpf_map may be harder to be guaranteed in the future when
new map type is added.

Hence, this patch makes bpf_obj_name_cpy() to always zero init
the prog/map name.

Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Change-Id: Ib3bb6efbda0bd682e0cdad8617f587320d7dd397
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-03-29 20:44:27 -05:00
..
2023-10-23 15:05:51 -05:00
2023-10-23 15:04:37 -05:00
2023-12-20 15:32:35 +01:00
2023-10-23 14:55:44 -05:00
2020-01-13 19:40:11 +00:00
2022-05-27 08:51:18 +00:00
2020-04-02 16:34:20 +02:00
2019-08-12 13:29:46 -04:00
2022-10-07 11:19:36 +03:00
2021-02-07 14:47:41 +01:00
2022-04-28 07:14:51 +00:00
2022-01-22 14:28:43 +00:00