Re: [PATCH] binder: add mutex_lock for mmap and NULL when free
From: Greg KH
Date: Sat Oct 07 2023 - 02:44:33 EST
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@xxxxxxxxxxx>
> ---
> drivers/android/binder_alloc.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
What commit id does this fix?
thanks,
greg k-h