mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+6c1861115b4253e45969@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [kernel?] KASAN: slab-use-after-free Read in futex_unqueue
Date: Wed, 11 Feb 2026 06:51:20 +0800	[thread overview]
Message-ID: <20260210225152.2795-1-hdanton@sina.com> (raw)
In-Reply-To: <698ba684.a70a0220.2c38d7.007c.GAE@google.com>

> Date: Tue, 10 Feb 2026 13:43:32 -0800	[thread overview]
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    72c395024dac Merge tag 'docs-7.0' of git://git.kernel.org/..
> git tree:       upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=137d9b22580000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=bf83be18dae53c93
> dashboard link: https://syzkaller.appspot.com/bug?extid=6c1861115b4253e45969
> compiler:       gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=169f8ae6580000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=17f657fa580000

#syz test

--- x/kernel/futex/core.c
+++ y/kernel/futex/core.c
@@ -1735,8 +1735,7 @@ void futex_hash_free(struct mm_struct *m
 	free_percpu(mm->futex_ref);
 	kvfree(mm->futex_phash_new);
 	fph = rcu_dereference_raw(mm->futex_phash);
-	if (fph)
-		kvfree(fph);
+	kvfree_rcu(fph, rcu);
 }
 
 static bool futex_pivot_pending(struct mm_struct *mm)
--

  reply	other threads:[~2026-02-10 22:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-10 21:43 syzbot
2026-02-10 22:51 ` Hillf Danton [this message]
2026-02-10 23:15   ` syzbot
2026-02-11  0:38 ` Hillf Danton
2026-02-11  0:55   ` syzbot
2026-02-11  3:31 ` Forwarded: [PATCH] futex: Fix use-after-free in futex_unqueue() on private hash teardown syzbot
2026-02-11  8:14   ` Thomas Gleixner
2026-02-11  6:31 ` [syzbot] [kernel?] KASAN: slab-use-after-free Read in futex_unqueue Hillf Danton
2026-02-11  6:55   ` syzbot
2026-02-11  9:22 ` Hillf Danton
2026-02-11  9:46   ` syzbot
     [not found] <20260211033121.713551-1-suunj1331@gmail.com>
2026-02-11  3:49 ` syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260210225152.2795-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+6c1861115b4253e45969@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome