From patchwork Thu Oct 3 15:29:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincenzo Frascino X-Patchwork-Id: 13821162 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 72094CF34A9 for ; Thu, 3 Oct 2024 15:29:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 037D36B0099; Thu, 3 Oct 2024 11:29:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F29A56B0153; Thu, 3 Oct 2024 11:29:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DA3BE6B009D; Thu, 3 Oct 2024 11:29:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id B98796B0099 for ; Thu, 3 Oct 2024 11:29:24 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 471BF816AA for ; Thu, 3 Oct 2024 15:29:24 +0000 (UTC) X-FDA: 82632675048.10.EAB9663 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf10.hostedemail.com (Postfix) with ESMTP id A0CA3C0005 for ; Thu, 3 Oct 2024 15:29:21 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=none; spf=pass (imf10.hostedemail.com: domain of vincenzo.frascino@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=vincenzo.frascino@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727969232; 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:content-transfer-encoding:in-reply-to: references; bh=C83AAMAVNXkaMOd4hFAKL5E7KEQ3U1gHRgmj33KtonU=; b=nevkKOQMgpAErG/PJv+BCymRZsthchHmt2Wo/A6KMdHRIPJd6SZnUY/+JYTgvUSTbjQCDc Vw4HHjbBgNJ6YkKLbvS3vk4Lnp2BqKI7on2sS1Jk9SQ+fCane4cgS/J2VIvbwPJkHKGEow Tu+WrS/4cCT61BVnLkQUgCl0jqTb6q0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727969232; a=rsa-sha256; cv=none; b=S6MgpITkErOeiUwcmLdiMDtIJhOp+3jeCbEDovD176KD8ci1mu6rGS837hTWe1impgQi9R HhCxtGElxtfMoBW50r6dURxmMPBk3YuKEpl9vfbKejYsCrrAz+hVJnmHYNfP3ea1tMLw1I oztSTcg36JXYziiPQYpfeCJ31OPNIHQ= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=none; spf=pass (imf10.hostedemail.com: domain of vincenzo.frascino@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=vincenzo.frascino@arm.com; dmarc=pass (policy=none) header.from=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EC383339; Thu, 3 Oct 2024 08:29:49 -0700 (PDT) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 803283F640; Thu, 3 Oct 2024 08:29:17 -0700 (PDT) From: Vincenzo Frascino To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Cc: Vincenzo Frascino , Andy Lutomirski , Thomas Gleixner , "Jason A . Donenfeld" , Christophe Leroy , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Ingo Molnar , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , Theodore Ts'o , Arnd Bergmann , Andrew Morton , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers Subject: [PATCH v3 0/2] vdso: Use only headers from the vdso/ namespace Date: Thu, 3 Oct 2024 16:29:08 +0100 Message-Id: <20241003152910.3287259-1-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: A0CA3C0005 X-Stat-Signature: 699yw377rxej19f4tabsiz7e5exbstna X-HE-Tag: 1727969361-909657 X-HE-Meta: U2FsdGVkX18LKSXHPGQBMjTPCdECT0KIVu64sOxbvFnprsDNMw4gJEb8r0/u+R8lR78/bhBjesXs7ByYegGT/95++cWZI4CNlod8J0qD1yGIdr0teJIGbsc3O21h+q6FDLK5QCTQHgzYiPtnsKXYOjExGfxYUSlhh0sZSX2M6fytxY8RgFDAfW5rjSJ+qq87gH22VsId/c79IwNRFNltncX1nMjmLy0EARX5c/O1pdQr3V3+TsSH0AtEpAImQK4S/19gRFNnGZMqUWbJbE4NZm5LjPbMf7vtw3Uyf3APeRSpkZf5bH0zavprx7a84Zf5CZZFvQq7oaihclsyaffTNw4RqiGpZTwuqczaOObRaUdEXBWikW31s+A2uadvd1eC9wlM37CccqJd/P7PT7OmIFz1G3jTKQC8K3oO8Kmkhd2+h7tAOyxnRG9fiXsFK7RnnSVthoiaQib9g8c+T2pkKfyR8kIBvX2oJDKNyW4WprOPyfeK/QWRajN1gcbSgrqNjsJIMiKvDOmynnbylB7X+g/1WygbzKOQ4pqFS3NHH/+WG8ZDdWmpfK3coTS5S+jbLf/THRnCeE1gGTEMh8NuPdH7j/841bnCYlvsXak3EI1Hr/3YXAdfBV5UITkdDkFT7FOramoW4XjK/IUp8mc3JJAPq4oC/3RwUpBpjrIUzelVngzu5dOxMCtIm87V09cCcJnUpsC5mJE5s4moAGQKZt2uC190mLTzdhW1UEEoyyN7GNkGP0qpigJ+SjEGrB0CXQ7XS73zz8qem4cLeh/UXZ8p8RKj2O55aW16D6O2zu+H86//ZxCQDwEBEul1ReNwVJ8ixL4qUpGRJiLFAZ3c/yaaSdIT1HS90TmLWPu5z74f3lkchRb9BNOIEipKjioVtWnAlycC8tUcli4MpHaar7QQ6Zr7KFuhiZOqw1AdYl4AqlDuTTamBl4NSEtLhHUZ/tM9lstAgMSAwoB35o/ 1WlnfZ+/ cPYrZ0QlxX3bLEwK5Orca5fAqILem9shjCSLhxFVJb00s/pRlWTpc8tOKicZBxxJ5LAjCJmpSjFudj/HHswlSKYDT6Z3EWJgB2+iyUYZugsKI2aGI6qGH0IUXoAC4gV18p5SPvTNe5mUax2khoWDixO/CoNytv03KreNUR/7a4Mk9Ruk46lAlnR3OBs4963uHLE6seqF6ss+Gklmyn/c9o8zI67bN8uXN+Ho2nwa+QlzhDEcxi5lhPjr6Wt2YBBEl4u+1XDi2zTT7ToSoQP/j18kcKkVNkl0HB4j9unsklwovJ5mnrgGyRY2GSeZSTY/7ielApNR8WQTF7vXMQ23rU2apWfdEWof4+fSF5sHAV/gRzNMCmzzghHGrbUUQ1WVNfn5V2s3fqst+L0ldNTyrDEYX3BUp4vYPza2xHmYG1O7cWqmND0u7Ukn7RDaYOEanH4lBWZkQhDs1bx7p4mui+n0Qk3N+BWGNf3BHCdE5CmzCugFvgAMgPxuoUgwiFQmY2xX5MBTDYdfhnnh7N6apJSSE7Iy63tH4V5191D8E7JpX046QAodZasU90DKEJNcstW47lOez09rHanmFEj27PoUmE9ZBPHOKgKwEYu8rr+uiMXA= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The recent implementation of getrandom in the generic vdso library, includes headers from outside of the vdso/ namespace. The purpose of this patch series is to refactor the code to make sure that the library uses only the allowed namespace. The series has been rebased on [1] to simplify the testing. [1] git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git master Changes: -------- v3: - Discard vdso/mman.h changes in favor of [2]. - Refactor vdso/page.h. - Add a fix to drm/intel_gt. v2: - Added common PAGE_SIZE and PAGE_MASK definitions. - Added opencoded macros where not defined. - Dropped VDSO_PAGE_* redefinitions. [2] https://lore.kernel.org/lkml/20240925210615.2572360-1-arnd@kernel.org Cc: Andy Lutomirski Cc: Thomas Gleixner Cc: Jason A. Donenfeld Cc: Christophe Leroy Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Naveen N Rao Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: H. Peter Anvin Cc: Theodore Ts'o Cc: Arnd Bergmann Cc: Andrew Morton Cc: Steven Rostedt Cc: Masami Hiramatsu Cc: Mathieu Desnoyers Signed-off-by: Vincenzo Frascino Vincenzo Frascino (2): drm: Fix fault format vdso: Introduce vdso/page.h arch/alpha/include/asm/page.h | 6 +----- arch/arc/include/uapi/asm/page.h | 7 +++---- arch/arm/include/asm/page.h | 5 +---- arch/arm64/include/asm/page-def.h | 5 +---- arch/csky/include/asm/page.h | 8 ++------ arch/hexagon/include/asm/page.h | 4 +--- arch/loongarch/include/asm/page.h | 7 +------ arch/m68k/include/asm/page.h | 6 ++---- arch/microblaze/include/asm/page.h | 5 +---- arch/mips/include/asm/page.h | 7 +------ arch/nios2/include/asm/page.h | 7 +------ arch/openrisc/include/asm/page.h | 11 +---------- arch/parisc/include/asm/page.h | 4 +--- arch/powerpc/include/asm/page.h | 10 +--------- arch/riscv/include/asm/page.h | 4 +--- arch/s390/include/asm/page.h | 4 +--- arch/sh/include/asm/page.h | 6 ++---- arch/sparc/include/asm/page_32.h | 4 +--- arch/sparc/include/asm/page_64.h | 4 +--- arch/um/include/asm/page.h | 5 +---- arch/x86/include/asm/page_types.h | 5 +---- arch/xtensa/include/asm/page.h | 8 +------- drivers/gpu/drm/i915/gt/intel_gt.c | 2 +- include/vdso/page.h | 23 +++++++++++++++++++++++ 24 files changed, 51 insertions(+), 106 deletions(-) create mode 100644 include/vdso/page.h