commit | 0c7930e5763bdd189bd50035c025a9cbe5e82f23 | [log] [tgz] |
---|---|---|
author | Liping Zhang <zlpnobody@gmail.com> | Sun Apr 02 17:27:53 2017 +0800 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Sat Apr 08 23:52:16 2017 +0200 |
tree | e050756cd08b43500bc7e2b8a6f803a9f0b376bb | |
parent | 3173d5b8c89e67fa3176292ff9af06f09f365348 [diff] |
netfilter: make it safer during the inet6_dev->addr_list traversal inet6_dev->addr_list is protected by inet6_dev->lock, so only using rcu_read_lock is not enough, we should acquire read_lock_bh(&idev->lock) before the inet6_dev->addr_list traversal. Signed-off-by: Liping Zhang <zlpnobody@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>