Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp797803pxk; Sat, 12 Sep 2020 00:06:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrP34p/ScbQ3W1nfi9/s6FEnl4ONxJtVLG1lLlkV7egpYoPUtIsDHcVpbRvoKif/6/PO+h X-Received: by 2002:a17:906:15cc:: with SMTP id l12mr5247599ejd.7.1599894418123; Sat, 12 Sep 2020 00:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599894418; cv=none; d=google.com; s=arc-20160816; b=mAp7vFJXV9/gubSP3sYX+OKz3BRHMUKu5OjIPmmjazPtoOvIdmvXMvHYZt2pYRHAS5 MzL9Y7uR9hp8Z03/1pNrSVv0Mdb86vxpMvXrMXQVuuEJEcapGnv8wR2j2vubNTjAy4qt Kia8S+RGx2hUqVFieuV0hBHUeLOAuLxXcfUA5CXYXAedAygO6c/TvhMeBYssxssegEm1 wi/WVaW4ZMO72Ice4/iy6QZR4zM1oSiGDHhdb9Jht6ysr4XAm9WyoDNy1/c+641GHcgH 5ErRNmiBjj8NxbeeGO0vJYxHBIVwH7YF2gX5rG5clb1CbjkQiWTp0saFT7iQ5DPdz7np Lu5w== 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=knCDZMrNLMSwhJ1sAUCl9xsdRcKXytPjZjT8lVLk+q0=; b=OUnr481ntAvlWZ9BaCjoT2Xc6fCcm+TqwKvJ3ZEOAanvt+VY6JDdh+QCVeq1PVn6ZY uU9xe+0UtHbvd8dTLzhTR9U2w29vgLMbzCXM/Ao34/STa3n78HkcahA4uuqnOuaKOlMU 7IXeqNjweJJp9U4+XVq4UjvKO0OjuGfabdj6D/Dy9o+iWxwO562b7SGPhA9oXSmcFKY4 nvvwI2iPzDcZsV5pVx7TV39J6EjGGiAaN8U8x9PFtQFDHa9sZV4bPegzFe1XVoO5NoGb 3DeXH/2Jq6BQ+y1Vls++l7CJMlAr+9JXKWUZmqwycDO5wOmFu2T7/uaVytL0ScrPLBqk XnTg== 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 h21si2896069edw.66.2020.09.12.00.06.35; Sat, 12 Sep 2020 00:06:58 -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 S1725833AbgILHGE (ORCPT + 99 others); Sat, 12 Sep 2020 03:06:04 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:45262 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbgILHGD (ORCPT ); Sat, 12 Sep 2020 03:06:03 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 02F1129AFA5 From: Gabriel Krisman Bertazi To: luto@kernel.org, tglx@linutronix.de Cc: hpa@zytor.com, bp@alien8.de, rric@kernel.org, peterz@infradead.org, mingo@redhat.com, x86@kernel.org, linux-kernel@vger.kernel.org, Gabriel Krisman Bertazi , kernel@collabora.com Subject: [PATCH 0/6] Prepare for removal of TIF_IA32 and TIF_X32 Date: Sat, 12 Sep 2020 03:05:47 -0400 Message-Id: <20200912070553.330622-1-krisman@collabora.com> X-Mailer: git-send-email 2.28.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 We are running out of TI flags for x86. This patchset removes several usages of TIF_IA32 and TIF_x32 in preparation to reclaim these flags. After these cleanups, there is still one more user for both of them, which I need to take a better look before removing. Many of the ideas for this patchset came from Andy Lutomirski (Thank you!) These were tested by exercising these paths with x32 and ia32 binaries. Gabriel Krisman Bertazi (6): x86: events: Avoid TIF_IA32 when checking 64bit mode x86: Simplify compat syscall userspace allocation x86: oprofile: Avoid TIF_IA32 when checking 64bit mode x86: elf: Use e_machine to choose DLINFO in compat x86: elf: Use e_machine to select start_thread for x32 x86: elf: Use e_machine to select setup_additional_pages for x32 arch/x86/entry/vdso/vma.c | 21 ++++++++++++--------- arch/x86/events/core.c | 2 +- arch/x86/events/intel/ds.c | 2 +- arch/x86/events/intel/lbr.c | 2 +- arch/x86/include/asm/compat.h | 15 +++++++-------- arch/x86/include/asm/elf.h | 24 ++++++++++++++++++------ arch/x86/kernel/perf_regs.c | 2 +- arch/x86/kernel/process_64.c | 11 +++++++---- arch/x86/oprofile/backtrace.c | 2 +- 9 files changed, 49 insertions(+), 32 deletions(-) -- 2.28.0