Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4623852yba; Tue, 30 Apr 2019 01:20:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9eiWQuQA1iojZxofXevy843D3PHtt78MyD+OeXArM+vbMP7PvW/9pV0/PZS2wzEmGxm4R X-Received: by 2002:aa7:8190:: with SMTP id g16mr22763918pfi.92.1556612435925; Tue, 30 Apr 2019 01:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556612435; cv=none; d=google.com; s=arc-20160816; b=xmGLQaBBjKHYAjUYcMm6hSDKr94QlFxnjbhNxIInonFifu3uBdFUMvMp4keRUAb13e cIh5sNM24I76XgcZ/E057AcvmyHohrq6/h1ZaVFZ6WjlkqJMnfmfViVHrqG5px03UPpg nubWNXJRx37+5laRDAwkR6xgQM511AQHIULD+sMRh/OfhF+GaEuJFukzc6Rc9u5jV7lV HfbLT8QzYl/5JTBA0Ytrv6etrGgtzZi5flAc4Rf9uIRSCOzZczey/O4xk68X8PwMM27d U4rcqiMEVzs6Axuc2GMTASC3BbNNbxmn/esI/Dbhl+Pkl/g3Cwrv1ppxsDH+gDLW3FCJ m1lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LzrBFyiCT3NW6gf4dZLakChxDJCS2ayk4FCGvycr/8I=; b=j9C/HYgC5M10WyOkdAo6LU0zpEQEFWJnEfZbMNjF60saP21NLzIDbhAsrh8tFftGsA fL5fXyhij/S01w3j/vYuxGTlCDW/TzYmuHS0EQXFPZR9mVpEKRGP5ea+Q5+7xwPM6xpa Bkcfwyn98V8j/pTpXVPoVP/WYs2++sGYIjt++ihPZSuZAIYaoWFNjtLsYbs8tfRkW9LO MRrqToIwc8muYZ7P1q8bF80Y1eb2Ooq1VtnoJ7ve/KUzLlkCjZhawgUd0gDdCiw90Xgz OrkaoHCC3i1w93y4fD2LDL0w71pDKWeabGQA6VTUxEFrOGmnhh0WTaqge4f44KWaGbag t0Fg== 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 h19si3612420pgg.125.2019.04.30.01.20.20; Tue, 30 Apr 2019 01:20: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; 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 S1726586AbfD3IT0 (ORCPT + 99 others); Tue, 30 Apr 2019 04:19:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:55528 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726202AbfD3IT0 (ORCPT ); Tue, 30 Apr 2019 04:19:26 -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 B7A6FAE3F; Tue, 30 Apr 2019 08:19:24 +0000 (UTC) From: =?UTF-8?q?Michal=20Koutn=C3=BD?= To: gorcunov@gmail.com Cc: akpm@linux-foundation.org, arunks@codeaurora.org, brgl@bgdev.pl, geert+renesas@glider.be, ldufour@linux.ibm.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mguzik@redhat.com, mhocko@kernel.org, mkoutny@suse.com, rppt@linux.ibm.com, vbabka@suse.cz, ktkhai@virtuozzo.com Subject: [PATCH 0/3] Reduce mmap_sem usage for args manipulation Date: Tue, 30 Apr 2019 10:18:41 +0200 Message-Id: <20190430081844.22597-1-mkoutny@suse.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190418182321.GJ3040@uranus.lan> References: <20190418182321.GJ3040@uranus.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello. (apologies for late reply) I've aggregated the two previously discussed patches into one series and based on responses made some changes summed below. v2 - insert a patch refactoring validate_prctl_map - move find_vma out of the arg_lock critical section Michal Koutný (3): mm: get_cmdline use arg_lock instead of mmap_sem prctl_set_mm: Refactor checks from validate_prctl_map prctl_set_mm: downgrade mmap_sem to read lock kernel/sys.c | 55 ++++++++++++++++++++++++++++--------------------------- mm/util.c | 4 ++-- 2 files changed, 30 insertions(+), 29 deletions(-) -- 2.16.4