26 lines
801 B
Diff
Executable file
26 lines
801 B
Diff
Executable file
From d1ce2f15fac0e7c3ee27d312016c5fce0608bcae Mon Sep 17 00:00:00 2001
|
|
From: Icecream95 <ixn@disroot.org>
|
|
Date: Tue, 6 Dec 2022 15:17:33 +1300
|
|
Subject: [PATCH 8/9] MALI: bifrost: Avoid fence double-free
|
|
|
|
Probably this corresponds to CVE-2022-42716.
|
|
|
|
---
|
|
drivers/gpu/arm/bifrost/csf/mali_kbase_csf_kcpu.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/drivers/gpu/arm/bifrost/csf/mali_kbase_csf_kcpu.c b/drivers/gpu/arm/bifrost/csf/mali_kbase_csf_kcpu.c
|
|
index 6c43c029a324..715ccd62e375 100644
|
|
--- a/drivers/gpu/arm/bifrost/csf/mali_kbase_csf_kcpu.c
|
|
+++ b/drivers/gpu/arm/bifrost/csf/mali_kbase_csf_kcpu.c
|
|
@@ -1550,7 +1550,6 @@ static int kbase_kcpu_fence_signal_prepare(
|
|
dma_fence_put(fence_out);
|
|
|
|
current_command->info.fence.fence = NULL;
|
|
- kfree(fence_out);
|
|
|
|
return ret;
|
|
}
|
|
--
|
|
2.38.1
|
|
|