Skip to content

net: Fix two issues in sk_clone() error path.

Kuniyuki Iwashima 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 Latest2 patches 5 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2soreuseport: Clear sk_reuseport_cb before failure in sk_clone().net/core/sock.c+2 -22 repliesApplied
2/2net: Call net_enable_timestamp() before failure in sk_clone().net/core/sock.c+3 -32 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSimon HormanWillem de BruijnJason Xing
SeriesR-b
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH v1 net 0/2] net: Fix two issues in sk_clone() error path.

Sashiko reported issues in the sk_clone() error path.

https://lore.kernel.org/bpf/[email protected]/

This series fixes them.

Note that Sashiko may point out the same issue for sk_bpf_storage, but the fix was already merged in the bpf tree:

7cbd0c4cebe4 ("bpf: Fix UAF in sock clone early bailouts")

Kuniyuki Iwashima (2):
soreuseport: Clear sk_reuseport_cb before failure in sk_clone().
net: Call net_enable_timestamp() before failure in sk_clone().

 net/core/sock.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.55.0.795.g602f6c329a-goog