Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp67594pxj; Thu, 20 May 2021 04:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt61m53akYFT9v2J0QjfHGaiYvpQxzZ+rLswIt4n6mj5F+708ytFeCXMXXwsNHlmEV62b0 X-Received: by 2002:a17:906:1305:: with SMTP id w5mr4234474ejb.404.1621511091246; Thu, 20 May 2021 04:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621511091; cv=none; d=google.com; s=arc-20160816; b=L23kbxn0SeP58BcDuifH4hqLD8e3HbrRhs71nSkqflLCudrQYYIG94fxj79I8ufksz emjusqEjcdRrNw+zvsp1e6blZgCQoCSaBYQB49t4uHI621bTqW9VfRustuZI94hD02eY 1PSascW1U7iZqFjiMvE+WGQktWpg7CZ/jtsMCsUz/3jk7taXD/5vqR3PaRFN0uA98gKw 7uRdeYe0Q/goNcgYHnRPdMGYv8rDrjbpHwfVpEbCaPX1uj7PPpDMAxNrOTEpnn8PzNNg nBVm9e7C+WxreNeBkg7HrAXI+9fu+sbojFvYQBZpDCUnfofZv32lPFL/pjO+2MQmEuUk J3fw== 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=5BywGfQ0ePPj90zS1NjI3+LB2zl9pDjoi8Sh7pRYtZ4=; b=kLBVMc9/HOG7WY+Gkyrbu51OenhCEOMYfewzPpR6MCmBulCqB2GaRYgj6Wf4v0HwvN 3IvmPikfn2RqpQK6dhvvScSzzipGAADe1Q0uHz15137Vbt1MxWaUQqntdaT0IbM/T7P0 OZo0Edibk1jVz4YlOak1fEDqLV/idwuP8BeBiHJa/xd9RmfSlKkJiR7rbob0aPhGwngu uiZwd0GyoYdAWMPkImE0sQ0/CmJ6Y5+zYJdtPkV1NzNDPMa7OQaaolkWoUVp96QpPlm8 4S2CjGtWRGX5YL09y+s5TCU3z1fV9DXi9IF4av4aVL42dxbWS7Wjv79MFnn3zi5/FBiJ jJaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VEwlEEO4; 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 lj11si2320135ejb.265.2021.05.20.04.44.25; Thu, 20 May 2021 04:44:51 -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=VEwlEEO4; 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 S242713AbhETLkY (ORCPT + 99 others); Thu, 20 May 2021 07:40:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:38992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240888AbhETLTg (ORCPT ); Thu, 20 May 2021 07:19:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 094CB613E3; Thu, 20 May 2021 10:10:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505439; bh=K4Gxbu8Li8VuMOhLddDQQmmtlV8IRL45B30dXYpG75g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VEwlEEO4fNwVzNvAmQQhPeEBg4+PArT+DH/8ttMv0O06eo9CZrdHgVJA3LexVqayM 9OnezD3YB1CMsPixqQBJs3m4gexTZ01q30ExXfmqA0kUfkCO7vf0S+57lQTScfERIT 4Sg9ex0QrBpyvAsZm1aZTLlCo8GDnbx1D4xJcxSc= 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.4 135/190] fs: dlm: fix debugfs dump Date: Thu, 20 May 2021 11:23:19 +0200 Message-Id: <20210520092106.661300839@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@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 eea64912c9c0..3b79c0284a30 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