Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp565892ybd; Sat, 22 Jun 2019 09:27:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvwL0k1CD6rPi05okfYbwynfRbM9fpqh2VBqgaPmZddiTOuSfLYebOTlJ2a/HZuGTgcByV X-Received: by 2002:a63:fc61:: with SMTP id r33mr117585pgk.294.1561220868508; Sat, 22 Jun 2019 09:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561220868; cv=none; d=google.com; s=arc-20160816; b=0M4HcJ40TEIUvhy4k59TSZNIB+IN08rI9jHI346dnBJM5VPS3GmaptT1i/z3FbN/S/ qA1/lJ+Yi77i732uXY8/QDk0GZ8LQl7aJKC3v7IruiXQzepWhh9J9czxs4X/uuTb5Wbx tEAGmcV5LOqKBpBgzBdaVMU+1VNeQm8XfiDTWb7WsdXma6LN/T3JommyUMIuT6H6PmMQ o2i/sCjikpBbgxmxq3aCX8SO6IJseeYuRCGUar51kSWizV9ZkLM5uymrM91dj3KM/nIP 4584tk0uAQOOuiFZuY9xHchXlMPWtj1OV63Bo7sn6JvLNfK1aqVzuhWMgCZi4HwUPaHk 7l8Q== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6Y/c9aJoxLvC0oyo3aUyMtbyYhR6zYbFacJlu6BT2tA=; b=H+oMmzHSkIWqckOOD6H3vXRWv9oH252LAkJfBKPWDmKlNTg1g/bV3irrKCihaj+Kt6 HS9TBhtGHMTLH+kvwDLg2eNphldjv/h+N+EmA+T5a9+jxlqoU/wKbrj7asuYYq/xIxPo nljzOfAAawhXcoOkDdheQfnw6oRc62AXSmFj2WnosOtlAYe2RQeLnZmYmL9ExNVkQXB3 UKb1M9I/l/vVXfRTcmSrEHsPia+d22BaS32XLLOW+TihHDfpsIBkEzilf89gO4HIrFFf qpYldj7yPdT6Vyd/Vv9uX48WpJ/LPbGIyLdTnMeVfr5XrczTiiIZQCpPkCWYeY/Qixqj FuFw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si5416348pgm.206.2019.06.22.09.27.19; Sat, 22 Jun 2019 09:27:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726331AbfFVQ1P (ORCPT + 99 others); Sat, 22 Jun 2019 12:27:15 -0400 Received: from mx2.suse.de ([195.135.220.15]:52884 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726276AbfFVQ1P (ORCPT ); Sat, 22 Jun 2019 12:27:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7A142AE56; Sat, 22 Jun 2019 16:27:13 +0000 (UTC) Date: Sat, 22 Jun 2019 18:27:10 +0200 From: Michal Hocko To: Ajay Kaher Cc: Greg KH , "Stable tree ," , "Jason Gunthorpe ," , "linux-mm@kvack.org, LKML ," , "Andrea Arcangeli ," , "Jann Horn ," , "Oleg Nesterov ," , "Peter Xu ," , "Mike Rapoport ," , "Andrew Morton ," , "Linus Torvalds ," , Joel Fernandes Subject: Re: [PATCH stable-4.4 v3] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping Message-ID: <20190622162710.GA15805@dhcp22.suse.cz> References: <66C05D07-4075-400D-832C-C82120C93922@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <66C05D07-4075-400D-832C-C82120C93922@vmware.com> 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 22-06-19 06:30:37, Ajay Kaher wrote: > > > On Mon, Jun 17, 2019 at 08:58:24AM +0200, Michal Hocko wrote: > > > From: Andrea Arcangeli > > > > > > Upstream 04f5866e41fb70690e28397487d8bd8eea7d712a commit. > > > > > > Signed-off-by: Michal Hocko > > > --- > > > drivers/android/binder.c | 6 ++++++ > > > drivers/infiniband/hw/mlx4/main.c | 3 +++ > > > fs/proc/task_mmu.c | 18 ++++++++++++++++++ > > > fs/userfaultfd.c | 10 ++++++++-- > > > include/linux/mm.h | 21 +++++++++++++++++++++ > > > mm/mmap.c | 7 ++++++- > > > 6 files changed, 62 insertions(+), 3 deletions(-) > > > > I've queued this up now, as it looks like everyone agrees with it. What > > about a 4.9.y backport? > > Greg, it's here please review. > https://lore.kernel.org/stable/1561208539-29682-1-git-send-email-akaher@vmware.com/T/#m53eaf6e687cb27e46395173aa74a85c2ccb5c190 > > Michal, patched for binder code Thanks, would you like to suggest > if mmget_still_valid check require anywhere for khugepaged code. khugepaged patch has gone its own way. See 59ea6d06cfa9 ("coredump: fix race condition between collapse_huge_page() and core dumping") -- Michal Hocko SUSE Labs