🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by patchwork-bot+netdevbpf Tue, 01 Dec 2026 03:00
Re: [PATCH net] octeontx2-pf: handle cn20k_pfvf_mbox_alloc() failure in otx2_pfvf_mbox_init()
#24932
Author: patchwork-bot+netdevbpf
Date: Tue, 01 Dec 2026 03:00
29 lines
9072 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Willem de Bruijn <willemb@google.com>:

On Fri, 20 Nov 2026 19:24:08 +0000 you wrote:
> On CN20K, cn20k_pfvf_mbox_alloc() returns ERR_PTR(-ENOMEM) when
> qmem_alloc() fails, but otx2_pfvf_mbox_init() assigns hwbase without
> checking IS_ERR(hwbase). On allocation failure, the error pointer is
> passed directly into otx2_mbox_init(), which writes reset headers to
> hwbase + devid * MBOX_SIZE and crashes the kernel.
> 
> In addition, if otx2_mbox_init() fails on CN20K after
> cn20k_pfvf_mbox_alloc() succeeded, free_iomem: skips
> qmem_free(&pf->pdev->dev, pf->pfvf_mbox_addr), leaking the DMA mailbox
> allocation, and if the second otx2_mbox_init(&mbox->mbox_up, ...) call
> fails, &mbox->mbox is not destroyed.
> 
> [...]

Here is the summary with links:
  - [net] octeontx2-pf: handle cn20k_pfvf_mbox_alloc() failure in otx2_pfvf_mbox_init()
    https://git.kernel.org/netdev/net-next/c/1fdb3da048ab

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads