From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+09b7d050e4806540153d@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [fs?] BUG: unable to handle kernel NULL pointer dereference in filemap_read_folio (4)
Date: Sun, 17 Nov 2024 08:18:14 +0800 [thread overview]
Message-ID: <20241117001814.1342-1-hdanton@sina.com> (raw)
In-Reply-To: <67392d6d.050a0220.e1c64.000a.GAE@google.com>
On Sat, 16 Nov 2024 15:40:29 -0800
> syzbot found the following issue on:
>
> HEAD commit: 3022e9d00ebe Merge tag 'sched_ext-for-6.12-rc7-fixes' of g..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=159f8ce8580000
#syz test
--- x/mm/filemap.c
+++ y/mm/filemap.c
@@ -3781,6 +3781,8 @@ static struct folio *do_read_cache_folio
if (!filler)
filler = mapping->a_ops->read_folio;
+ if (!filler)
+ return ERR_PTR(-EINVAL);
repeat:
folio = filemap_get_folio(mapping, index);
if (IS_ERR(folio)) {
--
next prev parent reply other threads:[~2024-11-17 0:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-16 23:40 syzbot
2024-11-17 0:18 ` Hillf Danton [this message]
2024-11-17 0:37 ` syzbot
2025-04-06 23:09 ` 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=20241117001814.1342-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+09b7d050e4806540153d@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®