From: Ron Economos <re@w6rz.net>
To: wangkefeng.wang@huawei.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org
Cc: ziy@nvidia.com, jackmanb@google.com, david@redhat.com,
jane.chu@oracle.com, hannes@cmpxchg.org, willy@infradead.org,
muchun.song@linux.dev, osalvador@suse.de,
sidhartha.kumar@oracle.com, vbabka@suse.cz,
claudiu.beznea.uj@bp.renesas.com, Mark Brown <broonie@kernel.org>,
akpm@linux-foundation.org, pjw@kernel.org
Subject: mm: Regression with v7.0-rc1 on RISC-V
Date: Tue, 24 Feb 2026 00:37:01 -0800 [thread overview]
Message-ID: <1b17c38f-30d3-4bb4-a7e1-e74b19ada885@w6rz.net> (raw)
I'm getting a BUG dump during shutdown with Linux v7.0-rc1 on RISC-V.
[ OK ] Reached target shutdown.target - System Shutdown.
[ OK ] Reached target final.target - Late Shutdown Services.
[ OK ] Finished systemd-reboot.service - System Reboot.
[ OK ] Reached target reboot.target - System Reboot.
[ 173.985249] BUG: Bad page state in process shutdown pfn:f8850
[ 173.985311] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xf8850
[ 173.985336] flags: 0xffff80000000000(node=0|zone=0|lastcpupid=0x1ffff) CMA
[ 173.985365] raw: 0ffff80000000000 ffffffc501e21448 ffffffc600f2ae88 0000000000000000
[ 173.985386] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[ 173.985403] page dumped because: nonzero _refcount
[ 173.985418] Modules linked in: qrtr cfg80211 da9063_onkey binfmt_misc at24 lm90 nls_iso8859_1 pwm_fan sch_fq_codel dm_multipath
nvme_fabrics efi_pstore nfsd auth_rpcgss nfs_acl lockd grace sunrpc nfnetlink autofs4 btrfs libblake2b raid10 raid456
async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq raid1 raid0 linear mmc_spi crc7 of_mmc_spi rtc_da9063
crc_itu_t da9063_regulator mscc nvme macsec phy_package nvme_core nvme_keyring nvme_auth hkdf macb phylink spi_sifive i2c_ocores
[ 173.985802] CPU: 3 UID: 0 PID: 1 Comm: shutdown Not tainted 7.0.0-rc1 #2 PREEMPT(full)
[ 173.985814] Hardware name: SiFive HiFive Unmatched A00 (DT)
[ 173.985820] Call Trace:
[ 173.985827] [<ffffffff8001bfd4>] dump_backtrace+0x1c/0x30
[ 173.985850] [<ffffffff80002522>] show_stack+0x2a/0x3c
[ 173.985861] [<ffffffff8001395e>] dump_stack_lvl+0x46/0x6c
[ 173.985877] [<ffffffff80013998>] dump_stack+0x14/0x1e
[ 173.985886] [<ffffffff80317fe4>] bad_page+0x12c/0x170
[ 173.985905] [<ffffffff8031bb14>] __free_frozen_pages+0x634/0x830
[ 173.985919] [<ffffffff8031bd88>] __free_contig_frozen_range+0x78/0xe8
[ 173.985929] [<ffffffff8031bec0>] free_contig_frozen_range+0xc8/0x1e8
[ 173.985940] [<ffffffff803a15a0>] __cma_release_frozen+0x60/0x1c8
[ 173.985959] [<ffffffff803a27c6>] cma_release+0x26/0x40
[ 173.985969] [<ffffffff800fcf96>] dma_free_contiguous+0xde/0x178
[ 173.985981] [<ffffffff800fbba4>] dma_direct_free+0x104/0x198
[ 173.985990] [<ffffffff800fa19e>] dma_free_attrs+0x66/0x1e8
[ 173.986002] [<ffffffff028780ec>] macb_free_consistent+0xbc/0x160 [macb]
[ 173.986132] [<ffffffff02878274>] macb_close+0xe4/0x120 [macb]
[ 173.986169] [<ffffffff80cae9fe>] __dev_close_many+0xa6/0x1d0
[ 173.986184] [<ffffffff80caeb94>] netif_close_many+0x6c/0x118
[ 173.986193] [<ffffffff80caec98>] netif_close+0x58/0x70
[ 173.986201] [<ffffffff80cbab84>] dev_close+0x6c/0x98
[ 173.986216] [<ffffffff02874518>] macb_shutdown+0x48/0x68 [macb]
[ 173.986254] [<ffffffff809bc9c6>] platform_shutdown+0x16/0x30
[ 173.986277] [<ffffffff809b7126>] device_shutdown+0x11e/0x208
[ 173.986287] [<ffffffff80070f26>] kernel_restart+0x36/0x98
[ 173.986304] [<ffffffff80071276>] __do_sys_reboot+0x14e/0x230
[ 173.986314] [<ffffffff8007136e>] __riscv_sys_reboot+0x16/0x28
[ 173.986324] [<ffffffff80f26d6a>] do_trap_ecall_u+0x1aa/0x578
[ 173.986339] [<ffffffff80f37c58>] handle_exception+0x168/0x174
[ 173.986359] Disabling lock debugging due to kernel taint
I've bisected it to commit "mm: cma: add cma_alloc_frozen{_compound}()" 9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f
Here's the bisect log.
git bisect start
# status: waiting for both good and bad commits
# bad: [cee73b1e840c154f64ace682cb477c1ae2e29cc4] Merge tag 'riscv-for-linus-7.0-mw1' of
git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
git bisect bad cee73b1e840c154f64ace682cb477c1ae2e29cc4
# status: waiting for good commit(s), bad commit known
# good: [8383522821c6fea6bbb4bc0317056c433a482a95] Merge branch 'net-mscc-ocelot-fix-missing-lock-in-ocelot_port_xmit'
git bisect good 8383522821c6fea6bbb4bc0317056c433a482a95
# good: [37a93dd5c49b5fda807fd204edf2547c3493319c] Merge tag 'net-next-7.0' of
git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
git bisect good 37a93dd5c49b5fda807fd204edf2547c3493319c
# bad: [4cff5c05e076d2ee4e34122aa956b84a2eaac587] Merge tag 'mm-stable-2026-02-11-19-22' of
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
git bisect bad 4cff5c05e076d2ee4e34122aa956b84a2eaac587
# bad: [fde8353121aa304ee88542f011dd5dc83ced47e4] selftests/mm: report SKIP in pfnmap if a check fails
git bisect bad fde8353121aa304ee88542f011dd5dc83ced47e4
# good: [743758ccf8bede3e7c38f3f7d3f5131aa0a7b4a6] Revert "mm/hugetlb: deal with multiple calls to hugetlb_bootmem_alloc"
git bisect good 743758ccf8bede3e7c38f3f7d3f5131aa0a7b4a6
# bad: [2f5e576598c915db18b7ccd0003be52458959ce7] powerpc/mm: implement *_user_accessible_page() for ptes
git bisect bad 2f5e576598c915db18b7ccd0003be52458959ce7
# good: [6c08cc64d194dc5cc3dfc785517098d3b161c05f] mm: cma: kill cma_pages_valid()
git bisect good 6c08cc64d194dc5cc3dfc785517098d3b161c05f
# bad: [4bdd692291275eaaabe993e1c4a7b5b01cd6dc37] mm/damon/lru_sort: add monitoring intervals auto-tuning parameter
git bisect bad 4bdd692291275eaaabe993e1c4a7b5b01cd6dc37
# bad: [fbec8a1e4fa4daf2611c9a3e3b29d03a73acbd0c] mm/damon/sysfs-schemes: support DAMOS_QUOTA_[IN]ACTIVE_MEM_BP
git bisect bad fbec8a1e4fa4daf2611c9a3e3b29d03a73acbd0c
# bad: [14f270761d3374db24c84630f2aa7a3c732fed4a] mm: hugetlb: allocate frozen pages for gigantic allocation
git bisect bad 14f270761d3374db24c84630f2aa7a3c732fed4a
# bad: [9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f] mm: cma: add cma_alloc_frozen{_compound}()
git bisect bad 9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f
# good: [e0c1326779cc1b8e3a9e30ae273b89202ed4c82c] mm: page_alloc: add alloc_contig_frozen_{range,pages}()
git bisect good e0c1326779cc1b8e3a9e30ae273b89202ed4c82c
# first bad commit: [9bda131c6093e9c4a8739e2eeb65ba4d5fbefc2f] mm: cma: add cma_alloc_frozen{_compound}()
It doesn't revert cleanly, so I couldn't try that.
next reply other threads:[~2026-02-24 8:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-24 8:37 Ron Economos [this message]
2026-02-24 11:00 ` David Hildenbrand (Arm)
2026-02-24 12:58 ` Kefeng Wang
2026-02-24 13:25 ` Ron Economos
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=1b17c38f-30d3-4bb4-a7e1-e74b19ada885@w6rz.net \
--to=re@w6rz.net \
--cc=akpm@linux-foundation.org \
--cc=broonie@kernel.org \
--cc=claudiu.beznea.uj@bp.renesas.com \
--cc=david@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=jackmanb@google.com \
--cc=jane.chu@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-riscv@lists.infradead.org \
--cc=muchun.song@linux.dev \
--cc=osalvador@suse.de \
--cc=pjw@kernel.org \
--cc=sidhartha.kumar@oracle.com \
--cc=vbabka@suse.cz \
--cc=wangkefeng.wang@huawei.com \
--cc=willy@infradead.org \
--cc=ziy@nvidia.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