Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2314777pxa; Mon, 17 Aug 2020 06:47:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAiBRW4oaIxOsX4ULnvRvcgGSGQLl2LX6ONm8iN9nZILIvM30/nZan9+ySgHEX3qhGW4xy X-Received: by 2002:a05:6402:3102:: with SMTP id dc2mr15264925edb.152.1597672049582; Mon, 17 Aug 2020 06:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597672049; cv=none; d=google.com; s=arc-20160816; b=VwcCgvjhE2QxL/xSLCB8D6YrzhAD6rrz6Ghlo/1ZT5mdiLHgKAGvA3RDplAL5IX+0n W+bRXLENsqt75a4J8oHtnbwf+mPd3gV3I5saOiDm+0SnjUl/tcl4KlUeiYcuzJVA8tVQ ME716toAXjXH5yc8k/WX3cHuq/XoAIP5sNNlCD0T2y1YpNW84whVTFgTQix/PERSeyfx 3etUXlGmo0PZ4RNRRMovyi3qCkZ1tU8gZvRVxN531duxct1tYB3fMhuzuxwGdHpjz2E6 R6X3Z4Auh4BynOT1d9w/uK3l2W8MIqX7agmOV7jVOfNaPiML7XQBym67QH7y9ENb9g4I MlAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YK1g7CpAj1uxdUMop0TAQ/KlG7NubSk4gl7YMK07x3k=; b=MTRl8hk1Dhv2umaI8Vqkcs0s5ZnnCLIvXp/UjtRct7/6z6yuU86G52T84H9dnh8Iu6 vY0hv736MEvy0Ed3ZsSF3JMvVBqhFqjMWsIMPTCM9CrcWz3mHDFOEL/0h4QVK/zcHoxo Az6cyRBkQm9q5Lde9U32mNR+4SF8CqP4MiZMmohopVrq87cqerbXhIwx44a9E8/F1KpT qUrulERlJBJYLrc43WjOuk6+wvWXFy37Cl/vq/UWu5c9u4E5MVZCK+PyGYl9usg+dsbs l3KtfdcRoYXwtpi+DykqpyKMR/3RRp4fQAqu2I0g1yLGddO1DYO7IU5V4VjXlnDlizpj Txbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ckeoC9vO; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rk22si11938547ejb.48.2020.08.17.06.47.04; Mon, 17 Aug 2020 06:47:29 -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=@linaro.org header.s=google header.b=ckeoC9vO; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728660AbgHQNo0 (ORCPT + 99 others); Mon, 17 Aug 2020 09:44:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728588AbgHQNoU (ORCPT ); Mon, 17 Aug 2020 09:44:20 -0400 Received: from mail-ua1-x941.google.com (mail-ua1-x941.google.com [IPv6:2607:f8b0:4864:20::941]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C22BC061343 for ; Mon, 17 Aug 2020 06:44:19 -0700 (PDT) Received: by mail-ua1-x941.google.com with SMTP id b12so4739942uae.9 for ; Mon, 17 Aug 2020 06:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YK1g7CpAj1uxdUMop0TAQ/KlG7NubSk4gl7YMK07x3k=; b=ckeoC9vO/EDF3YhPTlzEiluCGyrsP53BCP34FHVrdI8dpxxDV3K+SwS1hVvx0mZcmM e2O91NKmU+NTYcN/tz61BiWW9QlDpE/ctnp1RkSV1f3S0tJquoPdWFtFvwbM/qj+ig42 Zx0Etpm3KzjpWimA7LfYgeTbvIYJ+MqLP2/1WK0GsLq/AJ4Gq3/IYaIVHao2TI3hcZfP 68I7yu3R0UWmbe6eTH+cBL+DEwLUN/83wu07NWUwmKKz3AZctOS6JJatO5ps/e1MpIEc FG4FYDE5qqMgZ9NiMEdTtKRZS7MBhdsf9UCzEXzeLnjCseF8vqop52zofptLynay9JjQ 6qpw== 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=YK1g7CpAj1uxdUMop0TAQ/KlG7NubSk4gl7YMK07x3k=; b=tzeY1Ox9NCxTyqpg/p6CLdjpD8gEDNwLsAXAljE0XVFJsPz+daa2YowubFZstDDIrS 80x8ZHJZGp1kNWDS+s4g7BFFKeXjQkRU/ZK4G8O+G7V4uzpx3WyPm9H8y1MyEfAQksHZ n7b/Dy+wJp2j2k2hk5Nqn7NTBNjRq85b+SQGZ/23C9c/1eAMawvCkCAN3iX/nGI+HEdh 5y/08lmp9jekL+9sawpk8ZLXm35ZsnK4dgOydwnvi4ZJOmKEqdCH8YANVx3emwHW9+N4 85fR0Jv0Em6CFXTImpukSdl1fzQOqg2ZydFLSSLRmiEa4E9rMPyIQbMfZNsvva2WVqoG BpPA== X-Gm-Message-State: AOAM530y0O8LUsDftJ1yA1pBmkgp+v3yqPGeh7HBUqqmpBgRib/xh28y 2oaZF1DxTRAhFvzlzGMtPbv5wLEyce+tpkR8oQ+h/Q== X-Received: by 2002:a9f:35d0:: with SMTP id u16mr7432899uad.113.1597671858524; Mon, 17 Aug 2020 06:44:18 -0700 (PDT) MIME-Version: 1.0 References: <20200728163416.556521-1-hch@lst.de> <20200728163416.556521-3-hch@lst.de> In-Reply-To: From: Naresh Kamboju Date: Mon, 17 Aug 2020 19:14:04 +0530 Message-ID: Subject: Re: [PATCH 02/23] fs: refactor ksys_umount To: Christoph Hellwig Cc: Al Viro , Linus Torvalds , Greg Kroah-Hartman , "Rafael J. Wysocki" , open list , linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, Jan Stancek , chrubis , lkft-triage@lists.linaro.org, LTP List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 Aug 2020 at 20:14, Naresh Kamboju wrote: > > On Tue, 28 Jul 2020 at 22:04, Christoph Hellwig wrote: > > > > Factor out a path_umount helper that takes a struct path * instead of the > > actual file name. This will allow to convert the init and devtmpfs code > > to properly mount based on a kernel pointer instead of relying on the > > implicit set_fs(KERNEL_DS) during early init. > > > > Signed-off-by: Christoph Hellwig > > --- > > fs/namespace.c | 40 ++++++++++++++++++---------------------- > > 1 file changed, 18 insertions(+), 22 deletions(-) > > > > diff --git a/fs/namespace.c b/fs/namespace.c > > index 6f8234f74bed90..43834b59eff6c3 100644 > > --- a/fs/namespace.c > > +++ b/fs/namespace.c > > Regressions on linux next 20200803 tag kernel. > LTP syscalls test umount03 mount a path for testing and > umount failed and retired for 50 times and test exit with warning > and following test cases using that mount path failed. > > LTP syscalls tests failed list, > * umount03 > * umount2_01 > * umount2_02 > * umount2_03 > * utime06 > * copy_file_range01 The reported issue has been fixed in linux next 20200817 tag by below patch. fs: fix a struct path leak in path_umount Make sure we also put the dentry and vfsmnt in the illegal flags and !may_umount cases. Fixes: 41525f56e256 ("fs: refactor ksys_umount") - Naresh