[PATCH] drm/radeon: Fix NULL dereference when updating memory stats

2021-07-08 Thread Christian König
From: Mikel Rychliski radeon_ttm_bo_destroy() is attempting to access the resource object to update memory counters. However, the resource object is already freed when ttm calls this function via the destroy callback. This causes an oops when a bo is freed: BUG: kernel NULL pointer deref

Re: [kbuild-all] Re: [PATCH] drm/radeon: Fix NULL dereference when updating memory stats

2021-06-21 Thread Philip Li
On Mon, Jun 21, 2021 at 10:41:57PM +0800, kernel test robot wrote: > Hi Mikel, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on next-20210618] > [cannot apply to linus/master v5.13-rc7 v5.13-rc6 v5.13-rc5 v5.13-rc7] > [If your patch is applied to the wrong git

Re: [PATCH] drm/radeon: Fix NULL dereference when updating memory stats

2021-06-21 Thread kernel test robot
Hi Mikel, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20210618] [cannot apply to linus/master v5.13-rc7 v5.13-rc6 v5.13-rc5 v5.13-rc7] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

[PATCH] drm/radeon: Fix NULL dereference when updating memory stats

2021-06-21 Thread Mikel Rychliski
radeon_ttm_bo_destroy() is attempting to access the resource object to update memory counters. However, the resource object is already freed when ttm calls this function via the destroy callback. This causes an oops when a bo is freed: BUG: kernel NULL pointer dereference, address: 000

Re: [PATCH] drm/radeon: Fix NULL dereference when updating memory stats

2021-06-20 Thread Christian König
Am 21.06.21 um 02:59 schrieb Mikel Rychliski: radeon_ttm_bo_destroy() is attempting to access the resource object to update memory counters. However, the resource object is already freed when ttm calls this function via the destroy callback. This causes an oops when a bo is freed: BUG