Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp557187pxj; Thu, 20 May 2021 16:10:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyGnL/vffM8HJbcNXD9rZ6hbKNedCAp6QQXt6Bj5e2LECTirJI6SZCBKdG2eStivzlsxm3 X-Received: by 2002:a05:6402:5a:: with SMTP id f26mr7486008edu.306.1621552202682; Thu, 20 May 2021 16:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621552202; cv=none; d=google.com; s=arc-20160816; b=KAapMkZ6bv+PfWvuJHTRGHWjhywKO4u7irTOaSqtKKTJKJ4V4PQU2r49KlkKJnmG37 HDPHua1O5Pc8rAKSrxyo+AGtGTHLwK8N8MCWfYlvdmePm2xmbxPcBonUR5dyrRtzRwlb TujSq5A59dAHW+ZCdZwujGKABoZamS6j8G98QYMgHgJPT+xrx+/aW4vgwUXhQoL/2XT2 Q9zYu1rvzYwjO+BT4/0du9Ua+C+PuljNeaNhmKUn7fQQOud23tfW64CPv+OTalKbK7zW 8/6J6IzWy7CQYszf/0Hf6jxS/1iZE1XojREXYpOfElyv2ovjQS812voYvh7Mf82F9GNb odRA== 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=dxcwF3EHXnCjJQBmzrMuDJ6tuyXc3SXvBdtRD40V4XA=; b=wMsL3GCqMyurDTQugQBfBngREgN/tlmJM/rpSJ8cHvYbMEJ7Ui+/RkbXW1EzF9Rzck 9/yaP4xY6GrQF8ru+Y0W+rddurCu6rqJO45oS+qyqNFLi6Zgx1g3ewurz97KqttLl7Uz 6DDQt6HJZk8D+E8rLhoiGumckSbOWutRFiWEznVN9xXX9EBzRJwlgrbGxqeIaARPVSKN KTJe3NXfS1cDKA4AI5C1OmjhDhx/dV/7NGzLDR/50Vc73oS6ZZrWRXFD6j+F9Vg4YRzs GQR/igwm5W97EBv7Q08ZMfwVK/dapbqpXcmxPIBQrLKGxwtYaSbl9gFQQQL2D61Wr64g 3uZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ak9PEN0/"; 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 19si3604015ejx.529.2021.05.20.16.09.29; Thu, 20 May 2021 16:10:02 -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="ak9PEN0/"; 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 S241034AbhETLUA (ORCPT + 99 others); Thu, 20 May 2021 07:20:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:57122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239566AbhETK7p (ORCPT ); Thu, 20 May 2021 06:59:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D338561D06; Thu, 20 May 2021 10:03:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504985; bh=rkX6z2dPoS2cqSstGb9735JhgAFXr7gdHa10h8sCZ04=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ak9PEN0/QrDcA6x+AhUGq62XMJZj+aiI/NdfQlHXeq8zuAlN/7Dq0FQLAljos3YAl jAiDOdWgT30usG5sZ09hO2LxzpEiGMY8WCqTGsVloKFbkeXXmQli+wSFxBWNNrE6Xq hgSUq66SQvg9gdzrVWEsNcMWb7C5cInlHviA43pI= 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 4.9 170/240] fs: dlm: fix debugfs dump Date: Thu, 20 May 2021 11:22:42 +0200 Message-Id: <20210520092114.359205151@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092108.587553970@linuxfoundation.org> References: <20210520092108.587553970@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 466f7d60edc2..fabce23fdbac 100644 --- a/fs/dlm/debug_fs.c +++ b/fs/dlm/debug_fs.c @@ -545,6 +545,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