Re: [net-next 2/3] net/tls: free ctx in sock destruct

2019-01-22 Thread David Miller
From: Atul Gupta Date: Thu, 17 Jan 2019 20:56:21 -0800 > free tls context in sock destruct. close may not be the last > call to free sock but force releasing the ctx in close > will result in GPF when ctx referred again in tcp_done > > [ 515.330477] general protection fault: [#1] SMP PTI >

[net-next 2/3] net/tls: free ctx in sock destruct

2019-01-17 Thread Atul Gupta
free tls context in sock destruct. close may not be the last call to free sock but force releasing the ctx in close will result in GPF when ctx referred again in tcp_done [ 515.330477] general protection fault: [#1] SMP PTI [ 515.330539] CPU: 5 PID: 0 Comm: swapper/5 Not tainted 4.20.0-rc7+