Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1006896yba; Thu, 16 May 2019 12:33:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnXRq71DFHs5qhtV0pSsI5UpVdgqJU1YNDJMywPfHaJAaHLmBOa2BqMWfARPYxtVK12JQE X-Received: by 2002:a62:1692:: with SMTP id 140mr34419008pfw.166.1558035236338; Thu, 16 May 2019 12:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558035236; cv=none; d=google.com; s=arc-20160816; b=duIsItft6qOcaM4IvUxgQZoyEzxd8Zk5G5PezXTyjbleGpJYbcqiLwFKPV/YA8laSS DlADLL3uOTK1eMNvx42Ua93qA2XEMk4XGHryX370wDDdlaOk/TfInofaxnUP3YxZ51wE 8U+uoSIJrCoA2jBIj/P3AIB0OELU/mRntoeOmGOsZlQbYIEm/Eu20Cg/6Z/cXf9acuie i3L3BR+vRPP0fM4mfnnvEEDACKkURJXqerAq3meWNrHMf23PAHANtW+jXCfnrb059fZY bFRdo8xIbN4DZvuTI58qoN+xXSf/UAJ/3T4aQkMN5slvcU9GKTRFrgA/12lM1qfJZw6r LrSA== 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=bmJ3oGbhkIfE+oGMXz0i/1fqw7BH4scbuPzlcTLdX0o=; b=0WMsH0DtAiGNp7S2GdHuc48/TMMaJLqZa3R2KSgw4LyEW+ltrHv7DLndWfS5Zpgwmw K3xkzXLFRBK3NV15h7c9RtBUZM3piy/rND+8vDSF5AloLMGx6h801PF63IlsS9X3014Y WbIrc+UF4hjF5bxPOEbKJmgiTvSKMURNG0Efa09kEh5FAUH+hwtV+0vy/JU/sKEVWMeB ZTVZnJ1+75/d/LRw5MW1u641jB6v4nVGkHvs2MwbqEmWncaQ/giAOaN+cxGVPP0tD6cL Db5RI6oK6RXzB2A4h84Y/ygEvpoG0m1m3fbtT7VREicoH/JbJpDjV037yTux4v/sFCAW a7Qg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d65si5677113pgc.330.2019.05.16.12.33.40; Thu, 16 May 2019 12:33:56 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727103AbfEPQ3w (ORCPT + 99 others); Thu, 16 May 2019 12:29:52 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35799 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726964AbfEPQ3t (ORCPT ); Thu, 16 May 2019 12:29:49 -0400 Received: by mail-wm1-f68.google.com with SMTP id q15so4138276wmj.0 for ; Thu, 16 May 2019 09:29:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=bmJ3oGbhkIfE+oGMXz0i/1fqw7BH4scbuPzlcTLdX0o=; b=LqiV9D6Ghpb4aXnQor+QWgNaddHzAVkuW/6LpF+d4LvRNoQL6uujnn6+eV4DoVWMs4 Rh+QQZDwGK9eFp1H4RUOobWq14ylZcgktFfiLU8YNDzJwgDA1tmQBZQTTo055yZUlZZh PrpsvOstihWpMH/SGhjYTLh3Pmrre5SbjcqFjX3AageSqO64CJNauz1DgzA/2dNS/avz hKWDgyFtm1RvgfofWNgasScifHoer2bEs+Q0CFHKKvHDlgPj3ZkdzQY81ufj/o4xGTtR fBvT5a7+Qsm8zZTIIbjAiTt4YaKFETs2RnJv/hbmK1X59d4W4f1XVongAAd+Kvx/lA4B BNhw== X-Gm-Message-State: APjAAAUjlKbm7YaG1DdB/AM22tebYLRaP3CFVlVm3NJ0Ket46/8699C5 y0GrimIptKWXn9767I0dT465 X-Received: by 2002:a1c:e714:: with SMTP id e20mr18848944wmh.143.1558024187943; Thu, 16 May 2019 09:29:47 -0700 (PDT) Received: from localhost (cpc111743-lutn13-2-0-cust844.9-3.cable.virginm.net. [82.17.115.77]) by smtp.gmail.com with ESMTPSA id l8sm7695747wrw.56.2019.05.16.09.29.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 May 2019 09:29:47 -0700 (PDT) Date: Thu, 16 May 2019 17:29:46 +0100 From: Aaron Tomlin To: Jann Horn Cc: Oleksandr Natalenko , kernel list , Kirill Tkhai , Hugh Dickins , Alexey Dobriyan , Vlastimil Babka , Michal Hocko , Matthew Wilcox , Pavel Tatashin , Greg KH , Suren Baghdasaryan , Minchan Kim , Timofey Titovets , Grzegorz Halat , Linux-MM , Linux API Subject: Re: [PATCH RFC 4/5] mm/ksm, proc: introduce remote merge Message-ID: <20190516162946.zwzhxkft342b25pd@atomlin.usersys.com> References: <20190516094234.9116-1-oleksandr@redhat.com> <20190516094234.9116-5-oleksandr@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-PGP-Key: http://pgp.mit.edu/pks/lookup?search=atomlin%40redhat.com X-PGP-Fingerprint: 7906 84EB FA8A 9638 8D1E 6E9B E2DE 9658 19CC 77D6 User-Agent: NeoMutt/20180716-1637-ee8449 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2019-05-16 12:00 +0200, Jann Horn wrote: > On Thu, May 16, 2019 at 11:43 AM Oleksandr Natalenko > wrote: [ ... ] > > + } > > + > > + down_write(&mm->mmap_sem); > > Should a check for mmget_still_valid(mm) be inserted here? See commit > 04f5866e41fb70690e28397487d8bd8eea7d712a. Yes - I'd say this is required here. Thanks, -- Aaron Tomlin