Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4620005imm; Sat, 25 Aug 2018 23:07:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbbNCWaltea5uRGUps67b2P6ISQBEpZlQyJ0j/gEGpXA8rgAbiohGmbTBOe/gdgPpFvkQKG X-Received: by 2002:a63:b208:: with SMTP id x8-v6mr7996793pge.401.1535263664922; Sat, 25 Aug 2018 23:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535263664; cv=none; d=google.com; s=arc-20160816; b=oAyPJVnWM/fxpMJ1a1NPtMC0ShkU3IO6ufZWFEXGi1KF8mWdmlnZvJE49KMNPkTXFO PTgb44XEgGwdbfJJYkrHeAaeCO+8ltTSpscFanoA2kAK4jDygNAC2hjVyf7EZ59pg/WI a4UiCzuqo4ogiFSGm2mFCsYTtGLcYlKril6W5QzsSVWTxCKznsQtXvC8+4AsDkAThOJ/ jcM4qAmT+Sy4/Ph1XT/1Blih3GAajqoS0ptsLrHmORRjXm6tuLvaw+da8imei+RhA/sH KNsU1Ab0e5jf49pNlqFuycqe8W5nhnVLmqAWha4AYZHamt2HS4FHySjbx+/l5z4h+irY LyhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=58TOp3Z6XfU3jvTHWjbFuZ7fX744zw/bSSGdL4Ymwqo=; b=tT3NBMO5aNiRlFDS2XqeNTv1+pi4U3IeJ+AIi9erDM52waDJsUy2UysqUXHUGTyQFQ 3r+9wZ8CxphagYP2EKuIcTSW6nLkRmy/Tw2MftK5eLqRsl1BdrVSDZD9Go748xx/ZYhJ o8ZNleNIdMisYdjAFGHfLD19P+h9Tc1Z75p3ExmyYuCHtRTbZbDtDrEOcylXGWPL4DXF vJOOt/FQWvZpKG4xZXFMsmkbHSz1ExilehVcaXrxSPG8VWWMTaxpsCwiiGA/aXEmf/Nu zrOBZdDhjTq3FJPPf9KiM9cOi9QML6DbN9oU0s+OX4Ip6cyzp/LqwcVV5U2ypPZ+wRZj lWRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2-v6si11656964pgg.552.2018.08.25.23.07.27; Sat, 25 Aug 2018 23:07:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726523AbeHZJrq (ORCPT + 99 others); Sun, 26 Aug 2018 05:47:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51908 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbeHZJrq (ORCPT ); Sun, 26 Aug 2018 05:47:46 -0400 Received: from localhost (5355525A.cm-6-6b.dynamic.ziggo.nl [83.85.82.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B9D27707; Sun, 26 Aug 2018 06:06:15 +0000 (UTC) Date: Sun, 26 Aug 2018 08:06:12 +0200 From: Greg Kroah-Hartman To: Ben Hutchings Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Dave Hansen , Thomas Gleixner , Andrew Morton , Andy Lutomirski , Borislav Petkov , Brian Gerst , Dave Hansen , Denys Vlasenko , "H. Peter Anvin" , Linus Torvalds , Peter Zijlstra , Rik van Riel , linux-mm@kvack.org, Ingo Molnar , "Srivatsa S. Bhat" , "Matt Helsley (VMware)" , Alexey Makhalov , Bo Gan Subject: Re: [PATCH 4.4 037/107] x86/mm: Factor out LDT init from context init Message-ID: <20180826060612.GA21746@kroah.com> References: <20180723122413.003644357@linuxfoundation.org> <20180723122414.735940678@linuxfoundation.org> <1535154250.2902.63.camel@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1535154250.2902.63.camel@codethink.co.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 25, 2018 at 12:44:10AM +0100, Ben Hutchings wrote: > On Mon, 2018-07-23 at 14:41 +0200, Greg Kroah-Hartman wrote: > > 4.4-stable review patch.??If anyone has any objections, please let me know. > > > > ------------------ > > > > From: Dave Hansen > > > > commit 39a0526fb3f7d93433d146304278477eb463f8af upstream > [...] > > --- a/arch/x86/include/asm/mmu_context.h > > +++ b/arch/x86/include/asm/mmu_context.h > [...] > > +static inline int init_new_context(struct task_struct *tsk, > > + ???struct mm_struct *mm) > > +{ > > + init_new_context_ldt(tsk, mm); > > + return 0; > > +} > [...] > > This hides errors from init_new_context_ldt(), which is very bad. > Fixed upstream by: > > commit ccd5b3235180eef3cfec337df1c8554ab151b5cc > Author: Eric Biggers > Date: Thu Aug 24 10:50:29 2017 -0700 > > x86/mm: Fix use-after-free of ldt_struct > > Ben. Good catch, now applied, thanks. greg k-h