Re: [PATCH net-next v3] net: starfire: fix ioaddr sign-extension causing ioremap() failure
From: patchwork-bot+netdevbpf
Date: Thu Sep 10 2026 - 20:42:35 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 8 Sep 2026 18:28:29 -0600 you wrote:
> ioaddr is declared as a signed long, but is assigned the result of
> pci_resource_start(), which returns an unsigned resource_size_t.
> On configurations where the BAR address has its high bit set, the
> value sign-extends when passed to ioremap(), producing a bogus
> 64-bit address and causing device probe to fail:
>
> ioremap: invalid physical address fffffffffe480000
> starfire 0000:08:04.0: cannot Remap 0x80000 @ 0xfe480000, aborting
>
> [...]
Here is the summary with links:
- [net-next,v3] net: starfire: fix ioaddr sign-extension causing ioremap() failure
https://git.kernel.org/netdev/net-next/c/f5f0fcfcb30c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html