]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Mar 2020 07:11:59 +0000 (08:11 +0100)
commita06841f32fdbf8c4362d2dcd2741fa2053154e6e
tree9e1732f16890910d030989dc05a5332dbce323fa
parentff8ee7b3e4d3a55b5ee1c611a981b58bb4ee4dd0
ipv4: ensure rcu_read_lock() in cipso_v4_error()

commit 2ba57e414a722f62d2c86f73f8e79d47f54af488 upstream.

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

Fixes: 51a0bb5d9767 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/cipso_ipv4.c