Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7109846ybi; Thu, 13 Jun 2019 09:42:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxY91teNztZVBC6FoaF185230s53FHeQlE7fqgA4M6rH+u35kBtMyRIJhda1MJDwXn4nW7p X-Received: by 2002:a65:620a:: with SMTP id d10mr31571633pgv.42.1560444175196; Thu, 13 Jun 2019 09:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560444175; cv=none; d=google.com; s=arc-20160816; b=WWZ9HsrYrYbiddAg8x5rtMjUE7TUlCE/hCm5sLInT8jdCs3vL6OA1HbDg42CjaWdt7 j9+Pn1OZ3lu8gUbqzhVSwhMnZD7SzB1HC+uExUnrrchB8MZfBPpjdB8Yw3jkwaZKZdlj CuZiGq610XR4wLNfZsh/QNwViK6Hw/pjBUPZbhJURrzXfi7Z0cqkA1xrw7TVGQWiANg/ wb9QXiv9ZYaP6VgZ4Bf0Brn432iEOuysKy2c7TLHOagqk8cOdTP0zJolep08dLsppBgk 1GUQ8GVUI4UibNzcleyAQ4u4QiRdk6i6A7zCCgF3lSZtwhJ5IQa0Okso2OnOOL1iK3va Xehg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lv9nqSLtCZiZ8ahiodoBv8WyJCmSbiyt0thoq18zE4o=; b=gws6thtLdop4IcRuufSp7GzOq/JR8/BVlB4Rli9ep02tz1P45iI/tRA6OMxIvC5rvN j0my6JcPlz3PT7UUNiva6qr7iTQIPB9/3n5lsOHqOrhvvkKKmn+dV0XgJBjKHpD8xbri Cymwsb7e5dgLXkESZ466ual/l6S9InWLmw1w++WSd/KFklf7uGeKYtM5yOxfTU+OWyMq Ceex0QL5Vq6YjYYU3YFjPIcQDUrep7hWllGhyPC6jyvJPpSOX0fGq+HFsJNaAEfDs+q1 tw59tzQZ4ygazDpH9eO6qlUTCvuApME8knpYAjLaq5SCbuZmtVWTN/UErxxXfSG7XF6D A9uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nZ7PQjew; 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 59si84476plp.90.2019.06.13.09.42.40; Thu, 13 Jun 2019 09:42:55 -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=nZ7PQjew; 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 S1732791AbfFMQmg (ORCPT + 99 others); Thu, 13 Jun 2019 12:42:36 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:45321 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726551AbfFMGsU (ORCPT ); Thu, 13 Jun 2019 02:48:20 -0400 Received: by mail-lj1-f194.google.com with SMTP id m23so17351568lje.12 for ; Wed, 12 Jun 2019 23:48:18 -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:in-reply-to:user-agent; bh=lv9nqSLtCZiZ8ahiodoBv8WyJCmSbiyt0thoq18zE4o=; b=nZ7PQjewhkNFLJJFS9CWkoOR/2SEzVmnFe8JrDQZP9WGcZpfUm4TWzaVR34kqgOkM6 PSejsxPi0NXyf4QlD5sX4JIbnQfXedVnig36j74X1SFYqDWGSabvXNjxjGVLIXkawcuU FLxHCMmbItnJk/+HFhcv2buBYqTCBeda6PFTmID1zVJDHxvH+2FvmDkY//qUdtytA1rY XAU372/eZO1vArF8Nvb3ESlmzJwhIz6vNWOMU+IhBUUih36nYQRORDh23Fhe5qPHSqz9 W5zZSLTxbnEjMPo5VqL3HJlKMAhbO5g/ZW2HDfLWl0duR2ldpc2FeL0NApW675/Lripg kkbA== 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:in-reply-to:user-agent; bh=lv9nqSLtCZiZ8ahiodoBv8WyJCmSbiyt0thoq18zE4o=; b=FzuLvKCG9ECr7y2LfWAZZPa7TCXF9BUM4Zpq2CCzwpuymtVAui3ql/Hj7HGTsqZi7I SWRqJl/VOOfvnkaOSD0XeajS+8tbfjoJ/xqCa24fWpMezHVMZDYg0J0ruzFC7W3gaeyf gSWCXgt29xIRYAUMFA5tMtbjyssD9SK6pr8PwhguGr0Z/9ZY54dEyCDzTN3ODiAO8084 vSpLfgkGMM72Zx6/wkiGtTyUFCCIKoAXDXl+d2GDtgnj6wf6AXu7cz7h039SAjciQ0MA uyLG4H4UiUe8DJPBa08dRpDaDN6lTUCZUtAcxXAlJcPpqfxIF6pMZ2U3taELr9c7o/8t TQYw== X-Gm-Message-State: APjAAAWdEWfqq8SluT/OPYpfTbOtxDhhXF5tl2vL49uk915qaocVKwF3 tIiuqD1zF9qyBLT09tEXQr8= X-Received: by 2002:a2e:2c07:: with SMTP id s7mr6057511ljs.44.1560408498002; Wed, 12 Jun 2019 23:48:18 -0700 (PDT) Received: from uranus.localdomain ([5.18.102.224]) by smtp.gmail.com with ESMTPSA id y18sm396934ljh.1.2019.06.12.23.48.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 23:48:17 -0700 (PDT) Received: by uranus.localdomain (Postfix, from userid 1000) id D702646019C; Thu, 13 Jun 2019 09:48:16 +0300 (MSK) Date: Thu, 13 Jun 2019 09:48:16 +0300 From: Cyrill Gorcunov To: Andrei Vagin Cc: Konstantin Khlebnikov , linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org, Oleg Nesterov , Matthew Wilcox , Michal Hocko , Kirill Tkhai , Michal =?iso-8859-1?Q?Koutn=FD?= , Al Viro , Roman Gushchin , Dmitry Safonov Subject: Re: [PATCH v2 5/6] proc: use down_read_killable mmap_sem for /proc/pid/map_files Message-ID: <20190613064816.GF23535@uranus.lan> References: <156007465229.3335.10259979070641486905.stgit@buzz> <156007493995.3335.9595044802115356911.stgit@buzz> <20190612231426.GA3639@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612231426.GA3639@gmail.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 Wed, Jun 12, 2019 at 04:14:28PM -0700, Andrei Vagin wrote: > On Sun, Jun 09, 2019 at 01:09:00PM +0300, Konstantin Khlebnikov wrote: > > Do not stuck forever if something wrong. > > Killable lock allows to cleanup stuck tasks and simplifies investigation. > > This patch breaks the CRIU project, because stat() returns EINTR instead > of ENOENT: > > [root@fc24 criu]# stat /proc/self/map_files/0-0 > stat: cannot stat '/proc/self/map_files/0-0': Interrupted system call > > Here is one inline comment with the fix for this issue. > > > > > It seems ->d_revalidate() could return any error (except ECHILD) to > > abort validation and pass error as result of lookup sequence. > > > > Signed-off-by: Konstantin Khlebnikov > > Reviewed-by: Roman Gushchin > > Reviewed-by: Cyrill Gorcunov > > Reviewed-by: Kirill Tkhai > > It was nice to see all four of you in one place :). Holymoly ;) And we all managed to miss this error code. Thanks, Andrew!