[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YKaXRaJJOeOgMaGq@slm.duckdns.org>
Date: Thu, 20 May 2021 13:07:17 -0400
From: Tejun Heo <tj@...nel.org>
To: Dmitry Monakhov <dmtrmonakhov@...dex-team.ru>
Cc: linux-kernel@...r.kernel.org, axboe@...nel.dk
Subject: Re: [PATCH] blk-throttle: fix race between submitter and throttler
thread
Hello, Dmitry.
On Thu, May 20, 2021 at 08:00:51PM +0300, Dmitry Monakhov wrote:
> >> + BUG_ON(!bio_flagged(parent, BIO_CHAIN));
> >
> > Let's do WARN_ON_ONCE().
> If we hit this point when this mean that ->bio_end_io will be called for parent bio.
> Which likely result in use-after-free for that bio and silent data corruption for bio's pages
> So IMHO BUG_ON is more appropriate here. What do you think?
I see. That makes sense. Can you add a comment explaining the above?
Thanks.
--
tejun
Powered by blists - more mailing lists