[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACKFLi=Au=9H_O4QtgUJ101NZHAW97DF+isGQ4OOsC3x6O5k0g@mail.gmail.com>
Date: Fri, 12 Jul 2024 10:02:06 -0700
From: Michael Chan <michael.chan@...adcom.com>
To: Breno Leitao <leitao@...ian.org>
Cc: kuba@...nel.org, netdev@...r.kernel.org
Subject: Re: net: bnxt: Crash on 6.10 ioctl
On Fri, Jul 12, 2024 at 9:03 AM Michael Chan <michael.chan@...adcom.com> wrote:
>
> On Fri, Jul 12, 2024 at 7:56 AM Breno Leitao <leitao@...ian.org> wrote:
> > BUG: kernel NULL pointer dereference, address: 00000000000000b8
> > #PF: supervisor read access in kernel mode
> > #PF: error_code(0x0000) - not-present page
> > PGD 0 P4D 0
> > Oops: Oops: 0000 [#1] SMP
> > Hardware name: ...
> > RIP: 0010:bnxt_get_max_rss_ctx_ring (drivers/net/ethernet/broadcom/bnxt/bnxt.c:?)
>
> Maybe bp->rss_ctx_list is not valid.
>
> I think we can add this check:
>
> (bp->rss_cap & BNXT_RSS_CAP_MULTI_RSS_CTX)
>
> before proceeding in bnxt_get_max_rss_ctx_ring().
I've confirmed the issue on older NICs not supporting multi RSS
contexts and I will send out the patch very shortly. Thanks.
Download attachment "smime.p7s" of type "application/pkcs7-signature" (4209 bytes)
Powered by blists - more mailing lists