aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2024-04-20 07:01:16 +0000
committerDavid S. Miller <[email protected]>2024-04-22 10:00:31 +0100
commitc58e88d49097bd12dfcfef4f075b43f5d5830941 (patch)
treef0f7098b71cb530c21282731c88b63cb399b6676 /lib/crypto/mpi/mpi-inline.h
parent0b8fe5bd73249dc20be2e88a12041f8920797b59 (diff)
icmp: prevent possible NULL dereferences from icmp_build_probe()
First problem is a double call to __in_dev_get_rcu(), because the second one could return NULL. if (__in_dev_get_rcu(dev) && __in_dev_get_rcu(dev)->ifa_list) Second problem is a read from dev->ip6_ptr with no NULL check: if (!list_empty(&rcu_dereference(dev->ip6_ptr)->addr_list)) Use the correct RCU API to fix these. v2: add missing include <net/addrconf.h> Fixes: d329ea5bd884 ("icmp: add response to RFC 8335 PROBE messages") Signed-off-by: Eric Dumazet <[email protected]> Cc: Andreas Roeseler <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions