Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2119514lkv; Thu, 20 May 2021 03:52:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5cbD/nBz/iPy4xXd51IwK1ddQnK0+Gb3N/iHJrXQ7usPgIzEybU/mvSJSUjOmmha8CE80 X-Received: by 2002:a92:3307:: with SMTP id a7mr4488640ilf.113.1621507966728; Thu, 20 May 2021 03:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621507966; cv=none; d=google.com; s=arc-20160816; b=Ka/ZcPswuC2ezckcfGWOT2VfSL56dBtg3NmTCOHut+gvhkH1ouUT18EfqywxpRUaUP Cm1glwJgMlJYqlbPXHbND7AfZ0ISFD9eumM6y73N3U1rWBI+xVDUkpDwHAJ4ayxrBoBa C4HuG78TUXEk0FORFByJdU3zscts29QG/NQ+zFyj/wg7ajLJM57vTJJo87VynyW7eQER mp8KlKnz9uLTQqHcAZSxf0/zeV19AF6Gem6yrt3uKXT73sJbBSSEvx65AFA2SXf931Hu PAhig2Z9zpbME3HYrww2xzrMQ7Pu8DV9zQPKoSiqizOEsYUe0lNf7wOO0fQ2JHPqeTyp YFbQ== 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=1YIKjALOmgOxUe4TnGbQ6wdlI2KeVq9yHYcTxP/z90s=; b=FH0YDcOzzHgl8kcflYdAoCD4t+My/HCsRO3lV7RSDbEdDRPluEECJqw+tSVijEBpJm KXjNSg/+/UixYFYvkW1KPInbK5GvCzSIwOay2BfYzwLsbaPsZsrOIDug8wShEePtgnFF OsVptV/+zf+WbXVD1f0OCyJk7dM1hNsaSP2sDmU1ityBkCDyrd62IJfT745Fkm25pNB4 OVy635VdmcNoXWpYvAb016hH8w+yXEr+6hSgDnP+6akN5aBbi+sm0MMz8+VtHITaf3+o Gi6o2QbjEI/B1hDcVY2nFxhBiBcgIiXiIGY+xLnB1vdiTcOGc9QDYEjKCQAUBJhP4/hg RiCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j14qWwGD; 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 v6si1973721jas.16.2021.05.20.03.52.33; Thu, 20 May 2021 03:52:46 -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=j14qWwGD; 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 S239028AbhETKus (ORCPT + 99 others); Thu, 20 May 2021 06:50:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:39712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237729AbhETKfY (ORCPT ); Thu, 20 May 2021 06:35:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7B06F61C5B; Thu, 20 May 2021 09:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504415; bh=lBp3f5LDs3ZwVf5n60dmCuEVqvWqm3314S221/UgQ5I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j14qWwGDtaeO8XROEOcCXw9ZXnSFduzdIb5P2tP2SrJCT6sYOMkka90hmCXz8ARbJ BhSOBp7o9WCKU1PR/Z4QgmwoIiHpTBqS7SiBGrrTaF0tJm6Bl5LV0XDN2Omw/tUS4s h42G3LzXdKZJSxcVZ45wNqjENzOoygJPwLy5uqwI= 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.14 234/323] fs: dlm: fix debugfs dump Date: Thu, 20 May 2021 11:22:06 +0200 Message-Id: <20210520092128.180490998@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 fa08448e35dd..bb87dad03cd4 100644 --- a/fs/dlm/debug_fs.c +++ b/fs/dlm/debug_fs.c @@ -544,6 +544,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