]> git.baikalelectronics.ru Git - kernel.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)
commit56521ec517b34c6a8b8683cbd2f5cec319bd32be
tree0ab72704ff95daef958c0eaf82b663dcae45ceb0
parent9c9ae488c3e85d75960c11a231c5e9238e82a042
ipv4: ensure rcu_read_lock() in cipso_v4_error()

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

Fixes: accc485b1dfd ("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