Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2075529ybi; Sun, 9 Jun 2019 03:10:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiN5NgtzYpeqyfvpbti9Rh5weZEl/k4teL8EO2UEL++b5UrczZM9e1oUUqTFYK2y1ezb5L X-Received: by 2002:aa7:8d4d:: with SMTP id s13mr59806523pfe.259.1560075015006; Sun, 09 Jun 2019 03:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560075014; cv=none; d=google.com; s=arc-20160816; b=QB6XhfZmt4emYtLQwxTZYwiY1P39z1Rl1YOefpXXC250pkk4xkWueRuPbHLcjSxIgs WxnvW1t2P0Qr4N8sU2ijLYKMjEEfXfIdteluvek7UAolcgaLsBg1NZgsE6KPxS0v52Kp /JMxWeO91cRapMveeZj+amVTZgSPrE3SkOAxXuZQyu21rfC62xwPRV+Ak9Wv/JlI+lrD 15HwY6UHlUVqFcDRicXAa8AusqZJ4k/86S2FuH2fC2SM4hh36dYgVZHAiLp2iY5iYnzH P7W4ZDfgV6DC/igaoK48A9O4FfYWhtInfZXFmJFN0S4iQ5SLtzvyzGsdH05FVq2Iih+W I2ig== 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 :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=A1Nf6U0SvfT2BlL//D1jO+fs0ZHFTGiIegZYeSRr5dQ=; b=LogMw9SbKSIzTEp4SwtSPAGh5snuqyZOnacrdBQBI8CgGAkePhpvG3SPvn1fi7Q1yk 6ZpgX/kMv+Ax+gePaoStUdStYv84bozWYodpifA8HWogK8LOGwtGVfv7bXdHgJWJjykz DWtone2VvQbR88C/XR0QIcc6ey4EsM19LM8H5GbpgiRY/4lGubjLmbTrvzXEb7oluda4 keFJziNp7mXxBvFsLvhJ2iMI1FlVKGHbJRIaV0NWctMcLFVn32kPTSb9EGkBFDK/2Mqt s9TijdwHHj2+k5KPH+0jjF80A0T0OwxB0IULTg9SjJRqUhowFJyXw2m1Wpk8/GxNDnp0 jHpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=SA+8YOG3; 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=NONE dis=NONE) header.from=yandex-team.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si6998953pff.62.2019.06.09.03.09.58; Sun, 09 Jun 2019 03:10:14 -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=@yandex-team.ru header.s=default header.b=SA+8YOG3; 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=NONE dis=NONE) header.from=yandex-team.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728068AbfFIKIy (ORCPT + 99 others); Sun, 9 Jun 2019 06:08:54 -0400 Received: from forwardcorp1p.mail.yandex.net ([77.88.29.217]:56412 "EHLO forwardcorp1p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727853AbfFIKIx (ORCPT ); Sun, 9 Jun 2019 06:08:53 -0400 Received: from mxbackcorp1j.mail.yandex.net (mxbackcorp1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::162]) by forwardcorp1p.mail.yandex.net (Yandex) with ESMTP id 72C702E1466; Sun, 9 Jun 2019 13:08:50 +0300 (MSK) Received: from smtpcorp1p.mail.yandex.net (smtpcorp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:10]) by mxbackcorp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 2urtvvwpVi-8nOa9Lfg; Sun, 09 Jun 2019 13:08:50 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1560074930; bh=A1Nf6U0SvfT2BlL//D1jO+fs0ZHFTGiIegZYeSRr5dQ=; h=Message-ID:Date:To:From:Subject:Cc; b=SA+8YOG3X58lzzkWQxUgsq5XNkRaEMhVLAik6vgAWA+LyhIPHKXPgzRv8MpB3TJ+w F7x2Xwlkvj1bevytfO9ytA3lDrG88xYiiYv6hgsvKmZnnN5adJyE7z06mM4GmclYnh bNGsFLf3hPwpIcii0K+apf2qgVIRyuqYMl5gDgpM= Authentication-Results: mxbackcorp1j.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Received: from dynamic-red.dhcp.yndx.net (dynamic-red.dhcp.yndx.net [2a02:6b8:0:40c:3d25:9e27:4f75:a150]) by smtpcorp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 4GNAteVf4o-8ngWxpn4; Sun, 09 Jun 2019 13:08:49 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Subject: [PATCH v2 0/6] mm: use down_read_killable for locking mmap_sem in proc From: Konstantin Khlebnikov To: linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org Cc: Oleg Nesterov , Matthew Wilcox , Michal Hocko , Cyrill Gorcunov , Kirill Tkhai , Michal =?utf-8?q?Koutn=C3=BD?= , Al Viro , Roman Gushchin Date: Sun, 09 Jun 2019 13:08:49 +0300 Message-ID: <156007465229.3335.10259979070641486905.stgit@buzz> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v1: https://lore.kernel.org/lkml/155790967258.1319.11531787078240675602.stgit@buzz/ v1 "mm: use down_read_killable for locking mmap_sem in access_remote_vm" https://lore.kernel.org/lkml/155790847881.2798.7160461383704600177.stgit@buzz/ changes since v1: * update comments and collect acks/reviews. --- Konstantin Khlebnikov (6): proc: use down_read_killable mmap_sem for /proc/pid/maps proc: use down_read_killable mmap_sem for /proc/pid/smaps_rollup proc: use down_read_killable mmap_sem for /proc/pid/pagemap proc: use down_read_killable mmap_sem for /proc/pid/clear_refs proc: use down_read_killable mmap_sem for /proc/pid/map_files mm: use down_read_killable for locking mmap_sem in access_remote_vm fs/proc/base.c | 27 +++++++++++++++++++++------ fs/proc/task_mmu.c | 23 ++++++++++++++++++----- fs/proc/task_nommu.c | 6 +++++- mm/memory.c | 4 +++- mm/nommu.c | 3 ++- 5 files changed, 49 insertions(+), 14 deletions(-) -- Signature