From patchwork Mon Oct 14 12:57:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 13834972 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC477D1625B for ; Mon, 14 Oct 2024 12:57:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6A5576B0083; Mon, 14 Oct 2024 08:57:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6542C6B0088; Mon, 14 Oct 2024 08:57:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 51C8E6B0089; Mon, 14 Oct 2024 08:57:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 31FD66B0083 for ; Mon, 14 Oct 2024 08:57:12 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A316FA0EC0 for ; Mon, 14 Oct 2024 12:56:57 +0000 (UTC) X-FDA: 82672208094.30.55CE3EA Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf21.hostedemail.com (Postfix) with ESMTP id 3D6DA1C0016 for ; Mon, 14 Oct 2024 12:56:58 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=YJBw+Ahg; spf=pass (imf21.hostedemail.com: domain of 3JRUNZwgKCMIizlj+oq1owwotm.kwutqv25-uus3iks.wzo@flex--ardb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3JRUNZwgKCMIizlj+oq1owwotm.kwutqv25-uus3iks.wzo@flex--ardb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728910488; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=t6li6wFeQ4E3rD2qiNU9/G5GhCLFz3hLIbapKHZloZU=; b=HEl2AIx8flOlowkGr5GIoZa7nJeN9gDLDmdxrUQHgE6iyxBq11+4K1Hw7RyhGrGt+lmP4K dICFARFy3mnaa12lyjIk1qFJs0LgRS1zAB8Tr39SBA6VU1uMgnAKO+8GbeMgAXj7I6eyi1 JP19mzsFX7QUvtd9N9sCP+MQOTaCXws= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728910488; a=rsa-sha256; cv=none; b=YO87CuNVIC2N8PrL9Jcek4aDAFCrQyZiuO23XhA38qJ2GVYPF5yPuzSLLAMPg179G3EiNn VD5zdNCkutXsd6Opcs1RAulLEFXVXPc9EMkMpt1fkkc24/UnH1G5GhaOSyuRNu64yVZErF fg4Kxpfv1B8xjaeSRpEIpSXVo0Fs9Bo= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=YJBw+Ahg; spf=pass (imf21.hostedemail.com: domain of 3JRUNZwgKCMIizlj+oq1owwotm.kwutqv25-uus3iks.wzo@flex--ardb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3JRUNZwgKCMIizlj+oq1owwotm.kwutqv25-uus3iks.wzo@flex--ardb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-690404fd230so78270877b3.3 for ; Mon, 14 Oct 2024 05:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1728910629; x=1729515429; darn=kvack.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=t6li6wFeQ4E3rD2qiNU9/G5GhCLFz3hLIbapKHZloZU=; b=YJBw+Ahgj93LnHweR5F1IGNhyWX3/wcJMmhHArD7lyr43NWwQG48BEJ7HJnFSRVFSy IpgjfqGcT4CR5XtvaW19WRovMbB7/CnwHZnhtqQOEjGeNlBi1HKuwqv83KTxm/IoVxVi r3FwgDenGzVtTToGSaaV6E6kcHdqNGuf/1mY5R8XchOJAho97lXM9g1Hq34sHTsTkLFL 4z+kewBWkuQJ9A+M0E8IKFZp7YiBomFaE6RYKpdM3tKYgLHwx3itGt5NDZtDxKlAv1VY 4dC7TSqRqfisLsq7ReGpxGaQcH3XIeaLFSoXeZS7KPjKnsi9K5z/+FfTisV5vOEWExKI etmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728910629; x=1729515429; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=t6li6wFeQ4E3rD2qiNU9/G5GhCLFz3hLIbapKHZloZU=; b=PZDlg/U1ImKjd/lqtLu3+zYmcFoiD2IPj4PIojPt0JMZK0RO7dDQahSIya5BGR4o9D VaP90y3Fm+06ORdlzNIgQ0BDsrk/6brms/DaebKB/rFpAZqsijiQSkw9I3/k1sNYSgMa BT16XexEggCrVDgi9/LFu/9eqP5HYPHu2z+Oh7zRN6NPcis+gwnhWtu5XFLiI8bP632d s9hge8xoUYAPs3zJ1YHhJxn9hH6bctg5F/KAOwLnwTTtFJQfuo2bz2pMbqXqP52GLgVs gR9ComrgOuJH9zNSwWooH3W+A6X+5K7UtDlZrC0wy6sTtXW0LBEbvJbmnBozJGqCvWC9 zGwg== X-Forwarded-Encrypted: i=1; AJvYcCVt/YaqddG8U10P6fmqnzagaQhq9CZPYBu+J7ebVyIGFu1W8oWZbrOseG3DFwmDMmS3JYwpHVgMIQ==@kvack.org X-Gm-Message-State: AOJu0Yzh/ox0uQVp/A33iVDYPRwps9rv21uiySRkroO6DS0g6L3SSzU2 /vLkRJzq7gvbbDvY/pz4eceLp//uojx6jByRPvKXwv6LLeldJOU+GJtLQG5Iqj6Hv2gveA== X-Google-Smtp-Source: AGHT+IGTU3Vxqy01+1H6TKajVNIl45h3QLSGp34rJErLGk2Yt75X/DddK3F0YmEjLLNQykAVyV0SclC8 X-Received: from palermo.c.googlers.com ([fda3:e722:ac3:cc00:7b:198d:ac11:8138]) (user=ardb job=sendgmr) by 2002:a05:690c:2e12:b0:6e2:371f:4aef with SMTP id 00721157ae682-6e347b2fe3bmr274597b3.3.1728910629046; Mon, 14 Oct 2024 05:57:09 -0700 (PDT) Date: Mon, 14 Oct 2024 14:57:04 +0200 Mime-Version: 1.0 X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-Developer-Signature: v=1; a=openpgp-sha256; l=1194; i=ardb@kernel.org; h=from:subject; bh=91Wge0c+Id4XIKd5WqFFlARMHKg7IsAMaPdrRhgkLZg=; b=owGbwMvMwCFmkMcZplerG8N4Wi2JIZ1XVCErR0q3bPvkx3mb+GYJN59u6CxbnyV960v5QsWAz mvN7xw7SlkYxDgYZMUUWQRm/3238/REqVrnWbIwc1iZQIYwcHEKwETi7zH84TcyXWAgIuH+S3fS S9+36odq19an2tZdvjxHnGHqtKMzFzH801ikayRtr2u99VqFsVtU9BvJn2LLGGYYVFyvmMx5744 MHwA= X-Mailer: git-send-email 2.47.0.rc1.288.g06298d1525-goog Message-ID: <20241014125703.2287936-4-ardb+git@google.com> Subject: [PATCH 0/2] Use dot prefixes for section names From: Ard Biesheuvel To: linux-kernel@vger.kernel.org Cc: Ard Biesheuvel , Linus Torvalds , Masahiro Yamada , Nathan Chancellor , Suren Baghdasaryan , Kent Overstreet , Arnd Bergmann , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kbuild@vger.kernel.org X-Rspam-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Ep2WnFPNsF1pz+ BcfhFcaw zVvJOCDYIAGUaJ38vUWZ7y0Of8pXu5eFIVYvMjmpYefRxP7ZRpR1Oszaysf83o2Eanpf0/F9/ZfhqbrRJdUwmY0qYYg1pAXOfIhJBaVhlFwtqraYdiVs6O8oWVua7cJkmd7SJsYmPuKLjwdNGKwejkDGkb8YGmCGCVeexJNP662IJqbu5rM8rKGYGCpzNYFJJ6051S3J5Jq0VgpwllMgrn+8cyLlpfQ3s96uNINh78gMXPLfqJLmXJHxVeJQpfQTxy+R1YT+6PcsrCigTnw8taHtIHCkuyqXXH2fQZdHPTaurYRsSC3utfFTvvtosdZ4aKqcIpf6UZpRw6XsbeiE+cWb/No9tKiJ8of64jKYXFxrEoyEhzyIx/QkHnhBKyEHUSIxtu8KjyXvdaMGJR5+YDy8h9Uy8dOJ75A3EdmIf8plvQ16uo7d1Ct6bf2gt2qk4+mBMOmAtd6hSTuNX8lURToVXB6nJZWGfxn/m/nBSAgnmOeJmhcjULC49SB218/KcmZ6kJ/OzCBmSnc5SO74QA6euvOm9Mu6YGc+5/V5yx+j0jclHzbqCtc2WW+rki7qRbKYd6k/mPpt6tNRBeB2Xy13pLYkS5Mn/Y3op4dotC2Z/Fbwsxsvd3LG/SBiG9qqXmlHFxNdxUCtrdLOgTIYyfVS0GTchV/fxAX1rTgCC2PKdxYc= X-Bogosity: Ham, tests=bogofilter, spamicity=0.088032, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Ard Biesheuvel Pre-existing code uses a dot prefix or double underscore to prefix ELF section names. strip_relocs on x86 relies on this, and other out of tree tools that mangle vmlinux (kexec or live patching) may rely on this as well. So let's not deviate from this and use a dot prefix for runtime-const and alloc_tags sections. Cc: Linus Torvalds Cc: Masahiro Yamada Cc: Nathan Chancellor Cc: Suren Baghdasaryan Cc: Kent Overstreet Cc: Arnd Bergmann Cc: linux-arch@vger.kernel.org Cc: linux-mm@kvack.org Cc: linux-kbuild@vger.kernel.org Ard Biesheuvel (2): codetag: Use dot prefix for section name runtime-const: Use dot prefix for section names arch/arm64/include/asm/runtime-const.h | 4 ++-- arch/s390/include/asm/runtime-const.h | 4 ++-- arch/x86/include/asm/runtime-const.h | 4 ++-- include/asm-generic/codetag.lds.h | 2 +- include/asm-generic/vmlinux.lds.h | 4 ++-- include/linux/alloc_tag.h | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-)