Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF33CCD4F21 for ; Tue, 12 May 2026 10:50:25 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wMkgg-0002P0-DJ; Tue, 12 May 2026 06:50:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wMkge-0002Nz-PO for qemu-devel@nongnu.org; Tue, 12 May 2026 06:50:04 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wMkgd-0008PS-6C for qemu-devel@nongnu.org; Tue, 12 May 2026 06:50:04 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-48d146705b4so65794675e9.3 for ; Tue, 12 May 2026 03:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1778583002; x=1779187802; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Tn0MFdlV5PVM5AdobLMnFcTJArdAB35dceBWJiLcJDE=; b=jaYnHVKaG/ph0BfE3Rpqlg7OVjIVJywcdL9hiSAkq2zo+ZMZy6LVM6cQ65zZmKY+mj mqxuazai73ARA7SjAWKobnpdOl6UetMqdbsR8qjzBwVYxvys12f6pPXJHazlLHsynwUX 0miU5NJ99aeOA6IoB65AW8slaW7FVvkiuYLFOq35F72NdHoDKdTY7RZvNexaiO4aRG4Q FCp1zAxMi2G872DciZ+hzOHphzISTQPTjV9lsADJgg377jcKvvm4W007JFtiiP5H/e7M YMAup/Rq62iY68uLAt9LmjBA2oB1wjKvJjCsde4MQrhEK6H7LqPv3CegmPmM7QicL8jJ EpLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778583002; x=1779187802; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Tn0MFdlV5PVM5AdobLMnFcTJArdAB35dceBWJiLcJDE=; b=OPLkRTxXc1MeZnoMAk5hdwRrgxV1Z0APgAcyhJhljcVIm0WmsgJA0v7CRMApzyFqza C/YUA5tNVKwZTD7GzH0zmCT+ZN3GsLObojGkYuNC8kU5rWs18Zo0doYz7kWwvXDeXTcw ExOOgOPlaO1lBMSxUjU9YQdZk+gcCbtn9QGDunyRA4H7NIKiufw1W6TCWKdSDSuji4CK vhtix7XxtceT+Kv79bLceR+A5it1zHbpZinBPHwuGTZUrd82k/S/L5SOLps7Zvj5Dmt2 sZvX5QR0IWw4l36OENOtSEQfzzrWLeqLhAMhhmRDkJIcucw+pFtcJGwrWV/KMGWHuoFW Qx9Q== X-Forwarded-Encrypted: i=1; AFNElJ8AbeMPAefkR2rONX165iB+vB4mU1ttViQwqp1nBT8U/12zCTFbcgdcOySeW5TSyINbe+11WH/DKZaU@nongnu.org X-Gm-Message-State: AOJu0YwkNts0//Z07081pLVj/4rcDpUQUIKfR5UlGsWH6XB4TtJJff/H 1a1inmfLqYKCMiLfwjeBqqZ7MRosuaUoOwO9j+jKzUwzMLtoxBuNnqG0nIhJHbBiVwk= X-Gm-Gg: Acq92OHMtPWrTHgoZcT6lRgPPog4zU8EFrMvvi79+dzBEZI7um9Bo6mYpvYBQQRm+r4 TANSHWWUgIYGEAaNbkYSUssZg6bHDHtYzA4aDYbKXwnYOQ5Hrd00+PBPyZzUd4oiTkUrLoC8orE Bqw3gqW4POTc9ovsc5WBr+8SDmL7h5sG/d7PuD9Dk8mDe5t+lDkQ5uBvzeMYd8EHol9fPZig/Hn Vu/T86L+iyfUituoZ+odBhaHprMkfthpdHSflN0ePkT4+0fNtNYagolXXwDhu6XPYLpitWR7s7W QC7s+r78gpkhV6VRUTmQMhbBecp54yk6xeBF3Mm+0xqoZLmLbzUNetSoiNIG1bJ9iEqvULLdlNs hNKaLxv0fbayCOpUfFgPaqc3BDACkEYlKcBfpNXc5PT/YR2TjdtlQw3mgYB3d0t6Fue3bFpBcpQ bQUnGJHoTTscC7Knp/zMpWTPqJCBhVEugCFyiQ/Ukb99+AZNiXYzFpW1f8waS7mDzksg== X-Received: by 2002:a05:600c:198a:b0:48a:89d9:a419 with SMTP id 5b1f17b1804b1-48e8fe52c06mr39970355e9.11.1778583001713; Tue, 12 May 2026 03:50:01 -0700 (PDT) Received: from [192.168.69.200] (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e906b5c20sm34613215e9.8.2026.05.12.03.50.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 May 2026 03:50:01 -0700 (PDT) Message-ID: <626bf38b-6471-4398-9f6d-225e6aefaea8@linaro.org> Date: Tue, 12 May 2026 12:50:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] hw/intc/arm_gicv5: Add missing early return in gicv5_set_handling() Content-Language: en-US To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org References: <20260512093856.3197700-1-peter.maydell@linaro.org> <20260512093856.3197700-5-peter.maydell@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20260512093856.3197700-5-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 12/5/26 11:38, Peter Maydell wrote: > In gicv5_set_handling(), if the guest tried to set the handling mode > on a nonexistent SPI then we print a GUEST_ERROR log message. > However, we forgot to then return, so execution continues into a NULL > pointer dereference. > > Add the missing "return", bringing the code structure in to line with > the equivalent parts in other functions like gicv5_set_pending() and > gicv5_set_target(). > > CID: 1659596 > Fixes: 5beb48ab53d ("hw/intc/arm_gicv5: Make gicv5_set_* update SPI state") > Signed-off-by: Peter Maydell > --- > hw/intc/arm_gicv5.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Philippe Mathieu-Daudé