oracle / linux-uek

Oracle Linux UEK: Unbreakable Enterprise Kernel
https://blogs.oracle.com/linuxkernel
311 stars 69 forks source link

Fix unsafe BPF_PROG_TEST_RUN interface #10

Closed fzakaria closed 4 years ago

fzakaria commented 5 years ago

This is a backport of similarly named change that was pulled in as part of addb0679839a1f74da6ec742137558be244dd0e9

bpf_prof_test_run may copy data beyond the the buffer provided into userspace without checking the size. This can lead to kernel overwriting data in userspace.

Original patch backported from https://patchwork.ozlabs.org/cover/998940/

Signed-off-by: Farid Zakaria farid.m.zakaria@oracle.com