Return-Path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:34767 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965971AbcKXPS0 (ORCPT ); Thu, 24 Nov 2016 10:18:26 -0500 Received: by mail-wm0-f68.google.com with SMTP id g23so5252682wme.1 for ; Thu, 24 Nov 2016 07:18:26 -0800 (PST) Subject: Re: [patch added to 3.12-stable] Fix potential infoleak in older kernels To: Linus Torvalds References: <20161122224029.29962-1-jslaby@suse.cz> <20161122224029.29962-14-jslaby@suse.cz> Cc: stable From: Jiri Slaby Message-ID: Date: Thu, 24 Nov 2016 16:18:23 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On 11/23/2016, 12:36 AM, Linus Torvalds wrote: > Seeing this patch again, I just realized that I think that the "=&" > asm constraint is unnecessary and probably makes for worse code (and > comes from an earlier thinko of mine). > > I should have just kept it as a plain "=", and the only important part > of this patch is this one-liner update to __get_user_asm_ex() > > On Tue, Nov 22, 2016 at 2:40 PM, Jiri Slaby wrote: >> >> @@ -384,7 +384,7 @@ do { \ >> asm volatile("1: mov"itype" %1,%"rtype"0\n" \ >> "2:\n" \ >> _ASM_EXTABLE_EX(1b, 2b) \ >> - : ltype(x) : "m" (__m(addr))) >> + : ltype(x) : "m" (__m(addr)), "0" (0)) > > where it adds that initialization of zero with the extra > > "0" (0) > > input. Ok, I still can change the patch as I have not released the kernel with that. So I am leaving only this single hunk and dropping the rest. thanks, -- js suse labs