From: Paul Moore <paul@paul-moore.com> Date: 2020-02-21 21:18:15
On Fri, Feb 21, 2020 at 6:28 AM Matteo Croce [off-list ref] wrote:
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 <redacted>
Signed-off-by: Matteo Croce <redacted>
---
net/ipv4/cipso_ipv4.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
This seems consistent with the ipv4_link_failure() fix, even though
ipv4_link_failure() has changed a bit since the fix.
Acked-by: Paul Moore <paul@paul-moore.com>
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 <redacted>
Signed-off-by: Matteo Croce <redacted>