Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3133649ybh; Mon, 16 Mar 2020 16:40:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtD9JGcUdakTVhGqB2Cdv+BZOd9vgAAqxU+scB5yGROGQBajo4dhalvTHhMfHRQ0Fd+deFn X-Received: by 2002:aca:5c8b:: with SMTP id q133mr1447890oib.38.1584402039956; Mon, 16 Mar 2020 16:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584402039; cv=none; d=google.com; s=arc-20160816; b=wEyv8wFcIh5lhsY6r2L8IHoLxvtSy8OQ8L1xaqA4kBhydLeU00jJGRx2J5HSLtqdWF LNdNkQCywqjLo8RmlxcU1hTfvML3kgUqe+92CbA3/lTcpx69CFJCCg6Y4C/6o+FIsLRy CQ9g+TeLhwQHXryVSocY5b+Q4ffpmGV90c/3kdv6838OzxJe88F0935RVtrFt94NXUnA PpLEea3i+eeSGZYML3Ha73vwDmiQbwBAqEXbq0OAG8D69xM+52alm4hGfQv485OPPdk4 E/ai2MtQn19PNtQTxFTBuXC4LaEQDuX0Jr/IMoXgxUz5y0s1BuzrX4ynlNg3CfBW/ylr kr2Q== 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 :dkim-signature; bh=hCn5xzWGqh0tVqpTIPIigS1SoJ9VMJTzL24LcY1So5I=; b=ZUCCMymMaelVIC8ZeDLEPmyFehmzbKdZyFIh4ONXI9iZcvSyM4CIi8iSZyFNEApw6K ncQA7nF5bWMPTA4FiauUer8uZPmTpz784H2OcXhLN/G5B7KwQxySXSHYLrOeuRUdM/oY ykZ6VL1shki7FNhlOtzaEWUEFU4aEV2atB144XrJL6sApveocY7R1xMcNT7hS10Uv4bo OtbOAUuuRIQPhLsuL/AklONUeGQXkuhIDq+Sl8Bq5TURCtL9jnRE0eheb19iA0PUmyia qdlE+NuV67oxunc9enx233JDCDM9bjNNdSOihkozMZtcAPsz03LVDaP+APfPKvY57mtE cvwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nghti8WP; 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 z126si797410oia.187.2020.03.16.16.40.26; Mon, 16 Mar 2020 16:40:39 -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=Nghti8WP; 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 S1733016AbgCPXjJ (ORCPT + 99 others); Mon, 16 Mar 2020 19:39:09 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:35960 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732930AbgCPXiv (ORCPT ); Mon, 16 Mar 2020 19:38:51 -0400 Received: by mail-wr1-f65.google.com with SMTP id s5so23470444wrg.3; Mon, 16 Mar 2020 16:38:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hCn5xzWGqh0tVqpTIPIigS1SoJ9VMJTzL24LcY1So5I=; b=Nghti8WPFDRsy8/jWR61sk+WFLqpvS/1gDkUQZpTMesVtl9jqWo6KfXGXnGO8zZLL+ zXDiGsComuznrt5sfbrb1g7thEHfVvyiQadC8I2+oK3dEZn4mg2YtoYTigBjNIVLeZ2b AfvLaRZIbO7NSS6cc7phmaqWBkww8CF3PQ1nlcsMzzgvEc+eanx93zq22m3szJwAL8/I S2c5HcCQv+qZcjgctBFApPK/AasNoYC+1IQA02V2kvcbOI/19ETPhW2bj+BfxfFn5xAk pXsmqVUlwqCwNkeuL3L3EAFEyBQUngwOUo+ibRM/7mev1oXiVWitGhEu+rxZmIut0ztw G5uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hCn5xzWGqh0tVqpTIPIigS1SoJ9VMJTzL24LcY1So5I=; b=RvH/seEFAx95K/JvI/5Wfmwrpo9TSfT6/MSiDxw03a+WwwDvJzCV3QAmwQPdW7jIAa LqIpXO7MDVTk3ZKbz7mGElpN6MKXl0W3w8LEbSIbbpvOj9E5BCYdFcur/V3aI5XhSfZP V0LAvFhDm4gaVZFxCMcnDoCPiiPlzlvVoOqW1aiy02YUCTzm6qS5PVFIxaj56qoSD8kx TCfapD0d2AtHc5khQaP2n4KW88FTTIhCuZVc5WyLDaeVh7LXcP2VtDxLCjb42rtYqWBQ uO3h5UOWXVCRu0ldHloKW3NeFFMmIn/t3RZ3kP+YZX3ySwqpu+haQOvWbYxt6LwYaXB9 LirA== X-Gm-Message-State: ANhLgQ1X3LvAMOGbdKLlHCKkgYhDcHusX0/Ey2v7I3NmpmzE/ayNoCe5 uzGcY9UUSztgeFXSWUAfIrKl0quiog== X-Received: by 2002:a05:6000:128a:: with SMTP id f10mr905829wrx.242.1584401928021; Mon, 16 Mar 2020 16:38:48 -0700 (PDT) Received: from localhost.localdomain (host-92-23-82-35.as13285.net. [92.23.82.35]) by smtp.googlemail.com with ESMTPSA id i9sm1510495wmd.37.2020.03.16.16.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2020 16:38:47 -0700 (PDT) From: Jules Irenge To: boqun.feng@gmail.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Viro Subject: [PATCH 1/6] namei: Add missing annotation for unlazy_walk() Date: Mon, 16 Mar 2020 23:37:59 +0000 Message-Id: <20200316233804.96657-2-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200316233804.96657-1-jbi.octave@gmail.com> References: <0/6> <20200316233804.96657-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports a warning at unlazy_walk() warning: context imbalance in unlazy_walk() - unexpected unlock The root cause is the missing annotation at unlazy_walk() Add the missing __releases(RCU) annotation Signed-off-by: Jules Irenge --- fs/namei.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/namei.c b/fs/namei.c index db6565c99825..d80e1ac8c211 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -678,6 +678,7 @@ static bool legitimize_root(struct nameidata *nd) * terminate_walk(). */ static int unlazy_walk(struct nameidata *nd) + __releases(RCU) { struct dentry *parent = nd->path.dentry; -- 2.24.1