public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] xfs: handle ERR_PTR return from bio_split
@ 2026-04-18  9:27 Long Li
  2026-04-18  9:27 ` [PATCH 1/3] xfs: handle ERR_PTR return from bio_split in xfs_buf_submit_bio Long Li
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Long Li @ 2026-04-18  9:27 UTC (permalink / raw)
  To: djwong, cem
  Cc: linux-xfs, david, yi.zhang, houtao1, leo.lilong, yangerkun,
	lonuxli.64

bio_split() now returns ERR_PTR() on failure rather than NULL. xfs code
currently ignores the return value of bio_split() and dereferences it
unconditionally, which will crash if bio_split() returns an error pointer.

Add an IS_ERR() check after bio_split(), and perform corresponding error
handling.

Long Li (3):
  xfs: handle ERR_PTR return from bio_split in xfs_buf_submit_bio
  xfs: handle ERR_PTR return from bio_split in xlog_write_iclog
  xfs: handle ERR_PTR return from bio_split in xfs_zone_gc_split_write

 fs/xfs/xfs_buf.c     |  6 ++++++
 fs/xfs/xfs_log.c     |  2 ++
 fs/xfs/xfs_zone_gc.c | 10 +++++++++-
 3 files changed, 17 insertions(+), 1 deletion(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-04-21  8:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-18  9:27 [PATCH 0/3] xfs: handle ERR_PTR return from bio_split Long Li
2026-04-18  9:27 ` [PATCH 1/3] xfs: handle ERR_PTR return from bio_split in xfs_buf_submit_bio Long Li
2026-04-21  8:18   ` Donald Douwsma
2026-04-18  9:27 ` [PATCH 2/3] xfs: handle ERR_PTR return from bio_split in xlog_write_iclog Long Li
2026-04-18  9:27 ` [PATCH 3/3] xfs: handle ERR_PTR return from bio_split in xfs_zone_gc_split_write Long Li
2026-04-21  8:29 ` [PATCH 0/3] xfs: handle ERR_PTR return from bio_split Carlos Maiolino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox