[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_1D087BFE6C682D456CDC95E8E8EEECF6CD0A@qq.com>
Date: Tue, 28 Oct 2025 13:16:17 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+24d8b70f039151f65590@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [nilfs?] WARNING: ODEBUG bug in nilfs_detach_log_writer (2)
#syz test
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c
index f15ca6fc400d..8a17ae49bc41 100644
--- a/fs/nilfs2/segment.c
+++ b/fs/nilfs2/segment.c
@@ -2768,7 +2768,9 @@ static void nilfs_segctor_destroy(struct nilfs_sc_info *sci)
if (sci->sc_task) {
wake_up(&sci->sc_wait_daemon);
- kthread_stop(sci->sc_task);
+ printk("kthread start to stop (sci %p)sctask %p, %s\n", sci, sci->sc_task, __func__);
+ int ret = kthread_stop(sci->sc_task);
+ printk("kthread stopped (sci %p)sctask %p thread return %d, %s\n", sci, sci->sc_task, ret, __func__);
}
spin_lock(&sci->sc_state_lock);
@@ -2808,6 +2810,10 @@ static void nilfs_segctor_destroy(struct nilfs_sc_info *sci)
down_write(&nilfs->ns_segctor_sem);
+ if (sci->sc_task) {
+ printk("sci %p sctask %p %s\n", sci, sci->sc_task, __func__);
+ //timer_shutdown_sync(&sci->sc_timer);
+ }
kfree(sci);
}
Powered by blists - more mailing lists