Re: [PATCH v2] cxl: Fix possible null pointer dereference in read_handle()
From: Greg KH
Date: Wed Jul 10 2024 - 07:00:20 EST
On Wed, Jul 10, 2024 at 06:33:52PM +0800, Ma Ke wrote:
> In read_handle(), of_get_address() may return NULL which is later
> dereferenced. Fix this by adding NULL check.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 14baf4d9c739 ("cxl: Add guest-specific code")
> Signed-off-by: Ma Ke <make24@xxxxxxxxxxx>
> ---
> Changes in v2:
> - The potential vulnerability was discovered as follows: based on our
> customized static analysis tool, extract vulnerability features[1], and
> then match similar vulnerability features in this function.
You need to follow the rules outlined in
Documentation/process/researcher-guidelines.rst when doing stuff like
this. Otherwise all of your patches will have to be rejected.
Please fix up the changelog text of all of the patches you have
submitted recently to follow those rules.
thanks,
greg k-h