From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) (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 4ED0D2777ED for ; Sat, 10 May 2025 18:32:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746901932; cv=none; b=S2HK7HObfCZMpPvMBJyxhWVRbEHwvgLsyHMyx3HCOWKr9hoR5ICXf5DsGjpDjBKW8SyKzgWCNpp1KjJgZmDWV0PpyLdTw1aUBpidqucRlgibEVnuB6cY1bXlZluwFx9FOlODjcYk2fzOXpT1bk6m+qFpDkSWxGzk47bbcrPV8Zo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746901932; c=relaxed/simple; bh=kw8sFH6NcIVRkErPKGz/8/FmW8EHGa9/rfc4gc5NJoE=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h/emDI9Ke42F8fhms0VtMyGHkg+uTA2HKDG1O9sLxfGoblM+Whr2XbiMygH3M16GvmqNfeaLiV+Tr3XOan173xBMFwcj3e8pxuGlapf3ibRg7xQYglTKtmkgN/e83j92ZoQ1saJRtzgIbHlvSRMBtDeFqkdQirMhcO3t1sZAsnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-232.elisa-laajakaista.fi [88.113.26.232]) by fgw21.mail.saunalahti.fi (Halon) with ESMTP id e8fa2954-2dcc-11f0-96ba-005056bdd08f; Sat, 10 May 2025 21:30:56 +0300 (EEST) From: Andy Shevchenko Date: Sat, 10 May 2025 21:30:55 +0300 To: Andy Shevchenko Cc: Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Ludovic Desroches , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Subject: Re: [PATCH v1 1/1] pinctrl: at91: Fix possible out-of-boundary access Message-ID: References: <20250508200807.1384558-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250508200807.1384558-1-andriy.shevchenko@linux.intel.com> Thu, May 08, 2025 at 11:08:07PM +0300, Andy Shevchenko kirjoitti: > at91_gpio_probe() doesn't check that given OF alias is not available or > something went wrong when trying to get it. This might have consequences > when accessing gpio_chips array with that value as an index. Note, that > BUG() can be compiled out and hence won't actually perform the required > checks. Also Reported-by: kernel test robot Closes: https://lore.kernel.org/r/202505052343.UHF1Zo93-lkp@intel.com/ > Fixes: 6732ae5cb47c ("ARM: at91: add pinctrl support") > Signed-off-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko