From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796293629; b=2GKCrVRMdnAYKvzbBxPxpLsF//Hy93vpseg6hhBijpDvFNMA3IJMRiW6+bKX4RrQGG1C d9qhhQfkbJqNW7sHNbwkVHORgrp/NB5mhlqupJh4PwYIZ2spOJbRjdaX6Csgph/+jH+A8 dvcj7T2zEbm2rPhPf3qu4uHQ/VfNMs8iIUkv8jneIN4/91ClS5hZyC7qQD/TMWU9eMpe3 I5Lhqqm49ZC3weAEfdNlB94PH0K0ZPGl/2+C0biDDZr0lTPbLOyDQgKtmcIS10LXgf0hs /1kbv5B8FSpwipNYftjUjxTd62rQa19NLrLJ3PC/tsbJG2njHDYeyDpHebCWacY0Z7Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796293629; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=axrz7MBCpr9cyadZ+y/U8lMXO6qvEY8sf2hmlh+jHic=; b=Dhup+acE4i9WbybpfIz6hyKRR2rBsnRcOd+d27U+coCZP83hDVCCxBw0OY2Ik46a556f DPHla3hSp9kG4fhyc9HdyeaLhxv0tFZP4kQwjTsGRbIZwo6j1TTLKoW08dc4kdHkRlkbw FQ07oWjoSSumU7w0mhHpZ5efTeqSK4DL1lGnLggmkTcdi5623WUoO8HCWz7hx3IUWOcgR hvCoGpYRHJRuZ67Dx2nUkjKeHoCZMa4X4bxewW0c6OydhG6TUNSkueqGltd4KOj5Vsvq0 2NNYUGwTIIS6hOF1IYpxt5+d2bIud+8jAsDC6YORkABU8T/v8pNovgDCTgN2l51I0RQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LeRZYE6I; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01E02606A32C for ; Thu, 3 Dec 2026 10:27:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LeRZYE6I Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7315B1F00898; Thu, 3 Dec 2026 10:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796293628; bh=axrz7MBCpr9cyadZ+y/U8lMXO6qvEY8sf2hmlh+jHic=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=LeRZYE6IgqOdlwJ5aRwgzBhrwMCfACyWiaT2CrpfKbS1Ujx9wWaIGaJWUebLw1PlT Y2TlEwlyAs4XxCwCPVXh9NfFxii74HHqKG5knZjW7rq+dzb6wNWrhg566n20EcAp7p Fow8v/upfImHhxzITydqkjCgAdNyodlkYdM9JDK8P5c3WVM/yUYrRzySPQFpEJGtc9 +eLCkHlGsXQgsru2z6PFxW1EWCveo0YJ+WSnEDrv4MN+ywYYTl0wU3c0UeBlm7zOqj AiKAb7eYhWA6jqvQkRvHuArUjJmr64PIm2tld51zQCCb2GuZA3lKV5yLG9PVLeZkO5 3dAkTUXBQAlcA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 3/6] PCI: rzg3s-host: Create the INTx IRQ domain before setting the chained handlers Reply-To: sashiko-reviews@lists.linux.dev To: "Claudiu Beznea" Cc: linux-pci@vger.kernel.org, wsa+renesas@sang-engineering.com In-Reply-To: <20261203093224.247349-4-claudiu.beznea@kernel.org> References: <20261203093224.247349-1-claudiu.beznea@kernel.org> <20261203093224.247349-4-claudiu.beznea@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 10:27:08 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] PCI: rzg3s-host: commit message inaccurately claims NULL pointer dereference -- commit 8c172626e9a84925ccbde1ae471b365b192d36ff Author: Claudiu Beznea PCI: rzg3s-host: Create the INTx IRQ domain before setting the chained hand= lers This commit moves the INTx IRQ domain creation ahead of installing the chained INTx handlers in rzg3s_pcie_init_irqdomain(). > rzg3s_pcie_init_irqdomain() installs the chained INTx handlers before > creating the INTx IRQ domain. Since irq_set_chained_handler_and_data() > also enables the interrupt, an INTx interrupt arriving in between is > handled by rzg3s_pcie_intx_irq_handler() while host->intx_domain is > still NULL, which could lead to a NULL pointer dereference. This was > identified by code inspection. [Severity: Low] Is the commit message accurate about a NULL pointer dereference here? rzg3s_pcie_intx_irq_handler() only passes host->intx_domain to generic_handle_domain_irq(). In that path, __irq_resolve_mapping() falls back to irq_default_domain when domain is NULL, and handle_irq_desc() returns -EINVAL if no irq_desc is found. So before this patch, an early INTx interrupt either fails with -EINVAL or gets dispatched through an unrelated irq_default_domain, rather than triggering a NULL pointer dereference. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203093224.2473= 49-1-claudiu.beznea@kernel.org?part=3D3