[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v13 07/14] xen/arm: tee: keep init_tee_secondary() for hotplug and resume


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Mykola Kvach <mykola_kvach@xxxxxxxx>
  • Date: Tue, 27 Oct 2026 23:05:56 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jcYFN5ETNzqH2h22XKFCQYA6dn1VHCIQVqzHW6lS7TQ=; b=h/8kyb7uJl/QQvEjtzFSctGD+CwmLAig91Y0lYZ+cRnx25zcf7oWoHPUu3WjjyWSZXPT85KpCfrF2F/PgiZei+VC6H/G3Ln7534V/AUmnA2T6T2JJ3VNvsjsNKc14Zr0NwDX6VbOCWm98Qfe2h6tiG7Ob97m1Ghg1KVBZCYFNKs3HMfAV9UAXTaVa/kN3mt7qNegCDLbX6BMa1qZ8GQd3XfNarqEW7MrifiiJDSyCDls8YbKZg5FH7piprFG50vwqHO3EdurEdjG1oPpXJ4OoI0PHHKEJB8eQ2hY2++n1KD1X5sGgXjLb7Emw1QJ4RisBmeXlLdPwswTp2kk3fUjFA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jbK5Y/2C5iQLFH3EjE4cvHao+pRjdqApFKuqr9VbvsdXQPIqhEP2g8+wk5iyIz+l9VkdnUjX+MSohxlSiDUN/IjxssuKe3G5R8kMKCK1GbX9grbPqODuWzrCj4mnVb6ysnrpmMZrpeiSaUH6AXlXhKFH5gbSW8vPqvzL74dOt4t0TuKC02USbXMiI8clBAC1xV6v9cZ9w5AFfVQ/8VM/oL307YWuEHizvByeQwDqPoTnkU8Bl1+SMwHC79L7miYAZMHQF+wxGv8Bwbj36DAptwDZznQRUP9q6VS2z9bQTVo+mezo7WaWAsBqd3TWkF2iVnoabCjiPLctzjqurOjR5Q==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=epam.com header.i="@epam.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Jens Wiklander <jenswi@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Luca Fancellu <luca.fancellu@xxxxxxx>
  • Delivery-date: Tue, 27 Oct 2026 21:06:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

init_tee_secondary() was marked __init and freed after boot. Calling it
from the CPU hotplug/resume path then executed discarded code, which
could crash Xen. Drop __init so the TEE mediator secondary init can run
safely on hotplugged and resumed CPUs.

Signed-off-by: Mykola Kvach <mykola_kvach@xxxxxxxx>
Reviewed-by: Luca Fancellu <luca.fancellu@xxxxxxx>
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
---
 xen/arch/arm/tee/tee.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/tee/tee.c b/xen/arch/arm/tee/tee.c
index 8501443c8e..00e561fc78 100644
--- a/xen/arch/arm/tee/tee.c
+++ b/xen/arch/arm/tee/tee.c
@@ -128,7 +128,7 @@ static int __init tee_init(void)
 
 presmp_initcall(tee_init);
 
-void __init init_tee_secondary(void)
+void init_tee_secondary(void)
 {
     if ( cur_mediator && cur_mediator->ops->init_secondary )
         cur_mediator->ops->init_secondary();
-- 
2.53.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.