summaryrefslogtreecommitdiff
path: root/scripts/xz_wrap.sh
diff options
context:
space:
mode:
authorLv Yunlong <lyl2019@mail.ustc.edu.cn>2021-03-29 05:36:48 -0700
committerDavid S. Miller <davem@davemloft.net>2021-03-29 13:41:17 -0700
commit63415767a2446136372e777cde5bb351f21ec21d (patch)
treed2a57572fb66cf6e79aa83e02af97896bbea2182 /scripts/xz_wrap.sh
parent5954846d09e4a210b6c761ab09388cfd41f58342 (diff)
ethernet: myri10ge: Fix a use after free in myri10ge_sw_tso
In myri10ge_sw_tso, the skb_list_walk_safe macro will set (curr) = (segs) and (next) = (curr)->next. If status!=0 is true, the memory pointed by curr and segs will be free by dev_kfree_skb_any(curr). But later, the segs is used by segs = segs->next and causes a uaf. As (next) = (curr)->next, my patch replaces seg->next to next. Fixes: 536577f36ff7a ("net: myri10ge: use skb_list_walk_safe helper for gso segments") Signed-off-by: Lv Yunlong <lyl2019@mail.ustc.edu.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/xz_wrap.sh')
0 files changed, 0 insertions, 0 deletions