From 9904cf1df1b8dc16021a013c46af9e603f416b3d Mon Sep 17 00:00:00 2001 From: Raviteja Laggyshetty Date: Tue, 2 May 2023 15:11:01 +0530 Subject: [PATCH] interconnect: qcom: yupik: fix UAF under remove function UAF is observed while unloading the interconnect driver. Interconnect is core to the system and should not be unloaded once it is probed. Marking the driver as permanent by removing the module_exit function. Change-Id: I608e85bc66028878b9dbfeff1c0a4caf683d03fb Signed-off-by: Raviteja Laggyshetty --- drivers/interconnect/qcom/yupik.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/interconnect/qcom/yupik.c b/drivers/interconnect/qcom/yupik.c index 7eec1af9c0e1..2088257b2d60 100644 --- a/drivers/interconnect/qcom/yupik.c +++ b/drivers/interconnect/qcom/yupik.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. * */ @@ -2731,11 +2732,5 @@ static int __init qnoc_driver_init(void) } core_initcall(qnoc_driver_init); -static void __exit qnoc_driver_exit(void) -{ - platform_driver_unregister(&qnoc_driver); -} -module_exit(qnoc_driver_exit); - MODULE_DESCRIPTION("Yupik NoC driver"); MODULE_LICENSE("GPL v2");