From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+e70e1b6cba8714543f7c@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [fs?] KASAN: slab-use-after-free Read in reverse_path_check_proc
Date: Sat, 23 May 2026 05:22:37 +0800 [thread overview]
Message-ID: <20260522212238.993-1-hdanton@sina.com> (raw)
In-Reply-To: <6a10b30b.050a0220.19f61f.0003.GAE@google.com>
> Date: Fri, 22 May 2026 12:48:27 -0700 [thread overview]
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 80dd246accce Add linux-next specific files for 20260518
> git tree: linux-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=113cba73980000
> kernel config: https://syzkaller.appspot.com/x/.config?x=2a0b5969e136a632
> dashboard link: https://syzkaller.appspot.com/bug?extid=e70e1b6cba8714543f7c
> compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14dc9fba580000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10bffcc8580000
#syz test
--- x/fs/eventpoll.c
+++ y/fs/eventpoll.c
@@ -456,14 +456,21 @@ static struct kmem_cache *pwq_cache __ro
struct epitems_head {
struct hlist_head epitems;
struct epitems_head *next;
+ struct rcu_head rcu;
};
static struct kmem_cache *ephead_cache __ro_after_init;
+static void __free_ephead(struct rcu_head *r)
+{
+ struct epitems_head *head = container_of(r, struct epitems_head, rcu);
+ kmem_cache_free(ephead_cache, head);
+}
+
static inline void free_ephead(struct epitems_head *head)
{
if (head)
- kmem_cache_free(ephead_cache, head);
+ call_rcu(&head->rcu, __free_ephead);
}
static void list_file(struct file *file, struct ep_ctl_ctx *ctx)
--
next prev parent reply other threads:[~2026-05-22 21:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-22 19:48 syzbot
2026-05-22 21:22 ` Hillf Danton [this message]
2026-05-22 23:31 ` syzbot
2026-05-28 15:53 ` Forwarded: [PATCH] eventpoll: restore EP_UNACTIVE_PTR sentinel for ctx->tfile_check_list syzbot
2026-05-29 13:24 ` syzbot
[not found] <20260528155256.59940-1-zhanwei919@gmail.com>
2026-05-28 16:19 ` [syzbot] [fs?] KASAN: slab-use-after-free Read in reverse_path_check_proc syzbot
[not found] <20260529132413.13003-1-zhanwei919@gmail.com>
2026-05-29 13:51 ` 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=20260522212238.993-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+e70e1b6cba8714543f7c@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
all inboxes | Powered by JetHome®