Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp559255rdh; Wed, 14 Feb 2024 05:17:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUW9O72vVvvzVgYd7ZVXHrtzfB2MRv1rHXeYTHg0XIVBre2lKkichbrNdMnHJh0bNdma2zdCF+dq9CcH+zT0FZPfFkyTGzP88gc1OjOMA== X-Google-Smtp-Source: AGHT+IHePTF8HJKmgB2QTTsZFPL9KcWZ8BiLSb5i33MGasNH2L5vnMQbq2Oos7sO+VjOz/Hs8Kzo X-Received: by 2002:a17:906:d8a:b0:a3d:6dc0:bb3d with SMTP id m10-20020a1709060d8a00b00a3d6dc0bb3dmr113460eji.26.1707916647516; Wed, 14 Feb 2024 05:17:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707916647; cv=pass; d=google.com; s=arc-20160816; b=JeoRdykaOT5usSkntmg6subjSCFc66Rb1irsh3cbdjF/qqawNQf4+IzO9oHWCuy0+q h1umX5A2oEcIc9ea6AyD+7L2FfZZljmx5LlsVcpeIKqPZcMDy8Tcp47Mmi9wHky9b/Dr nAtTNFFTIyngTpb62D3/1ZsROnW/QFP/+CwIoXM4lDN7VPETN4pTVgN1UOORbYCxAREZ q1SGi6feMN75AKsqTUMBXz3+Ys39WKtFL3FYovqERXcmUf86htyN7xtT1BZ66UVY3LdV PUnJ1T6xW6GarNti3OBerpbaxR5ruKkprZljS5XhyArfl5M+zo9I5rcms9wU+zZKI4wH 6P6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zIlrVT55JOuOG/CTR43FCBF+ujRBZpUu4AnBctJOGuE=; fh=qwEgelHixTWyCDbMddOJMRdUZd3bEw3F0dvXqcNXqv0=; b=YNJh99rfT9HvMbelmZn0eRN3uHdkrlMUpewsPyoeJ9YC3MADhciNiEhTsnAOeJXNY3 U9HcUGcmxkCL7Fk8RqLJ0098gU/wekFOnMzYN9qcXVZKaK7s83CE7yrHGDe6Fp9H506i Xr9lCYY0ednL+bGJNL2esWYhFanx3TwBtxnCeRIQ7MKztiazRK/eqDMbto9Zb41CSwMm KycrlOsGxPGOijB0Zr8ulVZ1JvKJ6DWhKNfgNPTH1/+gOP/4ut42ZynohM1bYBZv6fPB GjPouA2F+hlo4l/5TcL1Qc+ASxGcLjnZg57tVioXMVcz8hJHzQAh3jzOQYxxOC3vcDip Q5Bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TY3bpbnN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65260-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCXs98SStffYMIY0fqbkBGnJENHZP3cd4mNoiwbxF775ScIgw+6eEXzlx3kAV8IYcGJJnaNFMLT9DbLdZAXE8v3lN2xzyIbtAtBTNhAjfA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w27-20020a170906131b00b00a383060f2f0si2155722ejb.252.2024.02.14.05.17.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 05:17:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65260-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=@kernel.org header.s=k20201202 header.b=TY3bpbnN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65260-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 450051F21910 for ; Wed, 14 Feb 2024 13:17:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADF20535D4; Wed, 14 Feb 2024 13:17:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TY3bpbnN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CD95A524D1; Wed, 14 Feb 2024 13:17:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707916638; cv=none; b=cfBBJxbQIEQtwa1hLU0ckbJnwA0OEsFvIEq5H2moKivD8uk8y64ItB4kAjsNHSfK5qLTEQedSOzePwO+MrXZ7DreoDcTR/Vu3MfJoRwwbpXwJmchYc256Dk23Lnzdmg3Gn4AVyJ61lPvVhboA2Cdsd48rmV+kfV+PnGwweVqDGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707916638; c=relaxed/simple; bh=UApSOBR43ZErywnbuS/xYxhg9vy8q5S6orxIgMpHkjw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DW29ziUo1VjvOP6s3LxYUKniupStqGUDndSitPrdQr3dr8avAronbZxDD/lgzcnnAanAnZ9Qbe8+7Lk1o5W84rhTAv2JyrN/NHigFXIiOvlmnQJwUoXNsnsieo4M0uXKwjM42X8zCTh0MEcZ5EcVjCOSMzPf+zWPY4+cJmxy3kI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TY3bpbnN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2D65C433F1; Wed, 14 Feb 2024 13:17:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707916638; bh=UApSOBR43ZErywnbuS/xYxhg9vy8q5S6orxIgMpHkjw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TY3bpbnNhie8GtyO8aiz0eioHSdBBP/douxMvsSJ09YBRQbmZPZTKLOQRfmtrWoc2 W78REzwGHDKhHj16IKbu/1TNsVztq32er0FxP+/Y87TE273Kavu+W41vZFKnfnFqJ/ adOMbNhOnmp4sKuCSJeUhtf8iAVkKCRUS6w8A9Qt4EkDVoM9059pYqjNIE/IlObdzT Ch4bnEQ9wcz6hqxpQPU9fBBb9CtuVIyt4gRy8MXREW1dcpk+UJm8sOy29p54URpcH5 iy46+lIoLovquQF/6kUMnwjBLZ4FX7eTffaQTxnBS/IlfbXLrAkdrl7y6p2e5V95kS Om0g5uXb/YjTg== Date: Wed, 14 Feb 2024 13:17:12 +0000 From: Mark Brown To: Bartosz Golaszewski Cc: Linus Walleij , Kent Gibson , Alex Elder , Geert Uytterhoeven , "Paul E . McKenney" , Andy Shevchenko , Wolfram Sang , Dan Carpenter , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH v2 0/4] gpio: fix SRCU bugs Message-ID: <4c629a0b-95ff-4ad6-af04-61b25d437f89@sirena.org.uk> References: <20240214084419.6194-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PHKFQMsyP2YjnSWd" Content-Disposition: inline In-Reply-To: <20240214084419.6194-1-brgl@bgdev.pl> X-Cookie: Available while quantities last. --PHKFQMsyP2YjnSWd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 14, 2024 at 09:44:15AM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski >=20 > Here are four fixes to some bugs in recent SRCU changes. The first one fi= xes > an actual race condition. The other three just make lockdep happy. This doesn't fix the issue I reported yesterday when applied on top of today's next: https://lava.sirena.org.uk/scheduler/job/585469 [ 1.995518] Unable to handle kernel NULL pointer dereference at virtual = address 0000000000000078 =2E.. [ 2.176162] Call trace: [ 2.178610] check_init_srcu_struct+0x1c/0xa0 [ 2.182974] synchronize_srcu+0x1c/0x100 [ 2.186904] gpiod_request_commit+0xec/0x1e0 [ 2.191183] gpiochip_request_own_desc+0x58/0x124 [ 2.195894] gpiod_hog+0x114/0x1b4 [ 2.199305] of_gpiochip_add+0x208/0x370 [ 2.203232] gpiochip_add_data_with_key+0x71c/0xf10 [ 2.208117] devm_gpiochip_add_data_with_key+0x30/0x7c [ 2.213261] mxc_gpio_probe+0x208/0x4b0 --PHKFQMsyP2YjnSWd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXMvVgACgkQJNaLcl1U h9DroAf/eoRSfe3T0pX2R2UAPt8d7/BSID9HbANJ6umEl9wiMdKWZLXBBle0rNVJ /GXxwUVieNoywwrzqFjXXVeYkT889xYplvblstaBjiFl0W2FpM+ab09bhIuF/7Vc SyN0fDZ9uxPZZBNboXagkMIL2+lTdGAPWZSfABNM+HUPiQBhLU3XxBbYS1KqB0XC RlifSVRr9K0FBN7Wws/u2qNRt0deopzIKXSDyiZLYjCmoYLrUTV3VyGYQK0vOoX7 oit/bnXUgIo9s4Td0tebiRxke7JtX3avSnlBPG2Urr5+r3/kFRMfaBPWifXtuvay CkzYCKvSBl8H9nmicCjCZzyY6CMpdQ== =bF5W -----END PGP SIGNATURE----- --PHKFQMsyP2YjnSWd--