Re: [syzbot] [fs?] KASAN: use-after-free Read in hpfs_count_dnodes

From: Edward Adam Davis

Date: Tue Oct 28 2025 - 11:10:33 EST


#syz test

diff --git a/fs/hpfs/map.c b/fs/hpfs/map.c
index be73233502f8..9036f1ee581d 100644
--- a/fs/hpfs/map.c
+++ b/fs/hpfs/map.c
@@ -257,7 +257,7 @@ struct dnode *hpfs_map_dnode(struct super_block *s, unsigned secno,
struct quad_buffer_head *qbh)
{
struct dnode *dnode;
- if (hpfs_sb(s)->sb_chk) {
+ /*if (hpfs_sb(s)->sb_chk)*/ {
if (hpfs_chk_sectors(s, secno, 4, "dnode")) return NULL;
if (secno & 3) {
hpfs_error(s, "dnode %08x not byte-aligned", secno);