Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp581549ybg; Tue, 28 Jul 2020 13:23:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNm5SpNW6ADSkDxx7vsl2DAi2Z4BNetCvMCm6rMCsEadBs6x8BrQXDfkn309JpBITlFf4z X-Received: by 2002:a17:906:868d:: with SMTP id g13mr19898381ejx.242.1595967793582; Tue, 28 Jul 2020 13:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595967793; cv=none; d=google.com; s=arc-20160816; b=elgghJzKP8X7QA+7gE01ZlkzKTD9Tw1txiFVuOJz0pTGBY30R4uqR132m5dBwepvrD KlsnQl40er5O+URuVSdyf0POO3tr7YprTCyst7pohAUdEs3gxpTpHMr8MRQKACrBz5/J hRHiMrcmsjMVbInXs2VxJYHmHSAfjlyIrSxxcTMGOjuKzdZJqAcJQJ3WctTT1X1OwRmM EOt8B3q8NR86qSlktOWW7vIbLPJsli/fRj2CRML2tu652DKR66divyxhksf1wpNYbxvq lLTBy7XbpfgjHDFUOIkzs2tZsrbh8CKFYpqI5/or0OQPNGqOB+j+Oq94Q08QCRhytIex HjZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=uUoCBjqUO0SOrvFwyjV6Rz+HpRrBlGwjIfWUui6ST+Y=; b=CmmF7AGgHVv4MHLuR8lQ7mWv0F5ggkbqWP6DPT6d0npsvo3sWFzDgAs97JZ8dbcHV3 SwbMsBr10ljORzNe4TrxQKB0BzpB6T5dawJvHcZK5qbQfxUBLMfYNEk55KX9VOUUVchm Q2CXhPMSh3QPLAlVAkDZkjupz595YzlFBlO5vuZi5BoqqdSHDk0Sy1bpxrob4fY2uX0d PiIz5qUbeMdFjIlrnH0ZDOTkM3DO6fA3Qo3+lg7915nOH2LFNWgbu9bjsYWaVq3SrPDd SxdZSm7JZ0mrNZ0A1xG3fVWPEReZo/0AAx9j3oZPSo1KZny8CWHhnyicxhecOBWERPxJ Kdkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v2si8663281eda.484.2020.07.28.13.22.51; Tue, 28 Jul 2020 13:23:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728430AbgG1UWm (ORCPT + 99 others); Tue, 28 Jul 2020 16:22:42 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:56820 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728234AbgG1UWm (ORCPT ); Tue, 28 Jul 2020 16:22:42 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 2473328EA02 From: Gabriel Krisman Bertazi To: luto@kernel.org, tglx@linutronix.de Cc: keescook@chromium.org, x86@kernel.org, linux-kernel@vger.kernel.org, Gabriel Krisman Bertazi , kernel@collabora.com Subject: [PATCH 0/6] Reclaim x86 psABI TIF flags Date: Tue, 28 Jul 2020 16:22:23 -0400 Message-Id: <20200728202229.1195682-1-krisman@collabora.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patch set reduces the number of arch-specific TIF_ flags in x86, as a clean up to reduce the pressure over the few remaining x86_32 TIF bits and as a preparation to have the arch-agnostic TIF_ flags shared by different architectures by the common syscall entry code recently published by Thomas Gleixner. This is based on top of: git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/entry It was tested by booting and running an i386 rootfs over the 64bit kernel, and also by running x32 binaries on top of it. There is one remaining use of TIF_IA32 in User Mode Linux which is turned off by a bogus define, such that I think it is currently dead code and apparently a bug. I think, it was wired to an old TIF_IA32 flag definition that doesn't exist anymore in arch/um. I think it deserves a fix other than dropping that code, but it is a different piece of work that I will tackle next. Gabriel Krisman Bertazi (6): arch: x86: Don't use TIF flags for mm context arch: x86: Wrap TIF_IA32 checks arch: x86: Wrap TIF_X32 checks arch: x86: Expose psABI on thread_info arch: x86: Reclaim TIF_IA32 flag arch: x86: Reclaim TIF_X32 flag arch/x86/entry/vdso/vma.c | 2 +- arch/x86/events/core.c | 4 ++-- arch/x86/events/intel/ds.c | 2 +- arch/x86/events/intel/lbr.c | 2 +- arch/x86/include/asm/compat.h | 2 +- arch/x86/include/asm/elf.h | 2 +- arch/x86/include/asm/mmu_context.h | 2 +- arch/x86/include/asm/thread_info.h | 15 +++++++++++---- arch/x86/kernel/perf_regs.c | 2 +- arch/x86/kernel/process_64.c | 16 ++++++---------- arch/x86/oprofile/backtrace.c | 2 +- 11 files changed, 27 insertions(+), 24 deletions(-) -- 2.27.0