public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/1] Refactor dynptr mutability tracking
@ 2026-04-02  6:50 Amery Hung
  2026-04-02  6:50 ` [PATCH bpf-next v2 1/1] bpf: " Amery Hung
  0 siblings, 1 reply; 2+ messages in thread
From: Amery Hung @ 2026-04-02  6:50 UTC (permalink / raw)
  To: bpf
  Cc: netdev, alexei.starovoitov, andrii, daniel, memxor, eddyz87,
	yatsenko, martin.lau, ameryhung, kernel-team

A heads up that this independent patch is separated from the object
relation tracking refactor patchset [0] to breakup the larger patchset
and make the review easier.

[0] https://lore.kernel.org/bpf/20260307064439.3247440-1-ameryhung@gmail.com/

v1 -> v2
 - Change the definition of the mutatbility of bpf_dynptr
   to only bpf_dynptr->data instead of the whole structure. Basically,
   only care about preventing passing CONST_PTR_TO_DYNPTR to arguments
   tagged with OBJ_RELEASE or MEM_UNINT
 - Drop MEM_RDONLY annotation as now we dont care
 - Drop passing CONST_PTR_TO_DYNPTR to MEM_RDONLY kfunc selftest
   

Amery Hung (1):
  bpf: Refactor dynptr mutability tracking

 fs/verity/measure.c                           |  2 +-
 include/linux/bpf.h                           |  8 +--
 kernel/bpf/btf.c                              |  2 +-
 kernel/bpf/helpers.c                          | 18 ++---
 kernel/bpf/verifier.c                         | 68 +++++--------------
 kernel/trace/bpf_trace.c                      | 18 ++---
 tools/testing/selftests/bpf/bpf_kfuncs.h      |  8 +--
 .../selftests/bpf/progs/dynptr_success.c      |  6 +-
 .../bpf/progs/test_kfunc_dynptr_param.c       |  9 +--
 9 files changed, 51 insertions(+), 88 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-02  6:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-02  6:50 [PATCH bpf-next v2 0/1] Refactor dynptr mutability tracking Amery Hung
2026-04-02  6:50 ` [PATCH bpf-next v2 1/1] bpf: " Amery Hung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox