From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+4125a3c514e3436a02e6@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [xfs?] KASAN: null-ptr-deref Write in xfs_filestream_select_ag (2)
Date: Sun, 20 Oct 2024 11:35:08 +0800 [thread overview]
Message-ID: <tencent_87498E2ECA6EE38C96E7C6C6F952D3C65206@qq.com> (raw)
In-Reply-To: <6712b052.050a0220.10f4f4.001a.GAE@google.com>
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);
}
next prev parent reply other threads:[~2024-10-20 3:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-18 19:00 syzbot
2024-10-20 2:53 ` Edward Adam Davis
2024-10-20 3:14 ` syzbot
2024-10-20 3:35 ` Edward Adam Davis [this message]
2024-10-20 4:12 ` syzbot
2024-10-20 5:00 ` Edward Adam Davis
2024-10-20 5:27 ` syzbot
2024-10-20 5:30 ` [PATCH] xfs: If unable to pick perag an error needs to be returned Edward Adam Davis
2024-10-21 13:51 ` Dave Chinner
2024-10-22 9:41 ` [syzbot] [xfs?] KASAN: null-ptr-deref Write in xfs_filestream_select_ag (2) Christoph Hellwig
2024-10-22 10:11 ` syzbot
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=tencent_87498E2ECA6EE38C96E7C6C6F952D3C65206@qq.com \
--to=eadavis@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+4125a3c514e3436a02e6@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.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
all inboxes | Powered by JetHome®