Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1895337rdb; Tue, 20 Feb 2024 10:04:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWdgTmdJuEU2BZV0Qx9DjS2d/k4hPWP8sLSGhpAWDbBSzd7ab0rNWiBJnmT5WoFlHxIuScbHSmeIbv9LnOz2EoLHBe/OEbMdl+Bmsp7hw== X-Google-Smtp-Source: AGHT+IFQrkHito7mmh7e1k88BxonLtf7Qp70gZRnBmVVsDNwJNfcnk8Zx+RJsrw/KfNF0524jXcC X-Received: by 2002:a05:6e02:13c2:b0:365:13c0:1bc3 with SMTP id v2-20020a056e0213c200b0036513c01bc3mr12178227ilj.20.1708452249679; Tue, 20 Feb 2024 10:04:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708452249; cv=pass; d=google.com; s=arc-20160816; b=xfHy1+O1/bIimIp99d3tlisHOLSKDaVGv6V8DmYNWR4ShhaPn3bMX/djTcNxOQKNE0 9w+r1dEI79VX6zgH/bXX0qkBAZiTXMG31UkgJ3LEzT/g5fel6DSPTB8oLjqOBrTGBGmn hA1WQ7qLc6xxcqbTjXNUzkO8iOwL72UJaGCCU6S/+TF+y5U+a1OxHD/NVIExvUXYisDf GqtzwmoJkWcUGqFRzLNCfApvfWk1fxM0KtYYXq4bB06v20+0GYJ+SN4zpFsb+C8fkXFn LDVhcKj57L2rk7hxKJFpYNdCuYFRkYiMQ/qIybXeBn8y3cEZ7JVYIUt7TvgI1S541M2L d4Xw== 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=0fnZGcPGFETnd66ZUdGDszP02JN9rYSHEhGIDwY6l4w=; fh=pF4C0HVc2d3pwzIezPMTgcRYYez4fLNpluu4tul3Rrw=; b=ZV6sDpAkGUbs2QNm7aJCFKgxf+wocXRksfJAO1KqueLO9cUtbH2FghQNc+MOjBAckm HzWRZg887VJGvVO98HZQSW8b7YCBYaKc/LbOdpLb7G7i6+/wrc7TtPWUVo0IGaCEghLN yCKWR3mQ+mEdcJhAbqMww3vBbRkbxZcl/feMk4iB8de3MlA78WsnlZAPJK/SjzSzJZfO MaMPPqfGSHT8A2LceumGHOwKMZPuYGvIXH0Y5RkwHwvHEzYIlmlJRkDsN9gZzSgkbgmR JNYjIih6cx+nXuYomZUkFjo02/r2AIYaz0S98pP8Je10Z93rdCA3qTiH4+0KulGYXxoD u61A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="3/CJn6nK"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-73485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73485-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t1-20020a056e02060100b003638f085849si2963609ils.64.2024.02.20.10.04.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 10:04:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="3/CJn6nK"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-73485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73485-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 631FE288B12 for ; Tue, 20 Feb 2024 18:04:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C3DB77F0A; Tue, 20 Feb 2024 18:03:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="3/CJn6nK" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 D55B976C9F for ; Tue, 20 Feb 2024 18:03:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708452236; cv=none; b=l3fRnnXBQePQ0l/JVtrZIyD+fCIFErWXFlFBsl7tcDsE6XbOKgh8OyZ9xEWnhObqoYWAJDNUmRUe8AggHTsa9Nlco8L2/PXf9ensSa/sF9SNSocjRPGoF9hP4zDdhgp2f9HkvqXZGbggp2WKa50rIildttJhiI2+94jTugwDztE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708452236; c=relaxed/simple; bh=0fnZGcPGFETnd66ZUdGDszP02JN9rYSHEhGIDwY6l4w=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=RbATFxVz+dszDmZNO5GuXx16cvdyjE6rqEscCV0qdTPqKHoIK84rn3rtpyeDqQ9dBwihM4sbkzdKJNhPOrX9dgzeah5/uXr92MlNeqRbeTrv+PgrK3jB8vU3/T8/fGc+C2FqBhYR8y2+g9rO9gd+e9Z9myqZYSpE3TYvyVNlgLU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=3/CJn6nK; arc=none smtp.client-ip=209.85.208.45 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=google.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-564d311513bso961a12.0 for ; Tue, 20 Feb 2024 10:03:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708452233; x=1709057033; 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=0fnZGcPGFETnd66ZUdGDszP02JN9rYSHEhGIDwY6l4w=; b=3/CJn6nKud0v2xAGVIYe5baXdR2Ueut4CiNC7Eq+CdK/HTCgeWAhLJNQ9YSZrlihSw +mM3X2+RxFG+U4oAPjuPiS8R0LbRn6S4Y8pCTLoqNs7S5v1u7fpkNzSYMtWBn/X9D1PF FnxQ3r+ZvdTz2GVJYmvYaB24ijfnD89BV1rH82z0BuzXUvEPhJxWIoC4u3Yt5T72aeTe qYIGjYNb8ft5j8LPUvtGqVSAJRSZ2X4VPIe73KRHWHjFKBrKXoWc1FKcuzTcVIt9dF8r tL8WYVdqLYYP2Hu+0UL2PZbpsVD3fz/jm2ijVeqMBAnyticRSKwJvQYWyGe0lHn/KMg3 Ak7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708452233; x=1709057033; 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=0fnZGcPGFETnd66ZUdGDszP02JN9rYSHEhGIDwY6l4w=; b=m7xQ+oZhGSisApowdwU8oPfImNcrJn6ndkOZI23OItTIWe68OZSJbA7VP6ga4EPcMe Wtz3H28Fdq+J0ttE17kgf8Y9pxY/Qzn15Q+0KSDWT6U3eovmGuJcI6w/lHgW4LeEsaHt DIN/CkvN4bXvPVUrpzeqlhMe5OurickspwTSlg70ASVW6YfE6tuRT/g3Ch/8FpdOi30C fCZXW+gLFqGKQOVhujbFokvKowEBsxmGw4mz+6n5j9uvWsorvwVF9JP+FqGCq27E42NT IX2u/+s3ZYlIdFOK+4fDOdVUNnCsvKlTK4bvojqqTOTB6KTsHm6VsxyeJJPbzif3eO04 5zKQ== X-Forwarded-Encrypted: i=1; AJvYcCUsarf3QrKD2QLUUac/Tp+dehoKab0djHyB7P901I0k6llJu9M1Wh7WQgsOyhu7tKu4m2NcOelk5+gcG0+2OoN8W7xb7reTx1Nip9R5 X-Gm-Message-State: AOJu0Yy0aGF+ZQoNQ6Zy8X2DuVSctZSfE+tbV+QqMby+IhjiWYJq5cen 7r1E1wV3eq5FlXbVGV4sueYlAxW4UFwwMIdaL+VRwG3LzRi4xZrwo38MOB9NPKGiBdRHoxi3jhD rE0dyM/9+8amu5+8B/XPJDDnDCwmGxrfAiIoW X-Received: by 2002:a50:8d12:0:b0:563:f48f:a5bc with SMTP id s18-20020a508d12000000b00563f48fa5bcmr441060eds.5.1708452233017; Tue, 20 Feb 2024 10:03:53 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240215-upstream-net-20240215-misc-fixes-v1-0-8c01a55d8f6a@kernel.org> <20240215-upstream-net-20240215-misc-fixes-v1-3-8c01a55d8f6a@kernel.org> <278c26d6f4042dc6dadb9742afe11b7fa610f0b2.camel@redhat.com> <28a1a98c757e4a15b7eecdeae563a17fa5cb45cf.camel@redhat.com> In-Reply-To: <28a1a98c757e4a15b7eecdeae563a17fa5cb45cf.camel@redhat.com> From: Eric Dumazet Date: Tue, 20 Feb 2024 19:03:41 +0100 Message-ID: Subject: Re: [PATCH net 03/13] mptcp: fix lockless access in subflow ULP diag To: Paolo Abeni Cc: "Matthieu Baerts (NGI0)" , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 20, 2024 at 6:33=E2=80=AFPM Paolo Abeni wro= te: > > On Mon, 2024-02-19 at 19:33 +0100, Eric Dumazet wrote: > > On Mon, Feb 19, 2024 at 7:04=E2=80=AFPM Paolo Abeni = wrote: > > > 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. > > > > > > > Not landed yet, here is the splat : > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > WARNING: possible circular locking dependency detected > > 6.8.0-rc4-syzkaller-00212-g40b9385dd8e6 #0 Not tainted > > ------------------------------------------------------ > > syz-executor.2/24141 is trying to acquire lock: > > ffff888045870130 (k-sk_lock-AF_INET6){+.+.}-{0:0}, at: > > tcp_diag_put_ulp net/ipv4/tcp_diag.c:100 [inline] > > ffff888045870130 (k-sk_lock-AF_INET6){+.+.}-{0:0}, at: > > tcp_diag_get_aux+0x738/0x830 net/ipv4/tcp_diag.c:137 > > > > but task is already holding lock: > > ffffc9000135e488 (&h->lhash2[i].lock){+.+.}-{2:2}, at: spin_lock > > include/linux/spinlock.h:351 [inline] > > ffffc9000135e488 (&h->lhash2[i].lock){+.+.}-{2:2}, at: > > inet_diag_dump_icsk+0x39f/0x1f80 net/ipv4/inet_diag.c:1038 > > [Sorry for the latency]. Yes it looks like that checking the listener > status will work. I can test and send the formal patch - with the due > credits! - or do you prefer otherwise? Sure, please send the formal patch, thank you.