From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B354F3168E1 for ; Fri, 19 Jun 2026 01:24:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781832287; cv=none; b=DoFXP+3Q+4KYJICripEiIb81a9vqQ4j5Qw9+92G/kOeVMCWKvSr8M11NT95r/TThDJZT5KV4NAImYmFUFtUfTadQmtsQQLshNV0qo1LjmLR399jsGhvN7hrs6PRP9mHRC36f7AxzoJ7KOQl0qOf1W4mWq1MXGJDOWpc1AERLG6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781832287; c=relaxed/simple; bh=83nfITplRZkZdaqzvA/UFpUb87hSo7wSX5DkuL6Fzkk=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=Pr1utnqiX8xxQKNYymDOXZW2borEX6m6Hwvf23zm972/iqJSyU5DdQX/M4eq6v5MYFrdp09DuktBO4pYqxXIUJQQExCHd6ox0+nTSJF9ajfrmi5YWiGu2Ixe4h/yVxydWbpeVjnTiF7sxoZfbRxgFJNUCM+QvE3GNKG0PZng3CY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.167.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-489c6ca8315so133154b6e.1 for ; Thu, 18 Jun 2026 18:24:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781832285; x=1782437085; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TZ93CumGokVsc4f6pApeYjW61h5+4QXBh8rk1mxcL5Y=; b=kvrwiUaR/yvLp3yShBd9SZTvmvEcW5xrXfG0jGgPKgomimdD8Rj0aX5Ceap8/qOj5S Ub9TtBuFeRELuweolHo1/wrf9uGGTSSjuTzS9F77GTC2dl3/9A3ovAdyn7K8Bq/Yovvl R5abYbQ6EN/rQZhr3pqmJefvHV26ZEFUNEcVWomZ/wOI+DzUMrnleVlbAIcejggQKxry dnuovNsz968oIA9dcPm+G+Rishu7uYxteYOr1qv3afCNkoAqig+CAY0Wy8fkB+ZZrR+I MD+bpWGr4vQHKbTQ6leYon/9I4dW3/4eK51ZLOGNkSemYBA/uTvKWL86w43x744ROOcC ZAgg== X-Gm-Message-State: AOJu0YwG5hTNg+IJnHP/TJChMhldfbFMfuuCJKlofPJyhLpi5cpRD8YB wgdE7P78KuRCgWveKfvECw1U8f1KawS0vJ+Djn3bCXcP3AbpNCJYysA+G+MLWlNFy1wXLPI8GCm BnZ7PcOjuQH/qtlpLl6qdYBaec+aPMcvI5c80KyGzgwRrADt9DsukXxYPUa8= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6808:170b:b0:486:50c2:b8f2 with SMTP id 5614622812f47-4896acddc4emr1612195b6e.42.1781832284808; Thu, 18 Jun 2026 18:24:44 -0700 (PDT) Date: Thu, 18 Jun 2026 18:24:44 -0700 In-Reply-To: <6a32ab13.d1b4d54b.11ef78.0031.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a349a5c.d85dbdf7.1299fc.000d.GAE@google.com> Subject: Forwarded: [PATCH] nilfs2: add debug instrumentation to nilfs_clean_segments From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: [PATCH] nilfs2: add debug instrumentation to nilfs_clean_segments Author: kartikey406@gmail.com #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master Add temporary pr_err() calls to log ns_nsegments, nfreesegs, and the first segment number on entry to nilfs_clean_segments(), and to log the error code on each retry, to diagnose the hung task reported by syzbot. Link: https://syzkaller.appspot.com/bug?extid=155b515977fecb686986 Signed-off-by: Deepanshu Kartikey --- fs/nilfs2/segment.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index 9332f5ac6083..219ae4ae0c03 100644 --- a/fs/nilfs2/segment.c +++ b/fs/nilfs2/segment.c @@ -2519,7 +2519,10 @@ int nilfs_clean_segments(struct super_block *sb, struct nilfs_argv *argv, return -EROFS; nilfs_transaction_lock(sb, &ti, 1); - + pr_err("nilfs2: clean_segments: ns_nsegments=%lu nfreesegs=%zu segnums[0]=0x%llx\n", + nilfs->ns_nsegments, + nfreesegs, + nfreesegs > 0 ? segnumv[0] : 0ULL); /* * Validate segment numbers under ns_segctor_sem (held for write * by nilfs_transaction_lock above) so the check is serialized @@ -2559,7 +2562,7 @@ int nilfs_clean_segments(struct super_block *sb, struct nilfs_argv *argv, if (likely(!err)) break; - + pr_err("nilfs2: clean_segments retry: err=%d\n", err); nilfs_warn(sb, "error %d cleaning segments", err); set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(sci->sc_interval); -- 2.43.0