]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: avoid race conditions when remounting with options that change dax
authorTheodore Ts'o <tytso@mit.edu>
Wed, 10 Jun 2020 15:16:37 +0000 (11:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Jun 2020 14:54:07 +0000 (10:54 -0400)
commitf34a32f64ecf9d16de248b9bdb0977dd60710999
tree6b3d844f91bd5b579907ccaf344e463f97cef692
parente6f699022ea2733ca8fc0191bd1a4acffc94ffef
ext4: avoid race conditions when remounting with options that change dax

Trying to change dax mount options when remounting could allow mount
options to be enabled for a small amount of time, and then the mount
option change would be reverted.

In the case of "mount -o remount,dax", this can cause a race where
files would temporarily treated as DAX --- and then not.

Cc: stable@kernel.org
Reported-by: syzbot+bca9799bf129256190da@syzkaller.appspotmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c