From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754089AbbCQOlk (ORCPT ); Tue, 17 Mar 2015 10:41:40 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:35915 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752681AbbCQOli (ORCPT ); Tue, 17 Mar 2015 10:41:38 -0400 Date: Tue, 17 Mar 2015 15:41:33 +0100 From: Ingo Molnar To: Denys Vlasenko Cc: Linus Torvalds , Steven Rostedt , Borislav Petkov , "H. Peter Anvin" , Andy Lutomirski , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] x86/asm/entry/64: Remove unused thread_struct::usersp Message-ID: <20150317144133.GB18462@gmail.com> References: <1426599779-8010-1-git-send-email-dvlasenk@redhat.com> <1426599779-8010-2-git-send-email-dvlasenk@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1426599779-8010-2-git-send-email-dvlasenk@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Denys Vlasenko wrote: > All manipulations of PER_CPU(old_rsp) in C code are removed: > it is not used on SYSRET return, so storing anything there is > pointless. > > This also allows us to get rid of thread_struct::usersp, > which was needed only to set PER_CPU(old_rsp) for correct > return from fork/clone. > > Tweak a few comments as well: we no longer have "partial stack frame", > ever. So this doesn't really explain it very well, plus it still unnecessarily mixes up two changes in a single patch: please don't do that! I've fixed it all up and split up the patch into two, easier to bisect parts. Thanks, Ingo