Thread (7 messages) flat view 7 messages, 3 authors, 12d ago

Re: [PATCH net-next v3] net: starfire: fix ioaddr sign-extension causing ioremap() failure

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-11 00:41:07
Also in: lkml

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help