Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp208779lqk; Sat, 9 Mar 2024 06:50:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXOIializ2iPC3/rRGzY2SNI58WfngLYm/9WOmMnmMMg+13hG+QWyZ/BkUhvccQJm/yGy7klBZwGVLSi9HJjBW1JEDa8FY+3tVdpAjn3Q== X-Google-Smtp-Source: AGHT+IET/iQ0GFyUX/aq8a2DGRjqMVhmnDIIYUKOvV/Kn9Ev8UNLUFD13zzJPyVwCdyVpmq90Ac4 X-Received: by 2002:a05:622a:18f:b0:42e:eb4e:1be7 with SMTP id s15-20020a05622a018f00b0042eeb4e1be7mr2857182qtw.55.1709995810616; Sat, 09 Mar 2024 06:50:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709995810; cv=pass; d=google.com; s=arc-20160816; b=mO6eU8xy1+HdT/C2+zp2SBO33Mz1qz3o86Za3PuvoxiDF404+ryOl7XV4L9ziSmPP0 1JWHEntd6EuJwHMVAB6U8dv6Y3Y+F/uuU3XONXIRQUJ1Ylnn9ALuY0xxU25PlaO+OJgi MCwrctCXV21mrNZJ5dso4h+9FO8UVFmdyVSM61JTk/mwlc4WsQ1ip60KLAG21abE+BBW pH4jhq/PMjO/BjjgHYL6po2qo3if9AlFmM0CqPViWR8FdksHy4DEGOomb6HHFsEuFcEP u941yd81rUWdCFf8ztVv8VgxixNYqw00TjNHX9/iSkwik6Oyd+0hU9fEf2aiFsZ3T/jL V9aQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=m0fRX6Klr4hL7HKDSzkO0KpHF8yKajILIBRNBCp469Y=; fh=jUsKUFuiq14EWgp1NMLKaJT6fDIdr5efvMvGaugrMQE=; b=xEldSv2e7uHo4v7JhkIjc0n56f9cEJawdmhu9fR/AgMKNPKp/ddcw8DOfpYXpLVou7 Frlyyhp0kPuUaBlLELQjOEeBShPQ2/77kT3KUV8ZPNVqheHxToRi/eFxQLczWRRediCH y9uOWEI8RC4dQMBpYgHry1Y0jxSiqgbHatt5caa6Gk5+hSsdoCXzOfVoGY3/a0bbFKGO A2Hn0KIbyKMHEoaQBvPAE11Cs9jBmOGM8bKSRlhGmLrxyXe/momPo/o3PzT+AoUi+vg3 G6edmuH2a+xojq63i/R2CGzTu9qpwXTPfA0pg+yi1DD2TAlPN+5X2oUqW74dM/8ev87i aTww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JYmgjMHQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d15-20020a05622a05cf00b0042ef03e595dsi1727929qtb.631.2024.03.09.06.50.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 06:50:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JYmgjMHQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 284941C20B11 for ; Sat, 9 Mar 2024 14:50:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DF6343ADE; Sat, 9 Mar 2024 14:50:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JYmgjMHQ" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 BDDBA22325; Sat, 9 Mar 2024 14:49:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709995799; cv=none; b=JfZv/XU/9bgyHzuZkUv24xWXbqSb9HMK53N6Hwtk6l+T+DQFG+zkq0mqNj7ZwZ/GsRwFgN53eqUpJGgjGL1caJXHhVZC5toBgZHHCIdekNoNtvGaiX1m1Rft2X530UR18drzgUDh6hZKeEUQHmwrC4KP17HpCy/oKwTqOEBzemY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709995799; c=relaxed/simple; bh=m0fRX6Klr4hL7HKDSzkO0KpHF8yKajILIBRNBCp469Y=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aqSKLlEWcKFg7THXjICbG6rbAF2ppJqdkVphzsc5x65oxAoNTJx1AxLZBzAz5xYrhUrO9f4gnekbUfB2Ea5PmExYSjvp60fKfNP8PYO6sivE3fLNQBtjJS72xzA98Ar5FHRdHLUTgt2g6n3pnHQQR7q1dsyPxbuJH5VFcGErai8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JYmgjMHQ; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5132010e5d1so4256642e87.0; Sat, 09 Mar 2024 06:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709995796; x=1710600596; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=m0fRX6Klr4hL7HKDSzkO0KpHF8yKajILIBRNBCp469Y=; b=JYmgjMHQgKcOp54UrEGeGxAKAOP0RMzNv1tjPq2d0MKUGLBoi/I/Don7kLteWT4okE 1L5JfeuwlJmNFQOznEB+idx6WpQad6BlOQUAVYu1KGEUwal6tssXMd+h7zxesC18N4Vt mEf6tw8CF0r6tShw2K5T8iM+gf38qyWHCCENaKK1GgeFdsyARCWd+1zezWWug5MhHEaV PMgclpgeq5Oe/nMDPGLaxVAaj5w8EPOKP6IZZXule3KldTqiEQ/tyz9C8ZeFdQz3v/7y FVE2jNAygIWSxWpVekGBlpR0+XCzUujZccrkPNXc/1YPcBBG/7P8D/gb6eC8IpTpyPMM xEiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709995796; x=1710600596; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m0fRX6Klr4hL7HKDSzkO0KpHF8yKajILIBRNBCp469Y=; b=aXxV17vY5Kj0ZmAUNeUPZCdch1jl/ZcDFTuPMMc/cF1qEhbdWgz7i58Vma9mkCNeR5 zhw/b15C++Oeqhi5QSwft5uop3k/sEZ/XQ6HqDS+Hi6RirTucIF4f/GLjgPjDRglqwmF bpwEAR07P4uP7BoKE0dE8kKauHtgcROLl/CPLV5fKvtJxjlJDr2Fe1sCbB/8+ufckmZ9 iUMMbLx80RKzAGrvRbuUZk6wvn4nUMFeTcBbsClHDuF1DhcPQgyHoeKJNMwTjy9qL59L QAnFPbIiewmzN9+jL8bX9vG2jf5RzAyMcSnms50DxUq1aSA33Yfk3S5ZMSstLV0mb2jG A8Gg== X-Forwarded-Encrypted: i=1; AJvYcCV1HEe2klZYZjZrU2vlDQ/SCfoK5pGuGkgYTWQIiyFjDwWJhJh3mLA7dEXMCSzuA3fo94vKqWyW9GiXGjTER134gIzoSbQ0FhjwpXKb4vRemko1VQEhJTjWRbZT8s7nutLJGviD X-Gm-Message-State: AOJu0Yxhu1iVJjLvubDhdaar0LZJ6pldDr6IoHOfElhoKDv7Xb1LF/3S 5Je5SOtkMFS7CoihxqVOlwi3unnbTpY/Kn0KX54TKvjK+YMaUxvQcZka6CmEA2o34SUtHRUqiuC u/6rap7MKqc/6h44qXYzocar8/w4c35SkI/AwNg== X-Received: by 2002:a05:6512:3e19:b0:513:2b35:2520 with SMTP id i25-20020a0565123e1900b005132b352520mr61277lfv.58.1709995795723; Sat, 09 Mar 2024 06:49:55 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Jason Xing Date: Sat, 9 Mar 2024 22:49:19 +0800 Message-ID: Subject: Re: [PATCH] net: mark racy access on sk->sk_rcvbuf To: linke li Cc: edumazet@google.com, alexander@mihalicyn.com, davem@davemloft.net, dhowells@redhat.com, kuba@kernel.org, kuniyu@amazon.com, leitao@debian.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, willemb@google.com, wuyun.abel@bytedance.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Mar 9, 2024 at 10:10=E2=80=AFPM linke li wrote: > > > OK, but what about __sock_queue_rcv_skb() in the same file ? > > I notice that, but I am not very sure whether there is a data race. If it > is a similar situation, then the same patch should be applied too. During that process, I see no lock owning the socket, so sk->sk_rcvbuf should also be read locklessly. Thanks, Jason > >