[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_3D5A3D31368C961236E64AB074D777FD6609@qq.com>
Date: Sun, 20 Oct 2024 13:00:46 +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)
can't pick any perpag
#syz test
diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c
index e3aaa0555597..dd8f193a3957 100644
--- a/fs/xfs/xfs_filestream.c
+++ b/fs/xfs/xfs_filestream.c
@@ -165,6 +165,10 @@ xfs_filestream_pick_ag(
trace_xfs_filestream_pick(pag, pino, free);
args->pag = pag;
+
+ if (!args->pag)
+ return -ENOSPC;
+
return 0;
}
Powered by blists - more mailing lists