Messages in this thread | | | From | Dexuan Cui <> | Subject | RE: [PATCH] Drivers: vmbus: Check for channel allocation before looking up relids | Date | Wed, 8 Feb 2023 19:02:59 +0000 |
| |
> From: Mohammed Gamal <mgamal@redhat.com> > Sent: Wednesday, February 8, 2023 3:34 AM > > relid2channel() assumes vmbus channel array to be allocated when called. > However, if the guest receives a vmbus interrupt during driver initialization > before vmbus_connect() is called or if vmbus_connect() fails, the vmbus > interrupt service routine is called which in turn calls relid2channel() > and can cause a null pointer dereference.
Before vmbus_connect() is called or if vmbus_connect() fails, there should be no VMBus channel related interrupts at all, so relid2channel() can't be called.
Can you please share the log or at least the crash call-stack? I'm curious how the crash can happen.
| |