From: sashiko-bot@kernel.org
To: "Elliot Berman" <elliotjb@elliotjb.com>
Cc: linux-ext4@vger.kernel.org, tytso@mit.edu
Subject: Re: [PATCH 6.1.y 1/2] ext4: fix NULL folio dereference in mballoc
Date: Mon, 02 Nov 2026 14:42:32 +0000 [thread overview]
Message-ID: <sashiko-outbox-193594@kernel.org> (raw)
In-Reply-To: <20261102-ext4-ntfs3-null-folio-v1-1-4fd91ee23a4a@elliotjb.com>
> In 6.1, __filemap_get_folio() returns NULL on failure. The backported
> folio conversion of mballoc keeps the original IS_ERR() checks, so they
> are always false here. The fast-path lookup in ext4_mb_load_buddy_gfp()
> has no FGP_CREAT and returns NULL whenever the bitmap or buddy page of
> an initialised group has been evicted from the page cache, e.g. by
> drop_caches or memory pressure. The next block allocation from that
> group then oopses under ext4_mb_regular_allocator().
>
> $ echo 3 > /proc/sys/vm/drop_caches, in 0.51 seconds)
> $ dd if=/dev/zero of=/mnt/b0 bs=1M count=4 conv=fsync
> BUG: kernel NULL pointer dereference, address: 0000000000000000
> PGD 5f19067 P4D 0
> Oops: 0000 [#1] PREEMPT SMP NOPTI
> CPU: 0 PID: 908 Comm: dd Not tainted 6.1.191 #1-NixOS
> Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014
> [ ... ]
>
> Fixes: d34e4fd4e73f ("ext4: convert bd_bitmap_page to bd_bitmap_folio")
> Fixes: 862483175d3d ("ext4: convert bd_buddy_page to bd_buddy_folio")
> Reported-by: Tom Bereknyei <tomberek@gmail.com>
> Signed-off-by: Elliot Berman <elliotjb@elliotjb.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261102-ext4-ntfs3-null-folio-v1-0-4fd91ee23a4a@elliotjb.com?part=1
next prev parent reply other threads:[~2026-11-02 14:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 14:37 [PATCH 6.1.y 0/2] Fix NULL folio dereferences from IS_ERR() checks in 6.1.191 Elliot Berman
2026-11-02 14:37 ` [PATCH 6.1.y 1/2] ext4: fix NULL folio dereference in mballoc Elliot Berman
2026-11-02 14:42 ` sashiko-bot [this message]
2026-11-02 14:37 ` [PATCH 6.1.y 2/2] bs/ntfs3: fix NULL folio dereference in ntfs_lock_new_page() Elliot Berman
2026-11-02 14:40 ` sashiko-bot
2026-11-02 17:22 ` [PATCH 6.1.y 0/2] Fix NULL folio dereferences from IS_ERR() checks in 6.1.191 Naman Jain
2026-11-03 1:42 ` Kevin Fernandez
2026-11-04 15:03 ` Sasha Levin
2026-11-03 14:51 ` Sasha Levin
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=sashiko-outbox-193594@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=elliotjb@elliotjb.com \
--cc=linux-ext4@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=tytso@mit.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.