bpf: enforce VFS constraints for xattr related BPF kfuncs#12018
bpf: enforce VFS constraints for xattr related BPF kfuncs#12018kernel-patches-daemon-bpf[bot] wants to merge 2 commits into
Conversation
|
Upstream branch: 2ca6723 |
AI reviewed your patch. Please fix the bug or email reply why it's not a bug. In-Reply-To-Subject: |
|
Forwarding comment 4369841351 via email |
149211d to
0290554
Compare
Enforce VFS constraints and semantics regarding name and value lengths within the xattr related BPF kfuncs. Specifically, reject names that are empty or longer than XATTR_NAME_MAX, and values larger than XATTR_SIZE_MAX. Also validate the supplied flags to ensure that only XATTR_CREATE and XATTR_REPLACE can be used alongside the default flag value 0. Fixes: 5646729 ("bpf: fs/xattr: Add BPF kfuncs to set and remove xattrs") Closes: https://lore.kernel.org/bpf/20260429221005.6D1C6C19425@smtp.kernel.org/ Signed-off-by: Matt Bobrowski <mattbobrowski@google.com>
Add a set of negative tests to verify the newly enforced constraints applied to xattr related BPF kfuncs. Signed-off-by: Matt Bobrowski <mattbobrowski@google.com>
|
Upstream branch: 7e03354 |
2699a10 to
571683f
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1089163 expired. Closing PR. |
Pull request for series with
subject: bpf: enforce VFS constraints for xattr related BPF kfuncs
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1089163