]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: disallow files with EXT4_JOURNAL_DATA_FL from EXT4_IOC_SWAP_BOOT
authorTheodore Ts'o <tytso@mit.edu>
Mon, 11 Feb 2019 06:07:10 +0000 (01:07 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Feb 2019 06:07:10 +0000 (01:07 -0500)
commite273f40f126a3ef7d9a2dbb926baf319d60a512e
treed6c8cb6b4bcf16c569c3e048296411eab08d0b5d
parent1ea35810f0c5a37e708fc8603c64d7bbad38f383
ext4: disallow files with EXT4_JOURNAL_DATA_FL from EXT4_IOC_SWAP_BOOT

A malicious/clueless root user can use EXT4_IOC_SWAP_BOOT to force a
corner casew which can lead to the file system getting corrupted.
There's no usefulness to allowing this, so just prohibit this case.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ioctl.c