From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757581AbaHGRN6 (ORCPT ); Thu, 7 Aug 2014 13:13:58 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46311 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757335AbaHGRN4 (ORCPT ); Thu, 7 Aug 2014 13:13:56 -0400 Date: Thu, 7 Aug 2014 10:13:55 -0700 From: Greg Kroah-Hartman To: Luis Henriques Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Brian Gerst , "H. Peter Anvin" , Konrad Rzeszutek Wilk , Borislav Petkov , Andrew Lutomriski , Linus Torvalds , Dirk Hohndel , Arjan van de Ven , comex , Alexander van Heukelum , Boris Ostrovsky Subject: Re: [PATCH 3.10 12/27] x86-64, espfix: Dont leak bits 31:16 of %esp returning to 16-bit stack Message-ID: <20140807171355.GA28896@kroah.com> References: <20140805181344.268039690@linuxfoundation.org> <20140805181344.629775899@linuxfoundation.org> <20140806151620.GD12150@hercules> <20140806152417.GB15463@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140806152417.GB15463@kroah.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 On Wed, Aug 06, 2014 at 08:24:17AM -0700, Greg Kroah-Hartman wrote: > On Wed, Aug 06, 2014 at 04:16:20PM +0100, Luis Henriques wrote: > > On Tue, Aug 05, 2014 at 11:14:04AM -0700, Greg Kroah-Hartman wrote: > > <...> > > > @@ -188,17 +193,21 @@ static void note_page(struct seq_file *m > > > /* > > > * Now print the actual finished series > > > */ > > > - seq_printf(m, "0x%0*lx-0x%0*lx ", > > > - width, st->start_address, > > > - width, st->current_address); > > > - > > > - delta = (st->current_address - st->start_address) >> 10; > > > - while (!(delta & 1023) && unit[1]) { > > > - delta >>= 10; > > > - unit++; > > > + if (!st->marker->max_lines || > > > + st->lines < st->marker->max_lines) { > > > + seq_printf(m, "0x%0*lx-0x%0*lx ", > > > + width, st->start_address, > > > + width, st->current_address); > > > + > > > + delta = (st->current_address - st->start_address) >> 10; > > > + while (!(delta & 1023) && unit[1]) { > > > + delta >>= 10; > > > + unit++; > > > + } > > > + seq_printf(m, "%9lu%c ", delta, *unit); > > > + printk_prot(m, st->current_prot, st->level); > > > } > > > - seq_printf(m, "%9lu%c ", delta, *unit); > > > - printk_prot(m, st->current_prot, st->level); > > > + st->lines++; > > > > > > /* > > > * We print markers for special areas of address space, > > > > Hmm... the original commit has a 2nd hunk here that does seem to be > > applicable to 3.10. Was this dropped accidentally or on purpose? > > I don't remember at all, sorry. What is the hunk that I missed? You are right, I somehow missed that, thanks. I've also now fixed up the ">> 10" change as well. Good thing this is just in debugging code :) thanks, greg k-h