1
0
Fork 0
alistair23-linux/fs/iomap
Qian Cai ff9c607f03 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 09:58:06 +01:00
..
Makefile iomap: fix Invalid License ID 2019-07-25 11:05:11 +02:00
apply.c iomap: move internal declarations into fs/iomap/ 2019-07-17 07:21:02 -07:00
buffered-io.c iomap: Clear page error before beginning a write 2020-10-29 09:57:39 +01:00
direct-io.c iomap: fix WARN_ON_ONCE() from unprivileged users 2020-10-29 09:58:06 +01:00
fiemap.c iomap: move internal declarations into fs/iomap/ 2019-07-17 07:21:02 -07:00
seek.c iomap: move internal declarations into fs/iomap/ 2019-07-17 07:21:02 -07:00
swapfile.c iomap: move internal declarations into fs/iomap/ 2019-07-17 07:21:02 -07:00