Re: [PATCH] binder: add mutex_lock for mmap and NULL when free

Greg KH
2023-10-07T06:44:33Z

On Sat, Oct 07, 2023 at 11:40:46AM +0800, Kassey Li wrote:
> Enforce alloc->mutex in binder_alloc_mmap_handler when add
> the entry to list.
>
> Assign the freed pages/page_ptr to NULL to catch possible
> use after free with NULL pointer access.
>
> Signed-off-by: Kassey Li <quic_yingangl@quicinc.com>
> ---
> drivers/android/binder_alloc.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)

What commit id does this fix?

thanks,

greg k-h