diff options
| author | Jiri Olsa <[email protected]> | 2024-06-04 15:00:24 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2024-06-05 07:41:33 +0000 |
| commit | d0d1df8ba18abc57f28fb3bc053b2bf319367f2c (patch) | |
| tree | 8292b3906975a234bf0fcb5c6aa5e5629d656703 /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | bpf: Fix a potential use-after-free in bpf_link_free() (diff) | |
| download | kernel-d0d1df8ba18abc57f28fb3bc053b2bf319367f2c.tar.gz kernel-d0d1df8ba18abc57f28fb3bc053b2bf319367f2c.zip | |
bpf: Set run context for rawtp test_run callback
syzbot reported crash when rawtp program executed through the
test_run interface calls bpf_get_attach_cookie helper or any
other helper that touches task->bpf_ctx pointer.
Setting the run context (task->bpf_ctx pointer) for test_run
callback.
Fixes: 7adfc6c9b315 ("bpf: Add bpf_get_attach_cookie() BPF helper to access bpf_cookie value")
Reported-by: [email protected]
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Closes: https://syzkaller.appspot.com/bug?extid=3ab78ff125b7979e45f9
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
