[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netfilter-devel
Subject:    Re: [PATCH nf] netfilter: egress: silence egress hook lockdep splats
From:       Pablo Neira Ayuso <pablo () netfilter ! org>
Date:       2022-02-28 21:34:24
Message-ID: Yh0/4G8oqlvF/JjK () salvia
[Download RAW message or body]

On Mon, Feb 28, 2022 at 04:18:05AM +0100, Florian Westphal wrote:
> Netfilter assumes its called with rcu_read_lock held, but in egress
> hook case it may be called with BH readlock.
> 
> This triggers lockdep splat.
> 
> In order to avoid to change all rcu_dereference() to
> rcu_dereference_check(..., rcu_read_lock_bh_held()), wrap nf_hook_slow
> with read lock/unlock pair.

Applied, thanks
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic