This repository was archived by the owner on Jun 4, 2020. It is now read-only.
Commit 66aebd4
net: fix socket refcounting in skb_complete_wifi_ack()
commit dd4f10722aeb10f4f582948839f066bebe44e5fb upstream.
TX skbs do not necessarily hold a reference on skb->sk->sk_refcnt
By the time TX completion happens, sk_refcnt might be already 0.
sock_hold()/sock_put() would then corrupt critical state, like
sk_wmem_alloc.
Fixes: bf7fa55 ("mac80211: Resolve sk_refcnt/sk_wmem_alloc issue in wifi ack path")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Alexander Duyck <alexander.h.duyck@intel.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 1efd08f commit 66aebd4
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3661 | 3661 | | |
3662 | 3662 | | |
3663 | 3663 | | |
3664 | | - | |
| 3664 | + | |
3665 | 3665 | | |
3666 | 3666 | | |
3667 | 3667 | | |
| |||
3671 | 3671 | | |
3672 | 3672 | | |
3673 | 3673 | | |
3674 | | - | |
3675 | | - | |
3676 | | - | |
3677 | | - | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
3678 | 3681 | | |
3679 | 3682 | | |
3680 | | - | |
3681 | | - | |
3682 | 3683 | | |
3683 | 3684 | | |
3684 | 3685 | | |
| |||
0 commit comments