Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2148057imm; Sat, 30 Jun 2018 12:03:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeM4ykISuext3n9eWmkd9T9tqG6IlM7pgZM0ILDmCSIK2pzUm/Gn/JgRro0J+lx7wfs44XR X-Received: by 2002:a17:902:d692:: with SMTP id v18-v6mr12581065ply.59.1530385404860; Sat, 30 Jun 2018 12:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530385404; cv=none; d=google.com; s=arc-20160816; b=ZYA1S2nH6G8ozJaWZPzx7yGkJ0/n3lFeXGl8LR7M4Mxeeiq++2e0y3zifOOXY+EZNq ez0d5VpA8nQs3/A5zh+nF+ilgpidRnxEE7FJcm57cySzJZnlU5av4z2UsboME/PXUeAQ m/06HwJWKBpfqsuXUwmLVAjIJmeb2zfqbALzWX/kvkCN6jl/hjWlaCXBQy2KEpoW8/hG FHSQ2dX6MvJGYcEWD8UEM/RTAtT+H4K1fpwY3SiRwoxx2fGH73Iz7xAaI/DEWorKlSPM tn0Q5njhF1C0Aq/IAVAraOlAqvWEGfG89hLGVe7YrgLF33IXKeG0c3y5fEIrd5/jq2IH jDWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=/u+jU+4Ef6tjMWtVtI80r0J7E5Z6EDU4kldRmqBNPmk=; b=q12hPMXHK4mhFuskAtOYFT8RsNXehTo0KlP3JEwO4LW3whqb608DCEvlq39I5YvDx7 OhjsMdyEf9VATktsze1BDru7vOUUMaEBC7ANjQ6pQpsWriu1BZkYyLH3PJYgt3cTY8oz hbpFx5PGa1cJ2B6Fh5Igq1Tx/KTKHasI552cBWhCdll6FSWv7OSTD3panA6lQbcXSQw4 b6i2PRgf9DafXWDv6zJxi2+Tgi9sOKSus5wjVlscCRc1yfNTiN/G/aGTaO9d6jgg1Lej t2n2fzH5bR2ibTjw/6NdP+iKoRadaZMZtJWq/z7CTmK6jry8ljlnBpFrfwYBjAQ7z7fP RIug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EK7vIj9P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10-v6si1249165pge.48.2018.06.30.12.03.10; Sat, 30 Jun 2018 12:03:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EK7vIj9P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751869AbeF3TBf (ORCPT + 99 others); Sat, 30 Jun 2018 15:01:35 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:36284 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523AbeF3TBc (ORCPT ); Sat, 30 Jun 2018 15:01:32 -0400 Received: by mail-io0-f194.google.com with SMTP id k3-v6so11349321iog.3 for ; Sat, 30 Jun 2018 12:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/u+jU+4Ef6tjMWtVtI80r0J7E5Z6EDU4kldRmqBNPmk=; b=EK7vIj9P93hZysHHTkXTuoT+wjqCs1MXhIL+oS3ZGa97RSBiS4ncseApWguRRWKkhY m2RK3ltowN2/gwG24epAhBT1HqlvuJ0jAUTEct7B6trbl6+Nw/NLc6VyNFwdQwzWM3ZA V9iSuOTZ/dJWcoh9u/EGhFr41Qw0PXU7AED58= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/u+jU+4Ef6tjMWtVtI80r0J7E5Z6EDU4kldRmqBNPmk=; b=C6xAx7LflW+uv8lSoXZkM3raTaA+XcQFSXHq+/c8D55fHIl2cyNkvflmD2vqt9j75l NXqEa0YPYtjuN4AEKvV62Nql6iIRutW0OmVceJl70zcL31/2CAA4MbK3wXxgXA/j+ob4 osQ/eLMxwen+bYSAuZwD2cLJ2J7FTZdvpl3xBqjksBgMyEc2rMJ4rsaL771novmhxfz0 XLlRJKwFpw0OWNoMISaZZjB4G5zFNrZ7C8pVc4wpaZ1cl9D8Vs4UqMgDlFxManvomnlz RAq6h2TLvfMyYSmlooTDJua64wRsB9fBskJCSXuDCgpHrcdzdi9NM0P0QN/9EZmJSe/P L5Fg== X-Gm-Message-State: APt69E0JAvwwXtUumC2aB5Zc8/0PmpgD67zGhxISJ4GUJcRx5a1bQV8I 7YDv62jTkeLQaQij+XOzzNC/lDZ6gAKwcJI2toQ= X-Received: by 2002:a6b:274f:: with SMTP id n76-v6mr16967713ion.259.1530385291614; Sat, 30 Jun 2018 12:01:31 -0700 (PDT) MIME-Version: 1.0 References: <20180630084933.GA15210@gmail.com> In-Reply-To: <20180630084933.GA15210@gmail.com> From: Linus Torvalds Date: Sat, 30 Jun 2018 12:01:20 -0700 Message-ID: Subject: Re: [GIT PULL] x86 fixes To: Ingo Molnar , Andy Lutomirski Cc: Linux Kernel Mailing List , Thomas Gleixner , Peter Zijlstra , Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 30, 2018 at 1:49 AM Ingo Molnar wrote: > > --- a/arch/x86/entry/entry_32.S > +++ b/arch/x86/entry/entry_32.S > @@ -477,7 +477,7 @@ ENTRY(entry_SYSENTER_32) > * whereas POPF does not.) > */ > addl $PT_EFLAGS-PT_DS, %esp /* point esp at pt_regs->flags */ > - btr $X86_EFLAGS_IF_BIT, (%esp) > + btrl $X86_EFLAGS_IF_BIT, (%esp) > popfl Ho humm. Just looking at this patch, my reaction was "why isn't this an 'andl $~X86_EFLAGS_IF' instead"? Yeah, I guess the 'andl' is two bytes longer (due to the 32-bit constant - because IF is bit 9, you can't use a byte constant, and you don't want to get a partial word write just before the popfl). But btr is really pretty heavy operation for older CPU's (it's gotten better, but 32-bit code presumably cares more about the older CPUs). It really doesn't matter, I guess. The btr goes back to commit c2c9b52fab0d ("x86/entry/32: Restore FLAGS on SYSEXIT"). Andy? Linus