[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241027053709.GA122484@workstation.local>
Date: Sun, 27 Oct 2024 14:37:09 +0900
From: Takashi Sakamoto <o-takashi@...amocchi.jp>
To: linux1394-devel@...ts.sourceforge.net
Cc: Edmund Raile <edmund.raile@...ton.me>, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH] firewire: core: fix invalid port index for parent device
On Fri, Oct 25, 2024 at 12:41:37PM +0900, Takashi Sakamoto wrote:
> In a commit 24b7f8e5cd65 ("firewire: core: use helper functions for self
> ID sequence"), the enumeration over self ID sequence was refactored with
> some helper functions with KUnit tests. These helper functions are
> guaranteed to work expectedly by the KUnit tests, however their application
> includes a mistake to assign invalid value to the index of port connected
> to parent device.
>
> This bug affects the case that any extra node devices which has three or
> more ports are connected to 1394 OHCI controller. In the case, the path
> to update the tree cache could hits WARN_ON(), and gets general protection
> fault due to the access to invalid address computed by the invalid value.
>
> This commit fixes the bug to assign correct port index.
>
> Cc: stable@...r.kernel.org
> Reported-by: Edmund Raile <edmund.raile@...ton.me>
> Closes: https://lore.kernel.org/lkml/8a9902a4ece9329af1e1e42f5fea76861f0bf0e8.camel@proton.me/
> Fixes: 24b7f8e5cd65 ("firewire: core: use helper functions for self ID sequence")
> Signed-off-by: Takashi Sakamoto <o-takashi@...amocchi.jp>
> ---
> drivers/firewire/core-topology.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-linus branch.
Regards
Takashi Sakamoto
Powered by blists - more mailing lists