[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YlRBULlBDO7LnbVi@infradead.org>
Date: Mon, 11 Apr 2022 07:55:12 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Zixuan Fu <r33s3n6@...il.com>
Cc: djwong@...nel.org, linux-xfs@...r.kernel.org,
linux-kernel@...r.kernel.org, baijiaju1990@...il.com,
TOTE Robot <oslab@...nghua.edu.cn>
Subject: Re: [PATCH] fs: xfs: fix possible NULL pointer dereference in
xfs_rw_bdev()
On Mon, Apr 11, 2022 at 07:31:45PM +0800, Zixuan Fu wrote:
> In our fault-injection testing, bio_alloc() may fail with low memory and
> return NULL.
Well, in that case your fault injection seems to be completely broken.
Please take a closer look at how bio_alloc is implemented and
documented.
Powered by blists - more mailing lists