[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <165301141326.6731.4497591034558946002.git-patchwork-notify@kernel.org>
Date: Fri, 20 May 2022 01:50:13 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, elder@...nel.org
Subject: Re: [PATCH net-next] net: ipa: don't proceed to out-of-bound write
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@...nel.org>:
On Wed, 18 May 2022 17:44:17 -0700 you wrote:
> GCC 12 seems upset that we check ipa_irq against array bound
> but then proceed, anyway:
>
> drivers/net/ipa/ipa_interrupt.c: In function ‘ipa_interrupt_add’:
> drivers/net/ipa/ipa_interrupt.c:196:27: warning: array subscript 30 is above array bounds of ‘void (*[30])(struct ipa *, enum ipa_irq_id)’ [-Warray-bounds]
> 196 | interrupt->handler[ipa_irq] = handler;
> | ~~~~~~~~~~~~~~~~~~^~~~~~~~~
> drivers/net/ipa/ipa_interrupt.c:42:27: note: while referencing ‘handler’
> 42 | ipa_irq_handler_t handler[IPA_IRQ_COUNT];
> | ^~~~~~~
>
> [...]
Here is the summary with links:
- [net-next] net: ipa: don't proceed to out-of-bound write
https://git.kernel.org/netdev/net-next/c/1172aa6e4a19
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists