[PATCH bpf-next 0/2] bpf: Allow access to const void pointer arguments in tracing programs

2025-04-12 Thread KaFai Wan
hi, Tracing programs can access arguments via BTF [1]. Currently we allow tracing programs to access pointers to string (char pointer), void pointers, pointers to structs, and int pointers [2]. If we try to access argument which is pointer to const void like 2nd argument in kfree, it's an UNKN

[PATCH bpf-next 1/2] bpf: Allow access to const void pointer arguments in tracing programs

2025-04-12 Thread KaFai Wan
Adding support to access arguments with const void pointer arguments in tracing programs. Currently we allow tracing programs to access void pointers. If we try to access argument which is pointer to const void like 2nd argument in kfree, verifier will fail to load the program with; 0: R1=ctx() R

[PATCH bpf-next 2/2] selftests/bpf: Add test to access const void pointer argument in tracing program

2025-04-12 Thread KaFai Wan
Adding verifier test for accessing const void pointer argument in tracing programs. The test program loads 2nd argument of kfree tp_btf which is const void pointer and checks that verifier allows that. Signed-off-by: KaFai Wan --- .../selftests/bpf/progs/verifier_btf_ctx_access.c| 9 +++

[PATCH] verify_pull_requests: initial pull request sanitizer

2025-04-12 Thread Sasha Levin
I'm working on evolving the work I'm doing on the linus-next integration branch, and this seemed like another useful tool. Verify that either the sender of the pull request is listed as a maintainer for the subsystem the patches are destined for. This provides us two things: 1. Audit the correctn

Re: [PATCH] arm64: dts: qcom: msm8953: Add uart_5

2025-04-12 Thread Luca Weiss
On 4/10/25 6:45 PM, Konrad Dybcio wrote: On 4/6/25 3:52 PM, Luca Weiss wrote: From: Felix Kaechele Add the node and pinctrl for uart_5 found on the MSM8953 SoC. Signed-off-by: Felix Kaechele [luca: Prepare patch for upstream submission] Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qc

Re: [PATCH RESEND] kunit: qemu_configs: SH: Respect kunit cmdline

2025-04-12 Thread David Gow
On Mon, 7 Apr 2025 at 16:58, Thomas Weißschuh wrote: > > The default SH kunit configuration sets CONFIG_CMDLINE_OVERWRITE which > completely disregards the cmdline passed from the bootloader/QEMU in favor > of the builtin CONFIG_CMDLINE. > However the kunit tool needs to pass arguments to the in-k

Re: [PATCH v3] media: add virtio-media driver

2025-04-12 Thread Markus Elfring
… > +++ b/drivers/media/virtio/virtio_media_driver.c > @@ -0,0 +1,959 @@ … > +static struct virtio_media_session * > +virtio_media_session_alloc(struct virtio_media *vv, u32 id, > +bool nonblocking_dequeue) > +{ … > + init_waitqueue_head(&session->dqbuf_wait); > + > +

Re: [PATCH v3 2/2] selftests: memcg: Increase error tolerance of child memory.current check in test_memcg_protection()

2025-04-12 Thread Waiman Long
On 4/8/25 6:22 PM, Roman Gushchin wrote: On Sat, Apr 05, 2025 at 10:40:10PM -0400, Waiman Long wrote: The test_memcg_protection() function is used for the test_memcg_min and test_memcg_low sub-tests. This function generates a set of parent/child cgroups like: parent: memory.min/low = 50M