Paolo Abeni 098116e7e6 net: really orphan skbs tied to closing sk
If the owing socket is shutting down - e.g. the sock reference
count already dropped to 0 and only sk_wmem_alloc is keeping
the sock alive, skb_orphan_partial() becomes a no-op.

When forwarding packets over veth with GRO enabled, the above
causes refcount errors.

This change addresses the issue with a plain skb_orphan() call
in the critical scenario.

Fixes: 9adc89af724f ("net: let skb_orphan_partial wake-up waiters.")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-05-12 13:48:58 -07:00
..
2021-03-26 20:41:52 -07:00
2020-04-20 12:43:24 -07:00
2020-03-29 22:30:57 -07:00
2021-04-16 11:41:07 -07:00
2021-04-20 16:08:02 -07:00
2021-04-29 11:57:23 -07:00
2020-06-18 20:46:23 -07:00