Re: [PATCH v4] iomap: fix WARN_ON_ONCE() from unprivileged users
From: Christoph Hellwig
Date: Tue Sep 01 2020 - 01:21:34 EST
On Mon, Aug 31, 2020 at 02:23:53PM -0400, Qian Cai wrote:
> It is trivial to trigger a WARN_ON_ONCE(1) in iomap_dio_actor() by
> unprivileged users which would taint the kernel, or worse - panic if
> panic_on_warn or panic_on_taint is set. Hence, just convert it to
> pr_warn_ratelimited() to let users know their workloads are racing.
> Thank Dave Chinner for the initial analysis of the racing reproducers.
>
> Signed-off-by: Qian Cai <cai@xxxxxx>
Looks good,
Reviewed-by: Christoph Hellwig <hch@xxxxxx>