Documentation: Document the kernel flag bdev_allow_write_mounted
authorGuilherme G. Piccoli <gpiccoli@igalia.com>
Wed, 28 Aug 2024 14:48:58 +0000 (11:48 -0300)
committerJonathan Corbet <corbet@lwn.net>
Thu, 5 Sep 2024 20:18:28 +0000 (14:18 -0600)
commite04eb52bfaf436e5d04e3a774a60e753a5a2f49e
treeea5cfbba04720b6eeb88db86bccaa9135647faf7
parent34ea875cca2c2fa4ec8b70fc2b21ee6c7878740e
Documentation: Document the kernel flag bdev_allow_write_mounted

Commit ed5cc702d311 ("block: Add config option to not allow writing to mounted
devices") added a Kconfig option along with a kernel command-line tuning to
control writes to mounted block devices, as a means to deal with fuzzers like
Syzkaller, that provokes kernel crashes by directly writing on block devices
bypassing the filesystem (so the FS has no awareness and cannot cope with that).

The patch just missed adding such kernel command-line option to the kernel
documentation, so let's fix that.

Cc: Bart Van Assche <bvanassche@acm.org>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240828145045.309835-1-gpiccoli@igalia.com
Documentation/admin-guide/kernel-parameters.txt