Files
linux/fs
Qian Cai 458a89fa90 iomap: fix WARN_ON_ONCE() from unprivileged users
[ Upstream commit a805c11165 ]

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@lca.pw>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 10:08:25 +01:00
..
2020-08-19 08:27:03 +02:00
2020-10-29 10:08:02 +01:00
2020-09-09 19:14:10 +02:00
2020-10-29 10:08:20 +01:00
2019-11-11 09:21:59 -05:00
2020-08-26 11:49:06 +02:00
2020-09-03 11:29:31 +02:00
2020-05-14 16:44:25 +02:00
2020-02-07 14:48:35 -05:00
2020-06-15 08:51:38 -06:00
2020-03-05 21:00:40 -05:00
2020-05-14 16:44:24 +02:00
2019-12-08 14:37:36 +01:00
2020-05-14 16:44:24 +02:00