Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752647AbbFHM4M (ORCPT ); Mon, 8 Jun 2015 08:56:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39326 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932133AbbFHM4B (ORCPT ); Mon, 8 Jun 2015 08:56:01 -0400 Message-ID: <557590DC.8050703@redhat.com> Date: Mon, 08 Jun 2015 14:55:56 +0200 From: Denys Vlasenko User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Ingo Molnar 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] x86/asm/entry/32: Reinstate clearing of pt_regs->r8..r11 on EFAULT path References: <1433701470-28800-1-git-send-email-dvlasenk@redhat.com> <20150608065003.GA28899@gmail.com> In-Reply-To: <20150608065003.GA28899@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 803 Lines: 20 On 06/08/2015 08:50 AM, Ingo Molnar wrote: > * Denys Vlasenko wrote: > >> I broke this recently when I changed pt_regs->r8..r11 clearing logic >> in INT 80 code path. >> >> There is a branch from SYSENTER/SYSCALL code to INT 80 code: >> if we fail to retrieve arg6, we return EFAULT. Before this patch, >> in this case we don't clear pt_regs->r8..r11. >> >> This patch fixes this. The resulting code is smaller and simpler. > > So how did you notice this bug - through actual info leak testing, or review? By reviewing my own patch. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/