Re: [PATCH V7 2/4] rpmsg: Guard against null endpoint ops in destroy

From: Chris Lew
Date: Fri Aug 07 2020 - 20:33:58 EST


Hi Greg,

On 8/7/2020 12:59 AM, Greg KH wrote:
On Wed, Jun 24, 2020 at 10:15:19PM +0530, Deepak Kumar Singh wrote:
From: Chris Lew <clew@xxxxxxxxxxxxxx>

In RPMSG GLINK the chrdev device will allocate an ept as part of the
rpdev creation. This device will not register endpoint ops even though
it has an allocated ept. Protect against the case where the device is
being destroyed.

Signed-off-by: Chris Lew <clew@xxxxxxxxxxxxxx>
Signed-off-by: Deepak Kumar Singh <deesin@xxxxxxxxxxxxxx>
Signed-off-by: Arun Kumar Neelakantam <aneela@xxxxxxxxxxxxxx>

Should this be marked for stable kernels?

And if so, what commit does this fix? Any reason the Fixes: tag was not
used here?


The crash that this fixes doesn't show up unless one of the previous patches in the series is applied.

[PATCH V6 3/5] rpmsg: glink: Add support for rpmsg glink chrdev

I'm not sure if the fixes tag should apply to this change or one of the commits to the base rpmsg code.

And what happened to this series? I don't see it in linux-next, did the
maintainer ignore it?


I believe most of the review feedback for the series has been addressed by Deepak. There is one remaining action item for me and Deepak to provide more concrete evidence that the first patch in the series is needed.

[PATCH V6 1/5] rpmsg: glink: Use complete_all for open states

thanks,

greg k-h


Thanks,
Chris

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project