From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+6a3aa63412255587b21b@syzkaller.appspotmail.com>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
syzkaller-bugs@googlegroups.com,
Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Subject: Re: [syzbot] [fs?] KASAN: slab-out-of-bounds Write in __put_unused_fd
Date: Wed, 1 Jan 2025 09:34:58 +0800 [thread overview]
Message-ID: <20250101013503.1189-1-hdanton@sina.com> (raw)
In-Reply-To: <6773f137.050a0220.2f3838.04e2.GAE@google.com>
On 12/31/24 2:27 PM, syzbot wrote:
> syzbot found the following issue on:
>
> HEAD commit: 8155b4ef3466 Add linux-next specific files for 20241220
> git tree: linux-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13f42ac4580000
Test Eric's patch.
#syz test
--- x/fs/notify/fanotify/fanotify_user.c
+++ y/fs/notify/fanotify/fanotify_user.c
@@ -1624,8 +1624,8 @@ SYSCALL_DEFINE2(fanotify_init, unsigned
file = anon_inode_getfile_fmode("[fanotify]", &fanotify_fops, group,
f_flags, FMODE_NONOTIFY);
if (IS_ERR(file)) {
- fd = PTR_ERR(file);
put_unused_fd(fd);
+ fd = PTR_ERR(file);
goto out_destroy_group;
}
fd_install(fd, file);
--
next prev parent reply other threads:[~2025-01-01 1:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-31 13:27 syzbot
2024-12-31 13:32 ` Eric Dumazet
2024-12-31 13:41 ` syzbot
2024-12-31 22:15 ` syzbot
2025-01-01 1:34 ` Hillf Danton [this message]
2025-01-01 2:03 ` syzbot
2025-01-06 11:15 ` Jan Kara
2025-01-06 11: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=20250101013503.1189-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=eric.dumazet@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+6a3aa63412255587b21b@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=viro@zeniv.linux.org.uk \
/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®