From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4FCA3563DD for ; Thu, 9 Jul 2026 18:33:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783622000; cv=none; b=TmPRZBj2+blCwNvxqDWAVLw912KQy1QSRKtVDBg/02Tz7Cbq1mltZ1D15pLn/U0vwtslGid9iTT2r5t9J83tU/LjihoIwSprslCdyKokxEOn2G5eprSjWlcK0AMvy7fQc9lRpKeOOrG0DwDGZKwh3gO5fbeprQX/YGYPKm9hKDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783622000; c=relaxed/simple; bh=payVMhQSUMwNCwdqze4KtENdKbHD6++fpuhUzGiHWHs=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=TJxouWuavwSZ2YPxX6jo1K3BrrLpJeDgbsfuNNLvs7OEyiLMFAnz2q/xKrlrJzgubjgt6Xq37HZEF6/gZPtPcP3LsARXH92JFcpzx52ULvhfGEt5b4Id+sdRE+gZ04f6FQV4EOtWkUnPj4Hi+6iTNkvcI/PBVnnGuuFyovu04Uk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=p0FYNUaJ; arc=none smtp.client-ip=209.85.210.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="p0FYNUaJ" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-848544a8496so52567b3a.0 for ; Thu, 09 Jul 2026 11:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1783621998; x=1784226798; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=GRoTGFzFJI/kqr2GgTFhVnQ4q60YusMm9G2xnzNMhCI=; b=p0FYNUaJ75Kl9mC02MhfoTOttP3TgZVs+MHnguNya6TsK87ksgFNuZUVqzaG+KSEoL b5ocGrr63VC0Iu4A8A8vIBuOVi8BQUkEPa3iXA0Mt44Ei1iGE+mPGlcGESDp9DNrVC2V 8AAT+ZKMSImUHHwSzal3qb0Z8d00u9FXjVmdVXdQ9AIKjALzofgtd5wvFhdnOUMMiwbk 9DXlm6vdiPJHygqbyRqD0X/s8y6nM2e53ztlAsWdmIQxlrRJHgdTIHnBqJ108v9mD5tA QnXHmdoq9e/L0NVvy5LgoUJaaNiLqBZA2Tn4OWsiJ2XYtvCPwoML86U1k4wtjY9zYOo0 IoDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783621998; x=1784226798; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=GRoTGFzFJI/kqr2GgTFhVnQ4q60YusMm9G2xnzNMhCI=; b=NUPZONNQjV4w3vxES3XrJcemeV5SK4DRkQmwf9aMeheLlMj14TBdzRcW5fxqlN4KkC l6g50BLTAaxsz5DdGX65eqQfnlg6QZNHM3WPKsCvKYDPPAn8MgzikzXe8A9X/LguxYN6 Aw6hhsgiMwRU3Gd0XbNUOaROP5NX6S90CdX0bzP+n9u5MHouCOjq0f0lQuYFDFrcUgBM eLFIT+rJNGNCG7cGbiwkZn52W72EzER8vIC1EinhwWm314xzFaFRNZUVzjmmpFbmWKJR P97y3wGJ5hEfX29/DfPBZTvLfAlND9B0uNeDPr3E0mwqLNOSxKEZLyasRCr5CxDpyUdb n1tQ== X-Forwarded-Encrypted: i=1; AHgh+Rq3Mcto90zTKx4HsFigZdig7DKyPPIU62Y3SvfivOPfAOnS7X6mZBPOIGd0Ni8nFjY3P9QwLC0=@vger.kernel.org X-Gm-Message-State: AOJu0YwP761tPSDZtfEsiDwybh+8sPzBKqzZg7usrTJseTo2tQJPF56h sZn6zgD0i0OyQ235rhL+G+jIJ5CsnPtg6EC3qsv67kicvGqDvhVYr9eXn8e1ihiBkqEc8O/XOKm giqBPEQ== X-Received: from pfoa23.prod.google.com ([2002:aa7:8657:0:b0:847:99d5:ef10]) (user=kuniyu job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:91c7:b0:848:6447:e0a6 with SMTP id d2e1a72fcca58-8486447e2fcmr2177652b3a.9.1783621997988; Thu, 09 Jul 2026 11:33:17 -0700 (PDT) Date: Thu, 9 Jul 2026 18:31:38 +0000 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.55.0.795.g602f6c329a-goog Message-ID: <20260709183315.965751-1-kuniyu@google.com> Subject: [PATCH v1 net 0/2] net: Fix two issues in sk_clone() error path. From: Kuniyuki Iwashima To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn Cc: Simon Horman , Octavian Purdila , Daniel Borkmann , Alexei Starovoitov , Martin KaFai Lau , Kuniyuki Iwashima , Kuniyuki Iwashima , netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sashiko reported issues in the sk_clone() error path. https://lore.kernel.org/bpf/20260709032007.9E4D61F000E9@smtp.kernel.org/ 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(-) -- 2.55.0.795.g602f6c329a-goog