Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4218369pxk; Tue, 29 Sep 2020 18:39:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvC8qet9a2tKi0UsQwI1MMvW7cNkV/5llp+n2gqHwjfsamKhMpdVxB8hd/zldqXgTZvs/5 X-Received: by 2002:a50:eb92:: with SMTP id y18mr248215edr.373.1601429944048; Tue, 29 Sep 2020 18:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601429944; cv=none; d=google.com; s=arc-20160816; b=KZFeMKIfJijFok8xzKQByt9mRaGGYJd1BWwaHHs6kwSqQMiSblCwqtWpD/rbNMvgeh 4GS7penuwhsNaGiwbsoVma356Wi7GZ85nvwfKhGwzWRc37+bNXBwG1GwvOZN+ch79LfI ZcaKq4HrWH2u15pvo+LI2tT+uOlf420PbpQNdfQ7FrPN5mwKcuspHPxZNGasjfc6l5zn 3qx0HP8hshy2nuhSvmdjqTUwLyBb8Fxmc6DmwLo4LnRy/puN+gF+KqqFbV9SF10gOw/H mlv7SKl/MpH4QxlzWg9so3eUFUx+WPA2DwJAaUjp3TjxNLtMhGGOgHQXh6m5hHgjpd1p C3tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZtFBpYGVBWcjph4+4nRslST7ms1gG/x8RojOlPP7OMI=; b=EdJvFp7retITzak5FjoKUsRK6iG0jAGkXViN1GnpwikmgwhOopw2//zNXalQloNw5N y0gVGZozj4vA0bg/uDN4ls4yzx+yeRaQUpgRuGaNUvtwRXPsDY7VhwGnk5K8RajEmypl KWfg77vD4DpGIMR4wRAcKX8GudbyazMnKcVY7Vd16vI5dLa7b5vrnptpUNUTiXiETGnZ ho3zbxFZY6/SqhGsM+srCStRshWCkr79z8NsZXZnFsVa4WF0gwjZn54615iA1kDmWMQu Zv0HMXpoZgfUSQp667CiOnZYmxjeKev76UbTw1fJhsNx5Vf98WtnWflPtS6K4AINKmjE r7YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mMaVeS2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f3si157507ejt.743.2020.09.29.18.38.41; Tue, 29 Sep 2020 18:39:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mMaVeS2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729448AbgI3Bfm (ORCPT + 99 others); Tue, 29 Sep 2020 21:35:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728539AbgI3Bfm (ORCPT ); Tue, 29 Sep 2020 21:35:42 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0992C0613D1 for ; Tue, 29 Sep 2020 18:35:41 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id h26so434525ejq.3 for ; Tue, 29 Sep 2020 18:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZtFBpYGVBWcjph4+4nRslST7ms1gG/x8RojOlPP7OMI=; b=mMaVeS2APZBDIkB70hEoyZsmnOJIMwL4dMiwBOlw2Wcqx+bIM2L3UFWbnblFrcDMMf tGDh4GAOiOS4TTUizsZKZm2wLJigNPuFTg0j5MWzRoOVm5SbwhoZiXamc/zsvEHcMMks Vjtcc9tyy1bptHezM8TH7zV0IoH+ujpswDfG3sDItcxD/CydRfOaKkjF8iyA5E+J4R0/ rKw7jnQ8jBiZ1EOWNceGU/p5i/Z8BZz4at0Gm3Qo1lTLo/2+4/e0UYm3RhSIlmPA1QwQ SLhDisyxG9Ilf1FtjF3sJtEh6mMGNTll3AL4/+Z+zQ7pdvLGiectYexUxB6r2xiBaRoI uBsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZtFBpYGVBWcjph4+4nRslST7ms1gG/x8RojOlPP7OMI=; b=pkQbHrLxWR26nfOnqL5mJpDyauH566zRp0z9MciGjfVc+tu/SE1CjJ+n5wSSCDrR3b u0rhU5Ci8esd/+X0k9PVUcvyCqfnqzbpK+/DSoE/qbeTvBUQiJim7fOi1qkPKZ6iN/qb Qj2peo9cRTqHQ/02MqUO8D+v61lchDtSMNZ+20gM/9xZoyrZrrPjw9B7OhgISj/u/NMA xY4ENfdUb9OVt9dyk8j+k2i2La7prAs+5Lytk6tBinfeDp1LQCpPr87KB+nlIa812oRi 3BYGZhu7BtlkOdJR5O4mLEzNyiKT3WYdgkGX2Jjg4K7NIY7+z+V7YJjBqa7FwCSHv4oj qe5Q== X-Gm-Message-State: AOAM531x7OydaSkV8JIlUL/AwYDyAiySCWa6iWsM+KgZNIBcnSPgdiXP pmRgqgWasKbQGOzqBdrcm4BLBI+qu+rYtF+S8i/FkJFRO0QD5Q== X-Received: by 2002:a17:906:c447:: with SMTP id ck7mr460541ejb.358.1601429740533; Tue, 29 Sep 2020 18:35:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jann Horn Date: Wed, 30 Sep 2020 03:35:14 +0200 Message-ID: Subject: Re: [PATCH 1/4] mm/gup_benchmark: Take the mmap lock around GUP To: Andrew Morton , Linux-MM Cc: kernel list , "Eric W . Biederman" , Michel Lespinasse , Mauro Carvalho Chehab , Sakari Ailus Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 3:19 AM Jann Horn wrote: > To be safe against concurrent changes to the VMA tree, we must take the > mmap lock around GUP operations (excluding the GUP-fast family of > operations, which will take the mmap lock by themselves if necessary). (Sorry, my mail setup messed up the In-Reply-To headers, so you may not see the patches threaded properly... let me know if you want me to resend.)