ktls / af_ktls

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

Allocating too many pages #65

Closed lancerchao closed 8 years ago

lancerchao commented 8 years ago

https://github.com/ktls/af_ktls/blob/7fbe182f62265af74c7d5c043eb19dba014aeeaf/af_ktls.c#L1731

alloc_pages allocates 1 << order number of pages. That line would therefore allocate 16 pages.

Ref: http://www.makelinux.net/books/lkd2/ch11lev1sec3

fridex commented 8 years ago

Fixed in https://github.com/ktls/af_ktls/pull/70