[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_87498E2ECA6EE38C96E7C6C6F952D3C65206@qq.com>
Date: Sun, 20 Oct 2024 11:35:08 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+4125a3c514e3436a02e6@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [xfs?] KASAN: null-ptr-deref Write in xfs_filestream_select_ag (2)
catch can't pick any perpag
#syz test
diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c
index e3aaa0555597..f4c731fd61ea 100644
--- a/fs/xfs/xfs_filestream.c
+++ b/fs/xfs/xfs_filestream.c
@@ -159,6 +159,8 @@ xfs_filestream_pick_ag(
free = maxfree;
atomic_inc(&pag->pagf_fstrms);
}
+
+ return -ENOSPC;
} else if (max_pag) {
xfs_perag_rele(max_pag);
}
Powered by blists - more mailing lists