]> www.infradead.org Git - users/hch/misc.git/commit
Merge branch 'add-missing-size-check-for-btf-based-ctx-access'
authorAlexei Starovoitov <ast@kernel.org>
Thu, 12 Dec 2024 19:40:18 +0000 (11:40 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 12 Dec 2024 19:40:18 +0000 (11:40 -0800)
commite4c80f69758e5088e8aae48f3d6abb41c6da7812
treea591b746733c6fa2a23328c9d5aae365dc4a49a4
parent04789af756a4a43e72986185f66f148e65b32fed
parent8025731c28beb4700dc801a1ca4504d1f78bac27
Merge branch 'add-missing-size-check-for-btf-based-ctx-access'

Kumar Kartikeya Dwivedi says:

====================
Add missing size check for BTF-based ctx access

This set fixes a issue reported for tracing and struct ops programs
using btf_ctx_access for ctx checks, where loading a pointer argument
from the ctx doesn't enforce a BPF_DW access size check. The original
report is at link [0]. Also add a regression test along with the fix.

  [0]: https://lore.kernel.org/bpf/51338.1732985814@localhost
====================

Link: https://patch.msgid.link/20241212092050.3204165-1-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>