Re: [PATCH] esp: Skip TX bytes accounting when sending from a request socket

2019-01-30 Thread Steffen Klassert
On Mon, Jan 28, 2019 at 09:35:35AM +0100, Martin Willi wrote: > On ESP output, sk_wmem_alloc is incremented for the added padding if a > socket is associated to the skb. When replying with TCP SYNACKs over > IPsec, the associated sk is a casted request socket, only. Increasing > sk_wmem_alloc on a

[PATCH] esp: Skip TX bytes accounting when sending from a request socket

2019-01-28 Thread Martin Willi
On ESP output, sk_wmem_alloc is incremented for the added padding if a socket is associated to the skb. When replying with TCP SYNACKs over IPsec, the associated sk is a casted request socket, only. Increasing sk_wmem_alloc on a request socket results in a write at an arbitrary struct offset. In th