Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp388196lqb; Tue, 16 Apr 2024 21:34:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpSpPtGE0Ov7S1wGamX4lBTmzeOvNQqhkLms6dzuzp9xeljJrxhokSgo/9xUmOzF9/p3DHhAnmhTMQrQ94IMs3+c+6zuVj03E16ypKkQ== X-Google-Smtp-Source: AGHT+IEgsjUKJ4ix4x7OUJGf4WP60/xGg7rYTgA6XHQsjhG/0Po5CqL0TFI4XYBm9Um1gHlBcvCs X-Received: by 2002:a17:902:cf09:b0:1e5:c75a:f479 with SMTP id i9-20020a170902cf0900b001e5c75af479mr14853427plg.57.1713328454677; Tue, 16 Apr 2024 21:34:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713328454; cv=pass; d=google.com; s=arc-20160816; b=C4fXcjMXhJKi3D5dAsJAbfeI4uIs999leG/kBgYdb6eVqOi2wim/TsA+KM3KWNUshd ZLXInGC1nHQe6xIwXSpmDVxC92CZl8kSn6i+AFr4Jou7rDL5J7ucTvk2tdKXn0GnvPLF SKXd9Pxh86TkyFk23v8CObZ5KUycHVLw7mU8Xu5DYyshO4LonGl4HGaCiGzhRpYz8NVb ZGNG8k5NbqxVgE6/QzpyBUKo1WAaHWIWOh59a15gyaR55Hus75Lhto+5TEm1Gf/J7j2r NurgrfBstEWYES7bggQ8kA+B1gfngm3xWQPQzmM83ndbLHVI11DocB+y7lP94/HAmP0d Bq7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=diT/wN+fHLdKUYusj98+kygW/s/U+u7lxu6HU0BKXpA=; fh=nUC5lKPA1eGircvdF7Z+RPHWESFWBW+oqmbkFCvZCIU=; b=Uh9aY3qX2ty2Hv6H9OxIqDiQQhrTH2SmDa1o15pub4UNDXNWeAOaqgeuwIxe75/tgq i4hQtSB2nMoG5puNLniSyFKdkCSiUJG1QQ0bv4GCw3dACZzZ9nhXT57d+EYsz4HQXc0R PnD6tIwUokZzA59hEIslrNOKMaUEav/D450aPhuFrA1zZlo+UtgrjnSklgFjk/SxdJeq o1ULDspwKqoMgvzMvs385zn+Bpa0QIrvzr9+bPvgffGWuPQWPbnTXJLXLl8AE9GVUyYT iQP98jyigDlWxk2PTSIlH/hOpq0tXa62Td6bjeUe9DSOJ/A2p14VjMBF8JPrYH2/frQJ wj5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=jemL4u5m; arc=pass (i=1 spf=pass spfdomain=mit.edu dkim=pass dkdomain=mit.edu dmarc=pass fromdomain=mit.edu); spf=pass (google.com: domain of linux-ext4+bounces-2130-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i7-20020a170902c94700b001dcaf709f55si10852131pla.207.2024.04.16.21.34.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 21:34:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2130-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=jemL4u5m; arc=pass (i=1 spf=pass spfdomain=mit.edu dkim=pass dkdomain=mit.edu dmarc=pass fromdomain=mit.edu); spf=pass (google.com: domain of linux-ext4+bounces-2130-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 591B9283C22 for ; Wed, 17 Apr 2024 04:34:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5BE2249FF; Wed, 17 Apr 2024 04:34:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b="jemL4u5m" X-Original-To: linux-ext4@vger.kernel.org Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E89511EB27 for ; Wed, 17 Apr 2024 04:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.9.28.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713328450; cv=none; b=RlZhQ/iopUEE+dPlV1UUL3Usj+H0Wf5LoelHDvzeIpPOZwmv7IWnYbXG4x5PbScyTzE/PZVLMB7/MUyZJ5lII2+vjl2O3+vtvx4g28Yy6a2OErRhxKQEbkzQDwgm2JhC0gUq3vAxkQYZoGjuRNhccbMJY5duHVPRmm3i3Z0MSsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713328450; c=relaxed/simple; bh=mCHklNzD7aFKM1Jy2wkRtGcLFuaWlk4OwJJHxGKv4Ig=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Xb4MkOiEtg+yR4vndNXoBSTEkwX6bTYNre+PzROMbHrR3URspXeC3W5LtliOgWgOA0Iy0SZbZnNx0nccuuxT5vNs+Rag7h+3OZI0txJQg389TdYOFLmGAtyf+Gl7+dTuOrfWy1BWTaUDX33MLtOvyeP6PfdvKsR2KV8q+gFG5fU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu; spf=pass smtp.mailfrom=mit.edu; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b=jemL4u5m; arc=none smtp.client-ip=18.9.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mit.edu Received: from cwcc.thunk.org (pool-173-48-113-2.bstnma.fios.verizon.net [173.48.113.2]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 43H4XiKA030663 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Apr 2024 00:33:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1713328429; bh=diT/wN+fHLdKUYusj98+kygW/s/U+u7lxu6HU0BKXpA=; h=From:Subject:Date:Message-ID:MIME-Version:Content-Type; b=jemL4u5mMGNUKVuNwbb6ze9dfH7MqfvSL/D2XTPEg7MzyyNFye9fB1no0Oc3VhKae GiNRorUqDfyVTrqh0ULFAAIJPYnW6DwdhjJhIJTq9DAJpObaS/xguK86h62Uj13Luz Soz3AhhiMPSExXp+CyL9qhdCCa+ZobYmraW2sqR6GpWrH/z+bXYkMkiPmW6fQGbJgY y1+Yg+yByN5mb/PTU21rJkqz80agjo7uXnHKJ27nj+M1LAJjCFKdrJGGABFz55XqdV wBefA9auFSaI81W5kyT1OjCrchekKGolOcnMH4Qw8rzEqx5079LWRFONqOdPflv9yZ tkAbKh1RmcEAQ== Received: by cwcc.thunk.org (Postfix, from userid 15806) id 7A0B615C0CC1; Wed, 17 Apr 2024 00:33:44 -0400 (EDT) From: "Theodore Ts'o" To: Andreas Dilger , linux-ext4@vger.kernel.org, Wenchao Hao Cc: "Theodore Ts'o" , louhongxiang@huawei.com Subject: Re: [PATCH] debugfs: Fix infinite loop when dump log Date: Wed, 17 Apr 2024 00:33:41 -0400 Message-ID: <171332777784.2749069.11433721296273612273.b4-ty@mit.edu> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231117102315.2431846-1-haowenchao2@huawei.com> References: <20231117102315.2431846-1-haowenchao2@huawei.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Fri, 17 Nov 2023 18:23:15 +0800, Wenchao Hao wrote: > There are 2 scenarios which would trigger infinite loop: > > 1. None log is recorded, then dumplog with "-n", for example: > debugfs -R "logdump -O -n 10" /dev/xxx > while /dev/xxx has no valid log recorded. > 2. The log area is full and cycle write is triggered, then dumplog with > debugfs -R "logdump -aOS" /dev/xxx > > [...] Applied, thanks! [1/1] debugfs: Fix infinite loop when dump log commit: 272173a300822b5cfe19bef597609523baab0c66 (I renamed reverse_flag to wrapped_flag to make things clearer.) Best regards, -- Theodore Ts'o