Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp636216yba; Thu, 18 Apr 2019 07:12:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyK0x85gB6CbOljRQZjr0JmfMdVy3KA2CcS4TE4bNYpbWf75zqK80zvXSM8GL1D/JWtcLR X-Received: by 2002:a17:902:bb84:: with SMTP id m4mr55932501pls.302.1555596755396; Thu, 18 Apr 2019 07:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555596755; cv=none; d=google.com; s=arc-20160816; b=gWuEtgJhZk5UOJFsJ1EkjU3O9gjbW90BnGlPKzPYkggHADyD39ghVcl5hsT0b0E8eH 4KiwNeKSmKklaZRde3gIG0J9m9IbCvTsCwiIybOcz8XcmWMYbPw8J78jNkogX7Ujdnes TnG5zl1KW4d6O/TL6CzRXc1iBf3DS9HO4s+WbK9tFJ6xT1hX7Hlg/gslkZAJf7E4ce4d rHa/FTfhsj1FPIvZIJUwN/UYjL+8r2U4FImQh6kXfd2S61Fv1H6WdNW2XCl+wkjf/0la 6Y13D0JG7HbmTtGVOkiClNxDqWhRxmQEV2B7C//IGX2oIlo1PApZ4OC2LH5rNs7SeHZM FCqQ== 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:dkim-signature; bh=M5siCfHP6BRRv+5HIBdrYDPCmhboYZvbHLTv7FcSa9I=; b=Vg2oerLtFX+nZwfBpfysjoW3PPmyGXgMGjU6Aby/jtR5ZstKakQ3B0H/8zuaplEDR7 LsEyMHVHyfzNkkdxo1B0nnhdUkvatsnGSuRtu/CmeAsc5Ur2MB8mnckFzjEw5SoNHE3z 73PdA2M8omQg3Pbl97gU/DzzZTFS+PU0IM96VxFP8xj09iRmcw6iq07XTTUiV2pGXnq2 M+fMsSYxTNc6AwFTa8qLIJkHA1RCh7EzgA92fq7EoOE8GJM+bzBznklLOmcnhdb0IsdI iSYcWTVehG/cjLCgrssxNnbEZm541vmB29AQMObrFbPBBoOlCLO6B1eWONz4fSzuMzki xrCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JyY+dwTc; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30si2355533pld.342.2019.04.18.07.12.20; Thu, 18 Apr 2019 07:12:35 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JyY+dwTc; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389353AbfDROJ4 (ORCPT + 99 others); Thu, 18 Apr 2019 10:09:56 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46503 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388346AbfDROJz (ORCPT ); Thu, 18 Apr 2019 10:09:55 -0400 Received: by mail-lf1-f66.google.com with SMTP id k18so1725425lfj.13 for ; Thu, 18 Apr 2019 07:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=M5siCfHP6BRRv+5HIBdrYDPCmhboYZvbHLTv7FcSa9I=; b=JyY+dwTc08oWjbHxleqxC0ncbbwBF4oMaUwb7ZCNU2WOmjt/quOO1tXrYYzyCyutWC MkvSFQRQoEJiuaxY+6kKHQ2sPvWcr/lTFjEAPqtPCCw6/sdbzvAQtu3yULUJXzxjtibv 8k+Bw0sQElny79mVcnmTijLpGjhiWs5PBh+zGVPdwy55UvoYI8pQh9iz4EHXM7qIkVQ4 BP2CMdn13gGWO3tBbgNChg+k4K5HlKLv9mwaxLirITdao27RB6hCdgcr46bV/al1mi3c OFJDIPBad2L1bYlzkHvi0VOYFEe+orW4Z6SP+qxgZvI6KDeMcCsUYeO+dTau1Y0x0oCx vcfg== 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:content-transfer-encoding :in-reply-to:user-agent; bh=M5siCfHP6BRRv+5HIBdrYDPCmhboYZvbHLTv7FcSa9I=; b=FBvAsxp7POj8TmE/Zlgt9LpRM72ZkRJNEhS58PSNwQwmM1sBfc4uQwO8Rdo7eQtGw1 oIHZhiHJqDz3Z8Kyf5o8lY8ccOHrlhq8/kBPk66seKTVwZc/bjC3KwYW7mJvtrz9+3ak yofTuZ/OxWYUUBTwQfEoyyvYG1oP5d294CYP8GQ/yLAp2gqMIVGF1wdORFUAwrNx1Pbt NKSa5iC0HqIab+Yq0ZB7SWlJkKbWa7FeJ4mFC+d1/KJg3/48h3s0JGgfDsWAQm5wJScy BZ3qClzox9LLQFfAAiLpifzBAyInEppacN+I8BrRH6hKDI/LoRPllIvDouH9Rg6k0K3u Bgsw== X-Gm-Message-State: APjAAAWT+mpLg6SpOZqIBLTxG/SkzEixeXeT5WjtEvzQmdnldyn7m3BT lujtjQFEo1nQoOa1r2DJ120= X-Received: by 2002:a19:f001:: with SMTP id p1mr9821667lfc.27.1555596593484; Thu, 18 Apr 2019 07:09:53 -0700 (PDT) Received: from uranus.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id 30sm471858lfr.22.2019.04.18.07.09.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 07:09:52 -0700 (PDT) Received: by uranus.localdomain (Postfix, from userid 1000) id 06858460E0B; Thu, 18 Apr 2019 17:09:52 +0300 (MSK) Date: Thu, 18 Apr 2019 17:09:51 +0300 From: Cyrill Gorcunov To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: mhocko@kernel.org, akpm@linux-foundation.org, arunks@codeaurora.org, brgl@bgdev.pl, geert+renesas@glider.be, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mguzik@redhat.com, rppt@linux.ibm.com, vbabka@suse.cz, Laurent Dufour Subject: Re: [PATCH] prctl_set_mm: downgrade mmap_sem to read lock Message-ID: <20190418140951.GH3040@uranus.lan> References: <20190417145548.GN5878@dhcp22.suse.cz> <20190418135039.19987-1-mkoutny@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190418135039.19987-1-mkoutny@suse.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 18, 2019 at 03:50:39PM +0200, Michal Koutn? wrote: > I learnt, it's, alas, too late to drop the non PRCTL_SET_MM_MAP calls > [1], so at least downgrade the write acquisition of mmap_sem as in the > patch below (that should be stacked on the previous one or squashed). > > Cyrill, you mentioned lock changes in [1] but the link seems empty. Is > it supposed to be [2]? That could be an alternative to this patch after > some refreshments and clarifications. Yes, seems so. From a glance the patch shold be ok. Michal will review it more carefully today. Thanks!