summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorXuanqiang Luo <luoxuanqiang@kylinos.cn>2026-07-23 14:04:45 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-07-28 13:22:11 +0200
commit88c17de85ddb459c3fe1e3c65d61fa366b1cf0a8 (patch)
tree840e93e105f12980f925670351883ade7fa68250 /include/linux
parentf621d6ebeebb6374342571e4ddf45fdbc420f6cd (diff)
bpf: lwt: Fix dst reference leak on reroute failure
bpf_lwt_xmit_reroute() obtains a referenced dst from the route lookup. When skb_cow_head() fails before that dst is installed on the skb, the error path only frees the skb. The skb still owns its previous dst, so the newly looked up dst reference is leaked. Release the new dst reference before freeing the skb on this error path. Fixes: 3bd0b15281af ("bpf: add handling of BPF_LWT_REROUTE to lwt_bpf.c") Cc: stable@vger.kernel.org Signed-off-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn> Link: https://patch.msgid.link/20260723060445.21926-1-xuanqiang.luo@linux.dev Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions