Re: [PATCH net] af_key: do not use GFP_KERNEL in atomic contexts

2017-08-14 Thread David Miller
From: Eric Dumazet Date: Mon, 14 Aug 2017 10:16:45 -0700 > From: Eric Dumazet > > pfkey_broadcast() might be called from non process contexts, > we can not use GFP_KERNEL in these cases [1]. > > This patch partially reverts commit ba51b6be38c1 ("net: Fix RCU splat in > af_key"), only keeping t

Re: [PATCH net] af_key: do not use GFP_KERNEL in atomic contexts

2017-08-14 Thread David Ahern
On 8/14/17 11:16 AM, Eric Dumazet wrote: > From: Eric Dumazet > > pfkey_broadcast() might be called from non process contexts, > we can not use GFP_KERNEL in these cases [1]. > > This patch partially reverts commit ba51b6be38c1 ("net: Fix RCU splat in > af_key"), only keeping the GFP_ATOMIC forc

[PATCH net] af_key: do not use GFP_KERNEL in atomic contexts

2017-08-14 Thread Eric Dumazet
From: Eric Dumazet pfkey_broadcast() might be called from non process contexts, we can not use GFP_KERNEL in these cases [1]. This patch partially reverts commit ba51b6be38c1 ("net: Fix RCU splat in af_key"), only keeping the GFP_ATOMIC forcing under rcu_read_lock() section. [1] : syzkaller rep