Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1171206lqs; Wed, 6 Mar 2024 08:12:26 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCXTt+o1UACkVrPzfC8f33R2vi/mt45mrblUv8toayyNbk3KE6IIzn8+A+t9n1Xc0dh9Q5XYHvLvGj1OWfSsYxelyf8ssIRggNlRJZZzRQ== X-Google-Smtp-Source: AGHT+IF1z3qEapdsPpmydtqLn8NpzrLBsobb6lT1l1HHbTAgRad4bsMJEVzKTVya2GJzGxvGDinm X-Received: by 2002:a2e:9b43:0:b0:2d3:5cfe:c600 with SMTP id o3-20020a2e9b43000000b002d35cfec600mr3655599ljj.3.1709741545961; Wed, 06 Mar 2024 08:12:25 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709741545; cv=pass; d=google.com; s=arc-20160816; b=onNk7SxfR701tvCSZRwwFSl8Wybe9XI+Jqp/+0g5xk0CHElbG2e1vPzRqX7TX1TXwz LGLbjnX3c30X0RlJPMTEPiBntTE23Lg2Ifnb+y91JpRtKfgXzODRcoipKqGBiOJjN82l dgf06T8Ty/m0fM7uDzfcsC+ci7aXLE+206iEpmr3LrhBYm7oaia4MukfIdjRoeJN0nbS G8gnDUABwc9WnSsZOGl/6m5y4MygjOaKIMb89G9cw7oaeZ9L+i6+ZxNDU1uV4UlKmU5Q RP7/2GCjkp8658W5kagZ5fzJNRVDRS8e6fhOCg3vdX2Uxwe5giQF2DRrcsM3h9W754fa +juA== ARC-Message-Signature: i=3; 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=mDUPzqcu1e80xDjzWwKQ7BvEndaKyK9WEBXv5YEz6As=; fh=4DKPLiPDlS+DYY/B2n/08KwGDjw/+CX2QWz/R1uHgOU=; b=GE098afXQ55/NSc9tsilO1rFn/0oWOZNIPya3NzgAY3VTFy0EoTi0KptlQbG2Dz5pV E3vMk+7Z17/clqmPP0M9hxFJEW8C+VBqBkZwXEkIjYVMjWl/ugzS9VPXy0VoBHNP50JN Y/WKvhqYidkphOqOovTjSH1WNquLBPRIpMjiUiwSTISVo2FFJhd4Kz47GjMCKBWgJHsP eRmN0727LZoos6nsUVmfTWDW9n2O3APQmaOtzXYFVrLQyf8wiU6cIqshEB8xDS9VDVit G44u3rV/oIq2w6f1ohyeaie8rT+DDGXG/XlGYSdpt/xlTDBKjY2CrhTYMPfzAadSpdxr EnkA==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=W220bvl1; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-2326-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2326-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h9-20020a05640250c900b00566a1dcbe29si6182028edb.573.2024.03.06.08.12.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 08:12:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2326-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=@iki.fi header.s=lahtoruutu header.b=W220bvl1; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-2326-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2326-linux.lists.archive=gmail.com@vger.kernel.org" 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 180361F27322 for ; Wed, 6 Mar 2024 16:12:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6CC81361BC; Wed, 6 Mar 2024 16:12:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b="W220bvl1" X-Original-To: linux-bluetooth@vger.kernel.org Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) (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 33D0113540F for ; Wed, 6 Mar 2024 16:12:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=185.185.170.37 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709741527; cv=pass; b=Cs0QRVvRq8v+ZovardwSa9uG/HJCdjJqzo35p8twKqV/hEWpauadHaaGph/PPnUyVTGHmj3uYrmvTMAaQsq8DbHLmmmh4LAvJ1RHcPxYtrou4Ie55pKPWR/LRDHgZ6eb/lJxINbsjdYotdMf6DfaXQc2Gc4ii+ND1l0QuGrROgM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709741527; c=relaxed/simple; bh=uHf4KDeEOa/MoEOXQGzFoMXWxUiFYSOrDBR45jqzh4o=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=O1y6uR3W888tRPMH9dxxK4Ph9ThiCt3LkKux1h1ru7OTga1DtDlrWzqXBMuJCv+ev7o7FJ8T5ONoat3Krd7V1xnFFB5kczVZ3PsXuQXM++wWh+HNaMqzzd+8n4CmYQIs6+7Wvv5qC4JbnvO8mhluWQPp0Xvn7vO0DPDwv1Jdm3w= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi; spf=pass smtp.mailfrom=iki.fi; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b=W220bvl1; arc=pass smtp.client-ip=185.185.170.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iki.fi Received: from [192.168.1.195] (unknown [IPv6:2a0c:f040:0:2790::a01d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pav@iki.fi) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4TqcrW004qz49Pyl; Wed, 6 Mar 2024 18:11:54 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1709741515; 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=mDUPzqcu1e80xDjzWwKQ7BvEndaKyK9WEBXv5YEz6As=; b=W220bvl1KnVt4y7/NYbZkxUojaB9WxIbCmZMkKw7tzISq9RuIRKmPLyXCJTmysmc870sd8 T8M9rVKEnRZRn5W0AG/jWNPCGaY7bpf/ESUcsGJzghMrDqt+jykwROuGxbYle2itSLdSFO O71YLOrk9LpxquCLEkcRQ4S8bAORBtY34DqB12t7cx85xVmUeQ8O30VsSbuzD+9246qqOV oUeaK6yc+6QTaaTQXrel7HwNG0VxglhoQgyxy1Q4lsLLikL5Jh4nLMzj1fBm0xZWG6KMw6 abUQ4cwme2DfjuUMpiBg7CRom3wiJdsYrrmj8O+osX/yw4CxFuj+ooFcjo4wbw== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1709741515; a=rsa-sha256; cv=none; b=cGyHWwiZsp2JLlAuuB+rSMCLcm5aC2t5BOaKouR1xvgarn/w0HPfGb3LeblMZ7Zf7nRDyF xz7MQokWNCEbucxYHideWJhJWL5xtSRInWfHNv+mvJ9LcMpWRvQKvYNTnAFBAy+wunWNwx MtiAmZf5M65Z6qsjsstA2tRyovVeyvQ7+j2KzT9FreQhnn0lvlHqvgvyj3dTvmOF9CCHv4 a9TbWC3LsjmYuWQd6JLPXRSa10+hDcPyNWCW0gL1csOsrE2jnNkDMbLLa69qgjrH952Jq1 kRJztpf3HCNOqE/5lPhrT4JGvxZtC942GuoCVKTTgtTP9/skYnfJkHLC1nUBkA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pav@iki.fi smtp.mailfrom=pav@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1709741515; 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=mDUPzqcu1e80xDjzWwKQ7BvEndaKyK9WEBXv5YEz6As=; b=fL5uABJdz2N81Vnb+lpx3KEi4ElyO3yFj9orEmQNd7NRwWQLXQJj2LdfcZlOm4VuJayfEp Yjd9XM51S46C4oGziBrN9YrIlWSvfeSinyefYx1mo7S05bgF66uqPSwhK/SKDbXhozoeVx Vk5hdwPTZc0ne23Kw3rOOoDrQVfbFCrCNGu8LXsE/EgKywbnz/AKI783V5EySAN5n5tU+l h+s3jPvfslQkNQ6iy/3F4Kss6xADpITzwQwL1TZVFyMNTkuMAzTkeNzD8Z9iA+L+rjR1bT tlLwx8Ph+Yz/BnVfCKF9lJ7FGzByrRZINhgogbnIuZKhY4jr0HeLQABuBCOIQw== Message-ID: <67057b99a60736a9b4ce8dae59cee93eed4373f8.camel@iki.fi> Subject: Re: [PATCH v2 1/2] Bluetooth: ISO: Fix circular locking dependency warning From: Pauli Virtanen To: Iulia Tanasescu Cc: linux-bluetooth@vger.kernel.org Date: Wed, 06 Mar 2024 18:11:52 +0200 In-Reply-To: <20240305140939.5090-2-iulia.tanasescu@nxp.com> References: <20240305140939.5090-1-iulia.tanasescu@nxp.com> <20240305140939.5090-2-iulia.tanasescu@nxp.com> Autocrypt: addr=pav@iki.fi; prefer-encrypt=mutual; keydata=mQGiBDuWdUoRBAD5TV1PNJbFxQRmG3moFyJT74l8/6ailvCjgIzwl6Umi4oaDsrogD+myums6lgYe+J2kmbe1Sk2MiOdWzRgY+HbrW5tr8UV+hmNg88gMz9gl2ygWHgG/CSa53Zn+R6TmXXL23KafCYOWH2NKaXxU31c/0Da+yEI+AgkrW8nCOMeFwCgzuJK2qqKtjLqh7Iukt1Urxdp1IUEAMFVHx9TPoFEk4OsuWJRunn7cylFsI/FQlXqXa4GHwhA5zKTMJHo6aX8ITQlnZfdZuxBWF2bmdK2/CRzp0dirJw+f4Qa163kaH2gTq5b+xZXF56xgYMO3wgANtDG1ZKBmYpnV7lFPYpbuNuR0JpksBL5G1Ml3WGblpb4EWtVNrWfA/91HylTGtZnNIxI8iJUjDN0uPHgPVM90C/bU2Ll3i3UpyuXwSFIJq00+bxGQh/wWa50G6GvrBStzhAXdQ1xQRusQBppFByjCpVpzkCyV6POe74pa4m88PRhXKlj2MKWbWjxZeU88sAWhFx5u79Cs6imTSckOCyg0eiO4ca1TLZOGbQbUGF1bGkgVmlydGFuZW4gPHBhdkBpa2kuZmk+iIEEExEKAEECGyMCHgECF4ACGQEFCwkIBwMFFQoJCAsFFgIDAQAWIQSfjAgX4lc0PoQd+D3oFDFvs7SlYAUCWZ8gRwUJHgn8fQAKCRDoFDFvs7SlYELXAJ47uNwB5yXTPDmAhIebcrlE0Ub0kgCdG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kBpa2kuZmk+iQJU BBMBCgA+AhsDBQsJCAcDBRUKCQgLBRYCAwEAAh4BAheAFiEEiNDtwDFNJaodBiJZHOiglY3YpVcFAllP1OgFCQ1MBMwACgkQHOiglY3YpVfiOA//YLTyfBMolR5K/s2WV/mgwQEJZqhdwBT+L/0mxqhuFMWuDnvkUzzBxLTM5a66SB4/JZtyQt14VSnRCuxBUaw/IUftK0ru3zIZjWFfLgHwSUwJCSy6oYwm7x2MAiKQUtAzpSfFJnwyQG2wK1uy6EpSjBX7YphlpKKv6UGiL0QuwWtXALrbI4EVbnozes89CaZHeE6zx/aDQgKa4ajInkIIvtOBmRqbvTPkJjcH84o7b84rP10DSO2Q2ooP8WYQ85y9RkF00yndR01VwNnURt7XmjVuoy8el0WUMv0q7evGTWSmXDPtUMq8e5DKt1uHWdkjV3uhHXjUTlI2gdMrxzbzxPYIWVWg4eE9jEdQvvGaYhDfFpmqF/ZSQT9jUCuWXMMpscy8NrmHnJtTvHBEfmaSgOQPnI7D7AA62q6mAVWEjcfKpgEs0Z2SK75P5yHmD2yEdZy+wSD8zheY1YDqvL50rx+l3mqoONmBwiW7R5dkMInqgQ156Uf8yMc8vv5exARr8WhJV61R2mSeHfxTFMMXaFG//NTHNX7ZpP0tECyePbu+IB32oa7P45EoNRZnLDG2KDOFsoUuy+CzQYPku5Gz8aqcgP7k8wb4J3QPPfiaAYrRJ9XOoiLUDodnWnPW9zLA1yWMnarzilEFPVmBztx6JKxlbFxnOfO6u5ry+uXZC4w= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, ti, 2024-03-05 kello 16:09 +0200, Iulia Tanasescu kirjoitti: > This fixes the circular locking dependency warning caused > by iso_listen_bis acquiring the hdev lock while the socket > has been locked in the caller function. I think the commit message and the comment should explain why there is no deadlock, and that the lockdep warning is a false positive. E.g. fuzzer calling connect() and listen() at the same time seems it would be dangerous here? >=20 > =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-rc5+ #1 Not tainted > ------------------------------------------------------ > iso-tester/2950 is trying to acquire lock: > ffff88817a048080 (&hdev->lock){+.+.}-{3:3}, at: iso_sock_listen+0x305/0x8= d0 >=20 > but task is already holding lock: > ffff888197c39278 (sk_lock-AF_BLUETOOTH-BTPROTO_ISO){+.+.}-{0:0}, > at: iso_sock_listen+0x91/0x8d0 >=20 > which lock already depends on the new lock. >=20 > the existing dependency chain (in reverse order) is: >=20 > -> #1 (sk_lock-AF_BLUETOOTH-BTPROTO_ISO){+.+.}-{0:0}: > lock_sock_nested+0x3b/0xb0 > iso_connect_cis+0x185/0x540 > iso_sock_connect+0x445/0x7e0 > __sys_connect_file+0xd5/0x100 > __sys_connect+0x11e/0x150 > __x64_sys_connect+0x42/0x60 > do_syscall_64+0x8d/0x150 > entry_SYSCALL_64_after_hwframe+0x6e/0x76 >=20 > -> #0 (&hdev->lock){+.+.}-{3:3}: > __lock_acquire+0x208f/0x3720 > lock_acquire+0x16d/0x3f0 > __mutex_lock+0x155/0x1310 > mutex_lock_nested+0x1b/0x30 > iso_sock_listen+0x305/0x8d0 > __sys_listen+0x106/0x190 > __x64_sys_listen+0x30/0x40 > do_syscall_64+0x8d/0x150 > entry_SYSCALL_64_after_hwframe+0x6e/0x76 >=20 > other info that might help us debug this: >=20 > Possible unsafe locking scenario: >=20 > CPU0 CPU1 > ---- ---- > lock(sk_lock-AF_BLUETOOTH-BTPROTO_ISO); > lock(&hdev->lock); > lock(sk_lock-AF_BLUETOOTH-BTPROTO_ISO); > lock(&hdev->lock); >=20 > *** DEADLOCK *** >=20 > 1 lock held by iso-tester/2950: > 0: ffff888197c39278 (sk_lock-AF_BLUETOOTH-BTPROTO_ISO){+.+.}-{0:0}, > at: iso_sock_listen+0x91/0x8d0 >=20 > Signed-off-by: Iulia Tanasescu > --- > net/bluetooth/iso.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/net/bluetooth/iso.c b/net/bluetooth/iso.c > index 8af75d37b14c..5ca7bb0806b0 100644 > --- a/net/bluetooth/iso.c > +++ b/net/bluetooth/iso.c > @@ -1095,7 +1095,10 @@ static int iso_listen_bis(struct sock *sk) > if (!hdev) > return -EHOSTUNREACH; > =20 > - hci_dev_lock(hdev); > + /* To avoid circular locking dependency warnings, > + * use nested lock for hdev. > + */ > + mutex_lock_nested(&hdev->lock, SINGLE_DEPTH_NESTING); > =20 > /* Fail if user set invalid QoS */ > if (iso_pi(sk)->qos_user_set && !check_bcast_qos(&iso_pi(sk)->qos)) { --=20 Pauli Virtanen