Re: [PATCH net v2] tcp: Do not call tcp_fastopen_reset_cipher from interrupt context

2015-06-23 Thread David Miller
From: Christoph Paasch Date: Thu, 18 Jun 2015 09:15:34 -0700 > tcp_fastopen_reset_cipher really cannot be called from interrupt > context. It allocates the tcp_fastopen_context with GFP_KERNEL and > calls crypto_alloc_cipher, which allocates all kind of stuff with > GFP_KERNEL. > > Thus, we migh

Re: [PATCH net v2] tcp: Do not call tcp_fastopen_reset_cipher from interrupt context

2015-06-19 Thread Eric Dumazet
On Thu, 2015-06-18 at 09:15 -0700, Christoph Paasch wrote: > tcp_fastopen_reset_cipher really cannot be called from interrupt > context. It allocates the tcp_fastopen_context with GFP_KERNEL and > calls crypto_alloc_cipher, which allocates all kind of stuff with > GFP_KERNEL. > > Thus, we might sl

[PATCH net v2] tcp: Do not call tcp_fastopen_reset_cipher from interrupt context

2015-06-18 Thread Christoph Paasch
tcp_fastopen_reset_cipher really cannot be called from interrupt context. It allocates the tcp_fastopen_context with GFP_KERNEL and calls crypto_alloc_cipher, which allocates all kind of stuff with GFP_KERNEL. Thus, we might sleep when the key-generation is triggered by an incoming TFO cookie-requ