aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorXin Long <[email protected]>2018-11-26 06:52:44 +0000
committerDavid S. Miller <[email protected]>2018-11-27 23:42:31 +0000
commit0d32f17717e65e76cbdb248374dd162acdfe2fff (patch)
tree6fe60c6c6116598809bcc587d3f94919899f0443 /net/tipc
parentfirestream: fix spelling mistake: "Inititing" -> "Initializing" (diff)
downloadkernel-0d32f17717e65e76cbdb248374dd162acdfe2fff.tar.gz
kernel-0d32f17717e65e76cbdb248374dd162acdfe2fff.zip
sctp: increase sk_wmem_alloc when head->truesize is increased
I changed to count sk_wmem_alloc by skb truesize instead of 1 to fix the sk_wmem_alloc leak caused by later truesize's change in xfrm in Commit 02968ccf0125 ("sctp: count sk_wmem_alloc by skb truesize in sctp_packet_transmit"). But I should have also increased sk_wmem_alloc when head->truesize is increased in sctp_packet_gso_append() as xfrm does. Otherwise, sctp gso packet will cause sk_wmem_alloc underflow. Fixes: 02968ccf0125 ("sctp: count sk_wmem_alloc by skb truesize in sctp_packet_transmit") Signed-off-by: Xin Long <[email protected]> Acked-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions