Commit b97fc7eb authored by Haibin Lu's avatar Haibin Lu Committed by Jie Liu
Browse files

UBL: verify skb space when sw_ctype adding

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8GIXF


CVE: NA

-----------------------------------------------------------

When sw_ctype is added, the skb_push function is used,
which may cause exceptions because there is insufficient
space between skb->head and skb->data. Before calling
skb_push, this patch uses skb_cow_head for protection
to ensure sufficient space.

Signed-off-by: default avatarHaibin Lu <luhaibin10@hisilicon.com>
parent 5cd562bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment