Re: [PATCH 1/2] uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind

2024-08-25 Thread Naman Jain
On 8/25/2024 8:21 AM, Michael Kelley wrote: From: Naman Jain Sent: Thursday, August 22, 2024 4:09 AM From: Saurabh Sengar For primary VMBus channels primary_channel pointer is always NULL. This pointer is valid only for the secondry channels. Fix NULL pointer dereference by retrieving t

RE: [PATCH 1/2] uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind

2024-08-24 Thread Michael Kelley
From: Naman Jain Sent: Thursday, August 22, 2024 4:09 AM > > From: Saurabh Sengar > > For primary VMBus channels primary_channel pointer is always NULL. This > pointer is valid only for the secondry channels. > > Fix NULL pointer dereference by retrieving the device_obj from the parent > in t

Re: [PATCH 1/2] uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind

2024-08-23 Thread Greg Kroah-Hartman
On Thu, Aug 22, 2024 at 04:39:11PM +0530, Naman Jain wrote: > From: Saurabh Sengar > > For primary VMBus channels primary_channel pointer is always NULL. This > pointer is valid only for the secondry channels. > > Fix NULL pointer dereference by retrieving the device_obj from the parent > in the

[PATCH 1/2] uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind

2024-08-22 Thread Naman Jain
From: Saurabh Sengar For primary VMBus channels primary_channel pointer is always NULL. This pointer is valid only for the secondry channels. Fix NULL pointer dereference by retrieving the device_obj from the parent in the absence of a valid primary_channel pointer. Fixes: ca3cda6fcf1e ("uio_hv