summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBo Cao <treebacker@foxmail.com>2026-11-12 15:09:53 +0800
committerAlexei Starovoitov <ast@kernel.org>2026-11-12 19:54:39 +0000
commitf6562cd116a013a5a9b549e51d79ba658f9f8981 (patch)
treed3ebcdfd7ac757d02d83ddbed7edace34e0f374b /include/linux
parent475a0cfd02f14d764023e926ac01fc7597134229 (diff)
bpf, sockmap: Fix ring capacity invariant break in bpf_msg_push_data()
A push at msg->size on a full ring reads the length of the free slot. It is 0, so nothing is copied and sg.end moves onto sg.start. The ring looks empty and the next push overwrites live elements. The prog needs CAP_BPF and CAP_NET_ADMIN. Fixes: 15ab0548e310 ("bpf, sockmap: Several fixes to bpf_msg_push_data") Signed-off-by: Bo Cao <treebacker@foxmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/tencent_F9A4094B6B79A77230BD540754D65D17BD0A@qq.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions