ktls / af_ktls

Linux Kernel TLS/DTLS Module
GNU General Public License v2.0
157 stars 25 forks source link

use kernel_sendpage #79

Closed djwatson closed 8 years ago

djwatson commented 8 years ago

This was pretty close in https://github.com/ktls/af_ktls/pull/67

The main issue was a memory leak if pages aren't allocated with __GFP_COMP - apparently kernel_sendpage expects compound pages. skb_alloc always allocates them this way.

Updated both tls_sendmsg and tls_sendpage to use kernel_sendpage.

fridex commented 8 years ago

LGTM as well