From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f199.google.com (mail-io0-f199.google.com [209.85.223.199]) by kanga.kvack.org (Postfix) with ESMTP id 6EC0B6B0005 for ; Wed, 18 Apr 2018 20:02:04 -0400 (EDT) Received: by mail-io0-f199.google.com with SMTP id y4-v6so3069969iod.5 for ; Wed, 18 Apr 2018 17:02:04 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 185-v6sor1371987itw.107.2018.04.18.17.02.03 for (Google Transport Security); Wed, 18 Apr 2018 17:02:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <87k1t4t7tw.fsf@linux.intel.com> References: <1523892323-14741-1-git-send-email-joro@8bytes.org> <1523892323-14741-4-git-send-email-joro@8bytes.org> <87k1t4t7tw.fsf@linux.intel.com> From: Linus Torvalds Date: Wed, 18 Apr 2018 17:02:02 -0700 Message-ID: Subject: Re: [PATCH 03/35] x86/entry/32: Load task stack from x86_tss.sp1 in SYSENTER handler Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Andi Kleen Cc: Joerg Roedel , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , the arch/x86 maintainers , Linux Kernel Mailing List , linux-mm , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli , Waim@linux.intel.com On Wed, Apr 18, 2018 at 4:26 PM, Andi Kleen wrote: > > Seems like a hack. Why can't that be stored in a per cpu variable? It *is* a percpu variable - the whole x86_tss structure is percpu. I guess it could be a different (separate) percpu variable, but might as well use the space we already have allocated. Linus