Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7186607yba; Thu, 2 May 2019 05:54:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbuZNP252sv0QAZ7nomZZmEdVmF2yP0+KhiXZsZDU3x8gvEQONwSqn5RGpfDBw7x0aFT75 X-Received: by 2002:a81:57cc:: with SMTP id l195mr2906648ywb.156.1556801659831; Thu, 02 May 2019 05:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556801659; cv=none; d=google.com; s=arc-20160816; b=oMxQnbPiyxEBfRFqUIFHJCyS2PspQA/5YgXmxH3GiUmNqncdwAmcuoDXPnkEP0oz8u waISJmhAmcdtkqBp3M44wkl3YTWBxtPA8pGOPJmoLjFoNlLoMIdnCtncMwDUogX7JKeU MHgd5HtKLPfeAO3OeHvrvcaILy8u4PCpUGHWuQFlAHiTWjXPx9AOMuUv9bs2GrSc+lmo UfkmHMVGp15AJECD8wnInWENqo7llo7tIq303z20uGEYH81IcgzlWT7npopV7kNvi8h+ zJWmIlngFatPL62+q6FPH3GwIat589jpx6Sj4uAKQ07suCQ1LqRAhi/gfjLA/9QKT/nU 3YwQ== 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=IUBMaIemPZgl+D4zOsC4haMjnlTeGL60MvB6fSw68e4=; b=c8gwZMol420EMy2RBx+q6BbsTUiDL3t118cTa9c9maf10QJKGvSZ+IeyGplaqVSlL1 f9wr++0SK5KWd+q6gMnH6iFs/j84NNB1S8kCIm9u7QMeS5EPBZiMIMaVs3eDKlx76U44 Cxx8SOoQ68l6E5HutiocSpvxEqcobvA9DjA22b77Uu8uBYTLHoOHMV/I6EETY70HNq7M eVdDhnGd8haE8EH70d7BK5apGVchbfBA65hDg7HJo2GlY0weryGPJkf/37a2eMxH/sbC YI9KQLx5CkYCx5jP+epd+89Dvf94DkilWV+O+AZLT7E2EvPifn/fMagBcpg8xGy4gHVD DdWQ== 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 w1si18578174ywi.30.2019.05.02.05.54.06; Thu, 02 May 2019 05:54:19 -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 S1726579AbfEBMw1 (ORCPT + 99 others); Thu, 2 May 2019 08:52:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:34552 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726324AbfEBMwP (ORCPT ); Thu, 2 May 2019 08:52: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 E2D22ADE0; Thu, 2 May 2019 12:52:13 +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 v3 0/2] Reduce mmap_sem usage for args manipulation Date: Thu, 2 May 2019 14:52:01 +0200 Message-Id: <20190502125203.24014-1-mkoutny@suse.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <0a48e0a2-a282-159e-a56e-201fbc0faa91@virtuozzo.com> References: <0a48e0a2-a282-159e-a56e-201fbc0faa91@virtuozzo.com> 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. Just merged the two dicussed patches and fixed an overlooked warning. v2 - insert a patch refactoring validate_prctl_map - move find_vma out of the arg_lock critical section v3 - squash get_cmdline and prctl_set_mm patches (to keep locking consistency) - validate_prctl_map_addr: remove unused variable mm Michal Koutný (2): prctl_set_mm: Refactor checks from validate_prctl_map prctl_set_mm: downgrade mmap_sem to read lock kernel/sys.c | 56 ++++++++++++++++++++++++++++---------------------------- mm/util.c | 4 ++-- 2 files changed, 30 insertions(+), 30 deletions(-) -- 2.16.4