]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4: ensure rcu_read_lock() in cipso_v4_error()
authorMatteo Croce <mcroce@redhat.com>
Fri, 21 Feb 2020 11:28:38 +0000 (12:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Feb 2020 05:45:55 +0000 (21:45 -0800)
commit3e72dfdf8227b052393f71d820ec7599909dddc2
tree0ab72704ff95daef958c0eaf82b663dcae45ceb0
parent42d84c8490f9f0931786f1623191fcab397c3d64
ipv4: ensure rcu_read_lock() in cipso_v4_error()

Similarly to commit c543cb4a5f07 ("ipv4: ensure rcu_read_lock() in
ipv4_link_failure()"), __ip_options_compile() must be called under rcu
protection.

Fixes: 3da1ed7ac398 ("net: avoid use IPCB in cipso_v4_error")
Suggested-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Matteo Croce <mcroce@redhat.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/cipso_ipv4.c