Re: [syzbot] [kernel?] WARNING in futex_pivot_pending

From: Edward Adam Davis

Date: Sat Aug 15 2026 - 22:25:31 EST


#syz test

diff --git a/kernel/futex/core.c b/kernel/futex/core.c
index 128c5752f225..154140fb6081 100644
--- a/kernel/futex/core.c
+++ b/kernel/futex/core.c
@@ -1786,6 +1786,7 @@ static bool futex_pivot_pending(struct mm_struct *mm)
struct futex_mm_phash *mmph = &mm->futex.phash;
struct futex_private_hash *fph;

+ sched_annotate_sleep();
guard(mutex)(&mmph->lock);

if (!mmph->hash_new)