Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp195362pxj; Tue, 18 May 2021 00:56:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSKCocoVdZ2bi8relmO5cLV7BRX9F2A82OdDtLAs04svpfGtNhpxDDZkGmKW54Wx4oFMVG X-Received: by 2002:a05:6402:1295:: with SMTP id w21mr5351422edv.60.1621324560024; Tue, 18 May 2021 00:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621324560; cv=none; d=google.com; s=arc-20160816; b=P5jrVfGTZqFaJE5rMzwobcX0/1p0EoDgv1/lBHLeJlLtgBbTTM7NV+zljoj/CR6QaS RbG3qM1QTIPX4PIdXgKXYddqqxRHodZ6HE065bxR4Qpm8DaTJ0sw4oWy0pHCfsdTgEZ2 J24oYiQtMxQ8dtFCAlaPgooUdnZxKgS4ZW/Np8qX9hJhSXs+bjeRFva3tTp+nrwdAYvj YWQLb0wxV8rrQFKRJ0YvRpAEL1vN3IIgB7YkVZKPX6OBIpdqPJgBr6Z9jStY2aCYQ4je 2x2HL+SjviTk3jb/BStNZFQDouGnKW+nBw284wvl/4OX4dSQsapK6bGTfz+cIiL3GnHI 50eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=J8V8txjbtzo37h0jgy46e2bTSekKYX27QTKeUHWgXXQ=; b=VTkrwzQr/Y73GNrzwSXgNoDxfhhNohK7xM8whkyHWYBKl8hiMGko2o1yWJrCLiqWTz Zi2jQqrnoenOPTfPhAC8mBFc1bnz5GiNQD5X3Yos+EvjLR8LiAm3YY0qrtqJUbHNb+y0 T6Uf4o4y5keiR2CsrigzuOAMufmFvGFi1q3gaOhVggHzHcyyjPmh93xcVq5X1Ug6/gBd 6xbRkb09IlW8m7gB731PIlP3vMKHNuJofUtYsv83swz5uL6vEuQ8i5nX66dQ2w5W7rAx mDk6Dze4Dlwv5uMN2Wl84ehile3vZidGFNbYAikT7FDuTeF+M7duxhxAjTYLwdIjH7dU iPjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qjBqzcU8; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si11603323edd.354.2021.05.18.00.55.35; Tue, 18 May 2021 00:56:00 -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=@linuxfoundation.org header.s=korg header.b=qjBqzcU8; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241742AbhEQO6h (ORCPT + 99 others); Mon, 17 May 2021 10:58:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:41092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240728AbhEQOtK (ORCPT ); Mon, 17 May 2021 10:49:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F5B46197F; Mon, 17 May 2021 14:22:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261362; bh=enR9fvpoMci803EPJsInd9Zej7fSXQVmWoPu6wDqnOw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qjBqzcU8oubktlR1ZSGwDdSKM+cDnqSQor2WKeiOUsjnj7DkqfDA2ngEb+/XJWnuv wtKYjr9eFpGztBDt6pIoaqgzufb7rJTpQ/871yZoDoN8kdG0dqoXgUIOI/lm9wkD89 9ytqQFKv/dR77rgVSb/tW7AgkkM9LkSSrEvohfT8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Aring , David Teigland , Sasha Levin Subject: [PATCH 5.10 012/289] fs: dlm: fix debugfs dump Date: Mon, 17 May 2021 15:58:57 +0200 Message-Id: <20210517140305.592473256@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Aring [ Upstream commit 92c48950b43f4a767388cf87709d8687151a641f ] This patch fixes the following message which randomly pops up during glocktop call: seq_file: buggy .next function table_seq_next did not update position index The issue is that seq_read_iter() in fs/seq_file.c also needs an increment of the index in an non next record case as well which this patch fixes otherwise seq_read_iter() will print out the above message. Signed-off-by: Alexander Aring Signed-off-by: David Teigland Signed-off-by: Sasha Levin --- fs/dlm/debug_fs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c index d6bbccb0ed15..d5bd990bcab8 100644 --- a/fs/dlm/debug_fs.c +++ b/fs/dlm/debug_fs.c @@ -542,6 +542,7 @@ static void *table_seq_next(struct seq_file *seq, void *iter_ptr, loff_t *pos) if (bucket >= ls->ls_rsbtbl_size) { kfree(ri); + ++*pos; return NULL; } tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep; -- 2.30.2