[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_C037D4960236004B087403760766583DD909@qq.com>
Date: Tue, 22 Oct 2024 16:53:17 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+a234c2d63e0c171ca10e@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [serial?] BUG: soft lockup in debug_check_no_obj_freed
maybe we can insert cond_resched()
#syz test
diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index 5ce473ad499b..5cc5b21ae71f 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -975,6 +975,10 @@ static void __debug_check_no_obj_freed(const void *address, unsigned long size)
repeat:
cnt = 0;
+
+ if (in_task())
+ cond_resched();
+
raw_spin_lock_irqsave(&db->lock, flags);
hlist_for_each_entry_safe(obj, tmp, &db->list, node) {
cnt++;
Powered by blists - more mailing lists