aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorZiwei Xiao <[email protected]>2024-06-12 00:16:54 +0000
committerJakub Kicinski <[email protected]>2024-06-13 14:37:35 +0000
commit6f4d93b78ade0a4c2cafd587f7b429ce95abb02e (patch)
treeeaf1eeac3b91df556b34ae9d7b61dd8a538be187 /net/unix/af_unix.c
parentionic: fix use after netif_napi_del() (diff)
downloadkernel-6f4d93b78ade0a4c2cafd587f7b429ce95abb02e.tar.gz
kernel-6f4d93b78ade0a4c2cafd587f7b429ce95abb02e.zip
gve: Clear napi->skb before dev_kfree_skb_any()
gve_rx_free_skb incorrectly leaves napi->skb referencing an skb after it is freed with dev_kfree_skb_any(). This can result in a subsequent call to napi_get_frags returning a dangling pointer. Fix this by clearing napi->skb before the skb is freed. Fixes: 9b8dd5e5ea48 ("gve: DQO: Add RX path") Cc: [email protected] Reported-by: Shailend Chand <[email protected]> Signed-off-by: Ziwei Xiao <[email protected]> Reviewed-by: Harshitha Ramamurthy <[email protected]> Reviewed-by: Shailend Chand <[email protected]> Reviewed-by: Praveen Kaligineedi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions