mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeongjun Park <aha310510@gmail.com>
To: syzbot+e84662c5f30b8c401437@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [jffs2?] [nilfs?] KASAN: slab-use-after-free Read in jffs2_garbage_collect_pass
Date: Mon, 22 Apr 2024 14:29:11 +0900	[thread overview]
Message-ID: <20240422052911.140041-1-aha310510@gmail.com> (raw)
In-Reply-To: <00000000000032adb00615568aee@google.com>

please test slab-use-after-free Read in jffs2_garbage_collect_pass

#syz test git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

---
 fs/jffs2/super.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c
index aede1be4dc0c..49bf8e11c11c 100644
--- a/fs/jffs2/super.c
+++ b/fs/jffs2/super.c
@@ -348,6 +348,7 @@ static void jffs2_kill_sb(struct super_block *sb)
 		jffs2_stop_garbage_collect_thread(c);
 	kill_mtd_super(sb);
 	kfree(c);
+	memset(&c, 0, sizeof(struct jffs2_sb_info));
 }
 
 static struct file_system_type jffs2_fs_type = {
-- 
2.34.1

  parent reply	other threads:[~2024-04-22  5:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-05 10:01 syzbot
2024-04-05 12:01 ` syzbot
2024-04-22  5:10 ` Jeongjun Park
2024-04-22  5:23   ` syzbot
2024-04-22  5:29 ` Jeongjun Park [this message]
2024-04-22  5:46   ` 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=20240422052911.140041-1-aha310510@gmail.com \
    --to=aha310510@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+e84662c5f30b8c401437@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®