Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1290952rdb; Mon, 19 Feb 2024 10:04:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU9bnv7KFTTiqY7xi61Yly1JpFwfXFUi/1HTupCyNtXDzMmBHWM4dOLK0nEp4lKw9baOZDOeK0FpNGdVwKyqkcz9EKbtoLMQ3ZHfFPNpA== X-Google-Smtp-Source: AGHT+IGImuQcNneSuR1Ky4jLMU8KoYk93c2dxmxsfHmdUrykU++ZvkCjw7GEcuDsJocOEZZBKX+J X-Received: by 2002:a05:6214:2428:b0:68f:69bb:4b8e with SMTP id gy8-20020a056214242800b0068f69bb4b8emr6009955qvb.34.1708365884185; Mon, 19 Feb 2024 10:04:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708365884; cv=pass; d=google.com; s=arc-20160816; b=gseJNTsXok9cqMmcu8HjCY6QsNyVwsh2t1M4a+FTdHplv7N0DI693giuJbeeZ83dI+ ZQ4iWfSY+OfAZ6WJqIO5LNODjhadHvtmRx+bUvRztkN+WURhxU4bM710Yl0jTuqeDJLv iMosUF5kQjTndF2BL7gWWV17L8KJl7HPSOB02zy3zZpORz5hMdV2oBdnbNQ60/x8vxUw pr7YLdQA2MTM8G4+RWDnF5KYzQq9b7YIw9ne/nL5z0uampqisMwZ2z2CRaQ/hQt2M4LY EPiTRnRhFdER8pneop80LoLCR48/QaOxnvHwD+PnlZzyyE4Ujv0brIxec34db4vKMCSi fYrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=a+iNeAxtauOM0aYmunbW9EYuTi28TQyi/g0k6ndzmN8=; fh=RNCfB2qFWJnwGAILa3WqOvGMPOLYGG6I14zP89vXpbA=; b=hNDJBIHCRixGKj6r9j2pbapFNlYEpO3x4GG1ApaLYJcH073GBoSOQpTj1pSYJv4h9b Y/CyrZAhjGwxg+CrjlDKfiqxs2DEqIQ7Lh2G3Yngdiv41/X9K+R3Dfop9FdNDFBUgQeY j53wOmdbkgc0ykXY77OySLF81MUo97QYQt2s8UZFs5KtBMCPjerzZSb+bchuY2uKwO6y ejt9R9VmD2rS97ipAuve2hyvuxQnqQJ8Fb6DxQ+i63jK1m4hCcLL6z8kUyx8vkGIfa2t SOuOlcuKkMQBcG2mbpEtneeTK08sATbQh9nXDT9cJKlmINl1Rjyp9yospT2oNnvGLbyk u9lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="dt/inMRm"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-71793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gu11-20020a056214260b00b0068f359a8975si6890809qvb.59.2024.02.19.10.04.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 10:04:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="dt/inMRm"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-71793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 CB7FC1C21561 for ; Mon, 19 Feb 2024 18:04:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BD5C481AE; Mon, 19 Feb 2024 18:04:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dt/inMRm" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28D6B47F79 for ; Mon, 19 Feb 2024 18:04:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708365873; cv=none; b=aGHFFAMSO8RuzrddssqhMaPqTfnr7jG/uaKd6bhEreDEJhtMwhq9k1womx1WUAuPgvquf/akolzbboYzkN4ei/dj7ky4jE78Lsh8gj39g6pX16wt+2HHSY62HjN0VIrDIJSTmiTtRfZX/F3ww47ZnyLnMC9ebrGlO2gozKXhuyE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708365873; c=relaxed/simple; bh=UEPLrGsnD4vv+KWzGVUqKC9P3Ismxwk1aSAAgDmpy8Y=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=AE/xirpKx/l9Lz4Mgx2d09SYMhavMi9pWTcnNeH4m+BojOqnUHSgA2kKsR8vpBfta9DlxEz7qsTEUvOR/O7WoUuJTENQgjFa0JxdblYHRVVcQ7g2/CWfCdnih1YlplzLXq2n57afnMqRLzgJbEFFNpn89yi6M5XSitHTQkSLWCo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=dt/inMRm; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708365871; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=a+iNeAxtauOM0aYmunbW9EYuTi28TQyi/g0k6ndzmN8=; b=dt/inMRm1eJNkYA1hh22+XNmNzqUC00hpU5EOWSa2B4r/42vo38HDysffIICEMtQcbCH4y xc+FZBZgcN4I/rFMMbJKEL4XZzGrR5FPToXZLbkVZdfbRpxlOifnKamIIQCE+zer7DOJrT OYKUsFjdjqcW2Cz1t4ah5WJ3oF0OupQ= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-186-faPLRfotNx2wMIZrVY5VpQ-1; Mon, 19 Feb 2024 13:04:29 -0500 X-MC-Unique: faPLRfotNx2wMIZrVY5VpQ-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4125f4468a2so3513145e9.0 for ; Mon, 19 Feb 2024 10:04:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708365868; x=1708970668; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a+iNeAxtauOM0aYmunbW9EYuTi28TQyi/g0k6ndzmN8=; b=Jvf4vfW8Ss8vOqhJPXgAWt0MpaTb6IvwX+zShgXIpCe2PeYg+q9IyJWLCtG7xKg3sz 394py13gds46Hjyn/Y+H0nkUeqfTbZNxu6SoM3J7n4z76aofk57EZN7UqS180mQXzGBW lAG0Hq0HugBaKDz6bed7t7N65MMyZkwrwYcZc55CI9YiyPDE61+sceLsu8i8tv7jG/sL fMS7dt1uXR8g9VQgT27GMS0os57JKdyc/lxV18F2rKn8UFQ6j6fTAjoaNd0XQD6mcrev JZpVJK63cNRIMq0pQ6a0uOkGfn6oswiJNfm/QTYp4s+ajGHob92+UcFoB7vr5K8fJKux IM3A== X-Forwarded-Encrypted: i=1; AJvYcCWa9sh8Z9nqw1w1wDJWdSu86VFiY8PcPEzWdrjUOgRdlIQi+1MSLMFkmY6CUVYw2qrPWErdfmU4ScNIN2NeflrKKS+WVN6pQ89rK6hd X-Gm-Message-State: AOJu0YxaMWRWPxbIy7fNRhLTDpgmjuyBJWl2AyFGDtaJsPVJvtCarOxN ExIWSAHfJrShKUgtpyE+aPTpM7QxzIBeh5cS0tca2ERjMIK6U96TWPt8DFZydQLzHR44s/vcH1e UP58GtlF2Ib/jq7AzXTSagj+WzU16N3BNaNz7QANznwT6x0nEtL3rYb8m7Mzl3Q== X-Received: by 2002:a05:600c:3b94:b0:412:5f44:65b0 with SMTP id n20-20020a05600c3b9400b004125f4465b0mr4086961wms.4.1708365868599; Mon, 19 Feb 2024 10:04:28 -0800 (PST) X-Received: by 2002:a05:600c:3b94:b0:412:5f44:65b0 with SMTP id n20-20020a05600c3b9400b004125f4465b0mr4086936wms.4.1708365868176; Mon, 19 Feb 2024 10:04:28 -0800 (PST) Received: from gerbillo.redhat.com (146-241-227-135.dyn.eolo.it. [146.241.227.135]) by smtp.gmail.com with ESMTPSA id ch17-20020a5d5d11000000b0033d2ae84fafsm8346747wrb.52.2024.02.19.10.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 10:04:27 -0800 (PST) Message-ID: <278c26d6f4042dc6dadb9742afe11b7fa610f0b2.camel@redhat.com> Subject: Re: [PATCH net 03/13] mptcp: fix lockless access in subflow ULP diag From: Paolo Abeni To: Eric Dumazet , "Matthieu Baerts (NGI0)" Cc: mptcp@lists.linux.dev, Mat Martineau , Geliang Tang , "David S. Miller" , Jakub Kicinski , Davide Caratti , Shuah Khan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, stable@vger.kernel.org, Boris Pismenny , John Fastabend Date: Mon, 19 Feb 2024 19:04:15 +0100 In-Reply-To: References: <20240215-upstream-net-20240215-misc-fixes-v1-0-8c01a55d8f6a@kernel.org> <20240215-upstream-net-20240215-misc-fixes-v1-3-8c01a55d8f6a@kernel.org> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC1Zmnm3x4u9r22mbMDr0uWqDqwhsvkanYmn4umDKc1ZkBnDIbbumd40x9CKg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7pSrQKja+b8kHD9WF+m7dPlRVY7soqEYXylyCOXr5516upH8vVBmqweCIxXSWqPAhQq8d3hB/Ww2A0H0PBTN1REVw8pRLNApEA7C2nX6RW0XmA53PIQvAP0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Mon, 2024-02-19 at 18:35 +0100, Eric Dumazet wrote: > On Mon, Feb 19, 2024 at 6:21=E2=80=AFPM Eric Dumazet wrote: > >=20 > > On Thu, Feb 15, 2024 at 7:25=E2=80=AFPM Matthieu Baerts (NGI0) > > wrote: > > >=20 > > > From: Paolo Abeni > > >=20 > > > Since the introduction of the subflow ULP diag interface, the > > > dump callback accessed all the subflow data with lockless. > > >=20 > > > We need either to annotate all the read and write operation according= ly, > > > or acquire the subflow socket lock. Let's do latter, even if slower, = to > > > avoid a diffstat havoc. > > >=20 > > > Fixes: 5147dfb50832 ("mptcp: allow dumping subflow context to userspa= ce") > > > Cc: stable@vger.kernel.org > > > Signed-off-by: Paolo Abeni > > > Reviewed-by: Mat Martineau > > > Signed-off-by: Matthieu Baerts (NGI0) > > > --- > > > Notes: > > > - This patch modifies the existing ULP API. No better solutions hav= e > > > been found for -net, and there is some similar prior art, see > > > commit 0df48c26d841 ("tcp: add tcpi_bytes_acked to tcp_info"). > > >=20 > > > Please also note that TLS ULP Diag has likely the same issue. > > > To: Boris Pismenny > > > To: John Fastabend > > > --- > > > include/net/tcp.h | 2 +- > > > net/mptcp/diag.c | 6 +++++- > > > net/tls/tls_main.c | 2 +- > > > 3 files changed, 7 insertions(+), 3 deletions(-) > > >=20 > > > diff --git a/include/net/tcp.h b/include/net/tcp.h > > > index dd78a1181031..f6eba9652d01 100644 > > > --- a/include/net/tcp.h > > > +++ b/include/net/tcp.h > > > @@ -2506,7 +2506,7 @@ struct tcp_ulp_ops { > > > /* cleanup ulp */ > > > void (*release)(struct sock *sk); > > > /* diagnostic */ > > > - int (*get_info)(const struct sock *sk, struct sk_buff *skb); > > > + int (*get_info)(struct sock *sk, struct sk_buff *skb); > > > size_t (*get_info_size)(const struct sock *sk); > > > /* clone ulp */ > > > void (*clone)(const struct request_sock *req, struct sock *ne= wsk, > > > diff --git a/net/mptcp/diag.c b/net/mptcp/diag.c > > > index a536586742f2..e57c5f47f035 100644 > > > --- a/net/mptcp/diag.c > > > +++ b/net/mptcp/diag.c > > > @@ -13,17 +13,19 @@ > > > #include > > > #include "protocol.h" > > >=20 > > > -static int subflow_get_info(const struct sock *sk, struct sk_buff *s= kb) > > > +static int subflow_get_info(struct sock *sk, struct sk_buff *skb) > > > { > > > struct mptcp_subflow_context *sf; > > > struct nlattr *start; > > > u32 flags =3D 0; > > > + bool slow; > > > int err; > > >=20 > > > start =3D nla_nest_start_noflag(skb, INET_ULP_INFO_MPTCP); > > > if (!start) > > > return -EMSGSIZE; > > >=20 > > > + slow =3D lock_sock_fast(sk); > > > rcu_read_lock(); > >=20 > > I am afraid lockdep is not happy with this change. > >=20 > > Paolo, we probably need the READ_ONCE() annotations after all. >=20 > Or perhaps something like the following would be enough. >=20 > diff --git a/net/mptcp/diag.c b/net/mptcp/diag.c > index 6ff6f14674aa2941bc04c680bacd9f79fc65060d..7017dd60659dc7133318c1c82= e3f429bea3a5d57 > 100644 > --- a/net/mptcp/diag.c > +++ b/net/mptcp/diag.c > @@ -21,6 +21,9 @@ static int subflow_get_info(struct sock *sk, struct > sk_buff *skb) > bool slow; > int err; >=20 > + if (inet_sk_state_load(sk) =3D=3D TCP_LISTEN) > + return 0; > + > start =3D nla_nest_start_noflag(skb, INET_ULP_INFO_MPTCP); > if (!start) > return -EMSGSIZE; Thanks for the head-up. This later option looks preferable, to avoid quit a bit of noise with _ONCE annotation. Is there a syzkaller splat I could look at? if it landed on the ML, I missed it. Thanks! Paolo