[PATCH v2] drm/amdkfd: Fix an illegal memory access

2023-02-22 Thread qu . huang
In the kfd_wait_on_events() function, the kfd_event_waiter structure is allocated by alloc_event_waiters(), but the event field of the waiter structure is not initialized; When copy_from_user() fails in the kfd_wait_on_events() function, it will enter exception handling to release the previously

Re: [PATCH v2] drm/amdkfd: Fix an illegal memory access

2023-02-21 Thread Felix Kuehling
Am 2023-02-21 um 22:05 schrieb qu.hu...@linux.dev: In the kfd_wait_on_events() function, the kfd_event_waiter structure is allocated by alloc_event_waiters(), but the event field of the waiter structure is not initialized; When copy_from_user() fails in the kfd_wait_on_events() function, it