Skip to content

dst_cache: fix possible races

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5ipv6: ioam: block BH from ioam6_output()net/ipv6/ioam6_iptunnel.c+4 -40 repliesApplied
2/5net: ipv6: rpl_iptunnel: block BH in rpl_output() and rpl_input()net/ipv6/rpl_iptunnel.c+6 -80 repliesApplied
3/5ipv6: sr: block BH in seg6_output_core() and seg6_input_core()net/ipv6/seg6_iptunnel.c+6 -80 repliesApplied
4/5ila: block BH in ila_output()net/ipv6/ila/ila_lwt.c+6 -10 repliesApplied
5/5net: dst_cache: add two DEBUG_NET warningsnet/core/dst_cache.c+2 -00 repliesApplied

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPaolo Abeni
SeriesA-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/5] dst_cache: fix possible races

This series is inspired by various undisclosed syzbot reports hinting at corruptions in dst_cache structures.

It seems at least four users of dst_cache are racy against BH reentrancy.

Last patch is adding a DEBUG_NET check to catch future misuses.

Eric Dumazet (5):
ipv6: ioam: block BH from ioam6_output()
net: ipv6: rpl_iptunnel: block BH in rpl_output() and rpl_input()
ipv6: sr: block BH in seg6_output_core() and seg6_input_core()
ila: block BH in ila_output()
net: dst_cache: add two DEBUG_NET warnings

 net/core/dst_cache.c      |  2 ++
 net/ipv6/ila/ila_lwt.c    |  7 ++++++-
 net/ipv6/ioam6_iptunnel.c |  8 ++++----
 net/ipv6/rpl_iptunnel.c   | 14 ++++++--------
 net/ipv6/seg6_iptunnel.c  | 14 ++++++--------
 5 files changed, 24 insertions(+), 21 deletions(-)
Signature · 1 line
2.45.1.288.g0e0cd299f1-goog