Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2424873rdb; Wed, 21 Feb 2024 07:19:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXLBc1/wdgxH3PMdpB+bZDLRh7Dt8MP83aKNUzHKJS1DJwY/yvA+oQz2sNDnRXFO4jJ2qJcE0YwnGKPSU3K4mfuCJ5CSvYsl9QgwrhikQ== X-Google-Smtp-Source: AGHT+IEV5+EYqC5ZZNxQcKutcNRG71jz2iOIXuIT+E/IOT2UXG+MCZ6g00TeVkIbu/Am3eEBDwoH X-Received: by 2002:a17:906:1293:b0:a3f:4eaf:ec66 with SMTP id k19-20020a170906129300b00a3f4eafec66mr1051533ejb.25.1708528787287; Wed, 21 Feb 2024 07:19:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708528787; cv=pass; d=google.com; s=arc-20160816; b=YGpvf4GoGb2wGguLZ2he6a1Tf/UhMC/UgA4rq6dCmF6IHS2uKocWk8hoUEpYNvHbL6 v0VA94JlM9bDT8KB+IXTSG8rcXb37SIU3ruzpJ91MeWFr7m0Qo6TqE//vCOZo73KGgeD Y4BnqZF//WYFJ5eEHQRZKLCX8aT0ytJ9sirh7WBUchhEqj84EpB22PGN/Z2TZGW3tqH+ 8AM2iulie/jDaSK9F2H7e4jRhsK2Ov7/p9mt8X2TTXPG0loxuHBLYT3P6Ae5L/MjZCNF 38hQnlfbLi0Wliuy2rpy3oXIA6vfWXNJKVYxhXnKb4y18uc55Z60RwrEglgHp5r8dYOU XfOA== 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=AD0dqliRQF6GMDe72qQKbpcVxfavw6j6tqjQOUIDgdU=; fh=bjCspKh9GnIeED24uzZG0sdPl05CPjG5yyqgEkA1qgw=; b=IAiAAilSZIdahY7rNK0Y9FLULbykUbhZxNifLX0kmFMiVFdYVEQG6Gvc71C8k7SP0f Sj0DHVEjrpLEJfxMD50Lg/O0+j2Usb2b38XxL1xklw52D/M7N9/NsdaXdXtCc63+ERiK Do80NwxtYiqndr3EkQ0uhgzbDSz7bqev9hWxKeRj/8qPGvdh2Hu/uRy6gXjHzfY3bMSD E/kTgvRE4/oInXlTNq5lPSIfbbr/0yGvRhyldrJkVQhGSs9y/a1+JVdHHvaMZnbuWOhp 1jcd3sYCgKYFXlZL/yQ0B5lG5UDTPOb0wkjqDGF3ROxkXV6k6MGffBLe06/BoN+13Sc7 XtAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YPze8jVi; 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-74987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74987-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ji11-20020a170907980b00b00a3ee76836d1si2072936ejc.252.2024.02.21.07.19.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 07:19:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YPze8jVi; 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-74987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74987-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DDD9C1F26FA1 for ; Wed, 21 Feb 2024 15:19:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B93780621; Wed, 21 Feb 2024 15:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="YPze8jVi" 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 8876180610 for ; Wed, 21 Feb 2024 15:19:25 +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=1708528767; cv=none; b=YSFiUb9kwrxO+ae8fwEjM0M3facXE3KAh1SeQdLXuIB28VecPtlXnIrUSdbYlJoE30BXWERW3TiajyBmxwvyOSa6t90HQNTN5KbFwTfgaeeV4w9JJUeCH8MuDh5kZGAx4PiBtmy7vmUZLUsBm52KMyTpjlf7GL1FEHcMnJhoMaw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708528767; c=relaxed/simple; bh=aqrE+ffOCBnSJ/q2JwD2my87yIyHGcBKd1rdKGerNU8=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=MzYDJ/YvoObdSioSm/oBquMMEPsj1eEmlRtd8FzUQ/aZDn2vKGkSyUZwjwWyKNn/LPWNMEO30nqgr8XRjXtufwfy+bV/AVsrtz0E3d3hbpxqVwY7GGwTNGgKqucMCQ3tG/hFYHO6mvc/+x2qco9AjXkwWYvH1Z97YgdgyME446w= 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=YPze8jVi; 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=1708528764; 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=AD0dqliRQF6GMDe72qQKbpcVxfavw6j6tqjQOUIDgdU=; b=YPze8jVijCZHlPQvqkiJYIIWPYxmbbQ0g8X86eXFBCpsyOREDNGrEBuS/gn8fNW8WU5Ssz KCb6t87HEMhe15DRY6z1JcdJQK3LqIC6oR2fSZx/IRYTt4faafxwlkuoMNiY2u5uYY4zSg BJ95hZ1ob0SUoyKD46Gr4nWnShGdUs8= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-98-5Va2c57cNHu0RmDrtqtYDg-1; Wed, 21 Feb 2024 10:19:23 -0500 X-MC-Unique: 5Va2c57cNHu0RmDrtqtYDg-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-33d86aedbffso31151f8f.1 for ; Wed, 21 Feb 2024 07:19:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708528762; x=1709133562; 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=AD0dqliRQF6GMDe72qQKbpcVxfavw6j6tqjQOUIDgdU=; b=PPwW0FoonyM0py+TmGYpf5USABbKhowNmqArgcIfRk6s++lzHGW+fe8xSJnDpnQW3R pVY3BjhOh9ZxF6jwtBwpJJOMnh2Y1Ck3FcVBzTFLIfHDQUPZhkJIYtdE81rkDOl1PTU8 mbjBxymOjnFfWsvyhTlH73CGByUnjfcr+0oF7W9GZeTmm4jKY6K3cxZFOEMqcUgGcgGz /EhcISC9GMO6YzfteVo2QYsDjKbv9TVs6tfqEQP4RwhbkCJpTgp7mV1l37/NSPCxeZl7 J25+ynzcU5gn57UD9fsR14HNJXRVSlhcZB9mL9TAoyAyFIDdKim/fSGBzexsOnGx+80o 8MLw== X-Forwarded-Encrypted: i=1; AJvYcCUxRNrN4iObLmfDbtfHpkQihgVJq1/e+wv5F/VCuhMQBw0QKOsrhs0pdBlT3p1PKWrqmZZTHt/LOEJhm86nxc8AOeVSQ+S2T2FzDH0v X-Gm-Message-State: AOJu0YwDsl+1e1Qu395WDA6eCUT7t137uRoujlphaI6WmIktdyo6XW/A cf6IRz8SWvB4PjqmOc/mniE9bBOSCYvDakkzXH8Huoz4rGs4ipveZDMHPAmV0DEWBwywwMI8kDe QtFVdOZCSSAOSvC50Gg2M3vi3vrl/p06+vBIr5DeDvq043rP43nv4Az850E6iDg== X-Received: by 2002:a05:6000:702:b0:33d:5803:1934 with SMTP id bs2-20020a056000070200b0033d58031934mr6469304wrb.5.1708528761946; Wed, 21 Feb 2024 07:19:21 -0800 (PST) X-Received: by 2002:a05:6000:702:b0:33d:5803:1934 with SMTP id bs2-20020a056000070200b0033d58031934mr6469281wrb.5.1708528761565; Wed, 21 Feb 2024 07:19:21 -0800 (PST) Received: from gerbillo.redhat.com (146-241-230-226.dyn.eolo.it. [146.241.230.226]) by smtp.gmail.com with ESMTPSA id by15-20020a056000098f00b0033d7920fe09sm2898575wrb.2.2024.02.21.07.19.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 07:19:20 -0800 (PST) Message-ID: <90f9d3056554c9b318baacc5000b1ae02b59d8f4.camel@redhat.com> Subject: Re: [PATCH net 2/2] selftests: mptcp: explicitly trigger the listener diag code-path From: Paolo Abeni To: netdev@vger.kernel.org Cc: Matthieu Baerts , Mat Martineau , Geliang Tang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Shuah Khan , mptcp@lists.linux.dev, linux-kernel@vger.kernel.org Date: Wed, 21 Feb 2024 16:19:19 +0100 In-Reply-To: <1116d80f808ea870f3f77fe927dbd6c622d062ae.1708515908.git.pabeni@redhat.com> References: <1116d80f808ea870f3f77fe927dbd6c622d062ae.1708515908.git.pabeni@redhat.com> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC1Zmnm3x4u9r22mbMDr0uWqDqwhsvkanYmn4umDKc1ZkBnDIbbumd40x9CKgG6ogVlLYeJa9WyfVMOHDF6f0wRjFjxVoPO6p/ZDkuEa67KCpJnXNYip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qPAhQq8d3hB/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 Wed, 2024-02-21 at 12:46 +0100, Paolo Abeni wrote: > The mptcp diag interface already experienced a few locking bugs > that lockdep and appropriate coverage have detected in advance. >=20 > Let's add a test-case triggering the relevant code path, to prevent > similar issues in the future. >=20 > Signed-off-by: Paolo Abeni > --- > tools/testing/selftests/net/mptcp/diag.sh | 30 +++++++++++++++++++++++ > 1 file changed, 30 insertions(+) >=20 > diff --git a/tools/testing/selftests/net/mptcp/diag.sh b/tools/testing/se= lftests/net/mptcp/diag.sh > index 60a7009ce1b5..3ab584b38566 100755 > --- a/tools/testing/selftests/net/mptcp/diag.sh > +++ b/tools/testing/selftests/net/mptcp/diag.sh > @@ -81,6 +81,21 @@ chk_msk_nr() > __chk_msk_nr "grep -c token:" "$@" > } > =20 > +chk_listener_nr() > +{ > + local expected=3D$1 > + local msg=3D"$2" > + > + if [ $expected -gt 0 ] && \ > + ! mptcp_lib_kallsyms_has "mptcp_diag_dump_listeners"; then > + printf "%-50s%s\n" "$msg - mptcp" "[ skip ]" > + mptcp_lib_result_skip "many listener sockets" I was too hasty and this is too fragile/requires debug. A v2 with something more reliable is needed. Given this is not going to land into this week PR, we will probably send it with a burst with other fixes. Thanks, Paolo