From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 38CC8ECE564 for ; Tue, 10 Sep 2024 07:39:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=we4w9qvkuf/u8+SwjqeY6Vnk4IzL0lVjnjrsLBWk0Uk=; b=0YHdK77lbqR/02rh5u0ZnNBkYg 30mJ7kJI+rC8xZVGnwLi4NcFZuZnLUaWe+CjoaCByGt3VlMZcH+P7wokY7ce9hm0TDoYLovP58yJq Uag2GpqngVeYdB82DB2ei0Xk782VDx7sglCfoGGmNMCkZjWlY/TNmwEHKM2RWOPqeMIlvLbZv+DDR QpumJ7x7d6bFmHqQ1EubSJFxWoSZ+Geu3J1mWaKpyegTclqU3f1nTmH4/h7fV06EiyOofolmyHbdR WqdVweUxpYrZWPQZYqODfLStXbA/kywuP/KAR+YLH+Rwaw1ZtRg8AemFNlYgzk/DlzO2EIZD2CM3T 2nEB7rSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snvT6-00000004drR-0fDO; Tue, 10 Sep 2024 07:39:20 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snvS4-00000004dg3-1laj for linux-arm-kernel@lists.infradead.org; Tue, 10 Sep 2024 07:38:18 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 362265C0523; Tue, 10 Sep 2024 07:38:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EA53C4CEC3; Tue, 10 Sep 2024 07:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725953895; bh=sjfQ/Eoa81VAVDHDJjTjgWwLjn6c5fS0wVP0NyCXrsY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PL6lg3M+6ObMWTnavaQhSVcsyVO4NLz/pRMLedT5dmZozDn4R+NckMRptnw7bY158 VwhIDvT7Zg3kVG0tuECxSBfjOdmQP4ltymg8SSKyxwH4innqzw3Blv77XuwQDQ7GeD Mli/F63gG00M8h6p+PzbnQBi1fqSm+04KUCFui0pRXLOX2JXMIJLsXMgPW0VMEDKo7 zCgQjjwafNDvH7Q+Uw+/vjazpX8MIWyCZdlbiuh3XyPOVq/xMVExhvz2i206W/PbBA ETS31V19vn0+fq4UhYebI02KTfK+h53gMRJ1tCt4tf1SfaTOxtH0ctOdFJWg6OxB3n rR2MSkN/rA+Pw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1snvS1-00Be7W-5r; Tue, 10 Sep 2024 08:38:13 +0100 Date: Tue, 10 Sep 2024 08:38:12 +0100 Message-ID: <86zfog6jrv.wl-maz@kernel.org> From: Marc Zyngier To: Sergey Shtylyov Cc: Thomas Gleixner , , Subject: Re: [PATCH] irqchip/gic: prevent buffer overflow in gic_ipi_send_mask() In-Reply-To: <052d20d5-e8e4-3133-4fa0-1c026ffb4209@omp.ru> References: <048ff3bb-09d1-2e60-4f3b-611e2bfde7aa@omp.ru> <87cyli5zj7.ffs@tglx> <86o752v8xs.wl-maz@kernel.org> <87wmjmv632.wl-maz@kernel.org> <052d20d5-e8e4-3133-4fa0-1c026ffb4209@omp.ru> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: s.shtylyov@omp.ru, tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240910_003816_555429_E74FAA01 X-CRM114-Status: GOOD ( 12.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 09 Sep 2024 20:48:24 +0100, Sergey Shtylyov wrote: > > GICv2 spec does talk about 1-N and N-N interrupt handling modes; > at the same time, I can't find such words in the GICv3/4 spec. :-) See 1.2.3 "Models for handling interrupts" and the pointers this section contains. The major difference is that 1:N is enabled on a per-CPU basis instead of a per interrupt basis. Needless to say, Linux doesn't support this, although I've been pondering it at times. M. -- Without deviation from the norm, progress is not possible.