Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp972271lqp; Fri, 22 Mar 2024 01:17:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdrk3nzAQHaPrJ4bhD9y48ILF523hWWUTejnQV4mPXpd16S7koivnz6k11k3TqNCFSGQi5qCpOGKHcKdndaifuNVVxDMO527Bv3+iZQg== X-Google-Smtp-Source: AGHT+IGYsinSTb7yrf+R0puXTVEC6sylrj1ItI7EoQemfwDSR4EGJ2I3/p67tqMa2kdkpQyUbJM2 X-Received: by 2002:ae9:e20c:0:b0:78a:363a:aeba with SMTP id c12-20020ae9e20c000000b0078a363aaebamr1459457qkc.43.1711095431310; Fri, 22 Mar 2024 01:17:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711095431; cv=pass; d=google.com; s=arc-20160816; b=Q1LZvGdB4J0AAq7sx4Cp52YR3G2jJ0awkDcXyhIQIJUm6gwI33zZTPqS2DOR2OhQL4 qYZwLQzkP0eKE1MUeJ3XF4T5k5bbiK92kWQdMwnthMJAIOS6tTNX/l/hMWSxUTD9oUgE qwEpR26JWMHKRX1bDgvFNustqrW4/CmRzMHdCg7g53jEpGg6iSQJs//nCAHzAQLZ6ePt Uz6LMF6zZKTGv2957CI8tIghzPsFKhc4VfZidOmDFitZE6XGQnYHgsYieGb5ec/5DM11 e8l0/jIiYF+/eBzVpWhHKCtU/o6c7oWFtYWHnAzuVCORQ94xUSZbUcu0+W51gIpFox01 ozCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=k7eKfOcnuljC+WdHZ/WvG4Vv4XD7QPRuthF5whrgwF8=; fh=2uh+njBG2MrRoBhAWf4A0RKFT2nLHQpU1qpYk70QJD8=; b=NLWqUAs+A/VzW39894BCF1iPJcAtEj3p/56ujKtR76JVmBFy77CNB67rjV2QUeIOl/ AmED9u0yXIX5l89DZlJbRHQ+jPNPyLO+FetxNNHMXFTqU9HhSNReHwawtgYvgTqn2GCN ksSoHUQsr94cH4J7CQzn8a/iyUjRSxM89dvdhxs69OspkanJB93JFjMnBpakPr2WXr80 uUl3cvbv+RObaS05QOHz7NFVPKz/Z4ZT8tg/Z673wZQW7MarFMIx8+DYKbFHprmw1DXX 6WvUM1Z8qiFzHC4QISG6iFm7eoAjmjkDIkUbSNIgW4Ji/KRiq6LSXXcbZ2DF8QjjRYHk N/+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zytor.com header.s=2024031401 header.b=JuGtM0tf; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-111114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u10-20020a05620a120a00b00789f1f0ce72si1591567qkj.123.2024.03.22.01.17.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 01:17:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2024031401 header.b=JuGtM0tf; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-111114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0DECD1C239DD for ; Fri, 22 Mar 2024 08:17:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B05B1756B; Fri, 22 Mar 2024 08:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="JuGtM0tf" Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0362171BA; Fri, 22 Mar 2024 08:17:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711095424; cv=none; b=qAWAgvdleKkszq7DCs4KOkSIvCrGv2+LGWUsEFWECEgw8oYA9ty6TlYsGIF6dGQge06moiUGjRq6T/uXHGFXgTG9EVjUOCySpB95vNjZyRMshyRHC/Hp3GaYnz6GN4mrMCxslqoiKvPRtdDfLq106kIAzc5rovomm5Qfg9h5iIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711095424; c=relaxed/simple; bh=G7RBzwIgb5QiL9kTtpqRRxwj3m/Y/RELefnFYmC61xA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=fG6rCTrUJ9utzzq9gZKYm04POCK2KZA3ZeAoVDGSaYdqAm0COfs9H43o2EcPZuSmIeTkZ4we3C4PmzznS1BriggF042pfRpDTOSezLxtEDS7oNAH1CpNX4ljgVMDFCN211s6XoHFOnMLUUlj+9qUGO2HfmwDWtZgNCtx5jWpWzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=JuGtM0tf; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Received: from terminus.zytor.com (terminus.zytor.com [IPv6:2607:7c80:54:3:0:0:0:136]) (authenticated bits=0) by mail.zytor.com (8.17.2/8.17.1) with ESMTPSA id 42M8GG9e3346191 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 22 Mar 2024 01:16:20 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 42M8GG9e3346191 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2024031401; t=1711095381; bh=k7eKfOcnuljC+WdHZ/WvG4Vv4XD7QPRuthF5whrgwF8=; h=From:To:Cc:Subject:Date:From; b=JuGtM0tfu2fMqhIFFArB2uZWF+01NrS3nd8DhPk1sXKePwN4vKwJm70aIdLap8sMt bkSNerFhQQ257nyuye8Hd7DP+r2vcORa1bihR1bPrvDALT+J0KqxlXfg3hMFq3O4Fn t1ynGTKCsGGFMh9bW0TCO/Q/8aeRhcN8ukr86ksHcMHFWq5eCvQVbXSDmR6tc8AjDE TvuAclOnO93GMlohYvihnxb4fYZGdocn71wWdH6CqZXO9bISwZKIueiEhP33jCXTI/ bYTu7XZjgnuBvcECdB72tegow3CsDLVhb47IYC65XMLvkT7rYAX6zhyjMzNhuM8DP4 gh3QA90BSWvWA== From: "Xin Li (Intel)" To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-arch@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, jgross@suse.com, boris.ostrovsky@oracle.com, arnd@arndb.de Subject: [PATCH v3 1/1] x86: Rename __{start,end}_init_task to __{start,end}_init_stack Date: Fri, 22 Mar 2024 01:16:16 -0700 Message-ID: <20240322081616.3346181-1-xin@zytor.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The stack of a task has been separated from the memory of a task_struct struture for a long time on x86, as a result __{start,end}_init_task no longer mark the start and end of the init_task structure, but its stack only. Rename __{start,end}_init_task to __{start,end}_init_stack. Note other architectures are not affected because __{start,end}_init_task are used on x86 only. Reviewed-by: Juergen Gross Signed-off-by: Xin Li (Intel) --- Change since v2: * Rebase to the latest tip master branch. Change since v1: * Revert an accident insane change, init_task to init_stack (Jürgen Groß). --- arch/x86/kernel/vmlinux.lds.S | 2 +- include/asm-generic/vmlinux.lds.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index d430880175f2..3509afc6a672 100644 --- a/arch/x86/kernel/vmlinux.lds.S +++ b/arch/x86/kernel/vmlinux.lds.S @@ -168,7 +168,7 @@ SECTIONS INIT_TASK_DATA(THREAD_SIZE) /* equivalent to task_pt_regs(&init_task) */ - __top_init_kernel_stack = __end_init_task - TOP_OF_KERNEL_STACK_PADDING - PTREGS_SIZE; + __top_init_kernel_stack = __end_init_stack - TOP_OF_KERNEL_STACK_PADDING - PTREGS_SIZE; #ifdef CONFIG_X86_32 /* 32 bit has nosave before _edata */ diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index cb46306d8305..9752eb420ffa 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -399,13 +399,13 @@ #define INIT_TASK_DATA(align) \ . = ALIGN(align); \ - __start_init_task = .; \ + __start_init_stack = .; \ init_thread_union = .; \ init_stack = .; \ KEEP(*(.data..init_task)) \ KEEP(*(.data..init_thread_info)) \ - . = __start_init_task + THREAD_SIZE; \ - __end_init_task = .; + . = __start_init_stack + THREAD_SIZE; \ + __end_init_stack = .; #define JUMP_TABLE_DATA \ . = ALIGN(8); \ base-commit: 93387dba36cc9033724d8b874a5cf6779ef084ab -- 2.44.0