[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <164605542062.3958.11033668942703223709.b4-ty@kernel.dk>
Date: Mon, 28 Feb 2022 06:37:00 -0700
From: Jens Axboe <axboe@...nel.dk>
To: mingo@...hat.com, rostedt@...dmis.org, gregkh@...uxfoundation.org,
Yu Kuai <yukuai3@...wei.com>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
yi.zhang@...wei.com
Subject: Re: [PATCH v2] blktrace: fix use after free for struct blk_trace
On Mon, 28 Feb 2022 11:43:54 +0800, Yu Kuai wrote:
> When tracing the whole disk, 'dropped' and 'msg' will be created
> under 'q->debugfs_dir' and 'bt->dir' is NULL, thus blk_trace_free()
> won't remove those files. What's worse, the following UAF can be
> triggered because of accessing stale 'dropped' and 'msg':
>
> ==================================================================
> BUG: KASAN: use-after-free in blk_dropped_read+0x89/0x100
> Read of size 4 at addr ffff88816912f3d8 by task blktrace/1188
>
> [...]
Applied, thanks!
[1/1] blktrace: fix use after free for struct blk_trace
commit: 30939293262eb433c960c4532a0d59c4073b2b84
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists