mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
Merge branch 'bpf-bound-rdonly-rdwr_buf_size-kfunc-return-size'
Nicholas Dudar says: ==================== bpf: bound rdonly/rdwr_buf_size kfunc return size check_kfunc_args() stores a kfunc's rdonly_buf_size/rdwr_buf_size argument into a u64 that check_kfunc_call() later narrows into the returned register's u32 mem_size, so a value above U32_MAX truncates instead of being rejected. Fix it and add a selftest for coverage. Changelog: ---------- v1 -> v2 (v1 was a private report to security@kernel.org) * Split the fix and selftest into separate patches. * Target bpf-next instead of bpf. ==================== Link: https://patch.msgid.link/20260709155837.1879230-1-main.kalliope@gmail.com Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
This commit is contained in:
commit
a4553044d1
3 changed files with 39 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue