Shung-Hsi Yu 44e9a741ca bpf: Determine buf_info inside check_buffer_access()
Instead of determining buf_info string in the caller of check_buffer_access(),
we can determine whether the register type is read-only through
type_is_rdonly_mem() helper inside check_buffer_access() and construct
buf_info, making the code slightly cleaner.

Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/YiWYLnAkEZXBP/gH@syu-laptop
2022-03-08 15:36:45 +01:00
..
2022-03-07 22:19:32 -08:00
2022-02-23 15:17:51 -08:00
2022-02-23 15:17:51 -08:00
2020-03-13 12:49:52 -07:00
2022-02-23 15:17:51 -08:00
2022-02-23 15:17:51 -08:00
2021-07-15 22:31:10 +02:00
2020-08-28 15:41:30 +02:00
2021-12-18 13:27:41 -08:00
2022-02-23 15:17:51 -08:00
2022-02-28 18:10:28 +01:00
2022-02-23 15:17:51 -08:00
2021-11-12 10:19:09 -08:00
2022-02-23 15:17:51 -08:00