Re: [Intel-gfx] [RFC PATCH 01/16] drm/ttm: Fix a NULL pointer dereference

2023-02-15 Thread Christian König
Am 15.02.23 um 17:13 schrieb Thomas Hellström: The LRU mechanism may look up a resource in the process of being removed from an object. The locking rules here are a bit unclear but it looks currently like res->bo assignment is protected by the LRU lock, whereas bo->resource is protected by the ob

[Intel-gfx] [RFC PATCH 01/16] drm/ttm: Fix a NULL pointer dereference

2023-02-15 Thread Thomas Hellström
The LRU mechanism may look up a resource in the process of being removed from an object. The locking rules here are a bit unclear but it looks currently like res->bo assignment is protected by the LRU lock, whereas bo->resource is protected by the object lock, while *clearing* of bo->resource is al