diff options
author | Theodore Ts'o <tytso@mit.edu> | 2023-05-05 22:20:29 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-05-13 18:05:05 -0400 |
commit | 4c0b4818b1f636bc96359f7817a2d8bab6370162 (patch) | |
tree | fab933e7b6fadc2a7c08b70718704416fd96da04 /init | |
parent | 4b3cb1d108bfc2aebb0d7c8a52261a53cf7f5786 (diff) | |
download | lwn-4c0b4818b1f636bc96359f7817a2d8bab6370162.tar.gz lwn-4c0b4818b1f636bc96359f7817a2d8bab6370162.zip |
ext4: improve error recovery code paths in __ext4_remount()
If there are failures while changing the mount options in
__ext4_remount(), we need to restore the old mount options.
This commit fixes two problem. The first is there is a chance that we
will free the old quota file names before a potential failure leading
to a use-after-free. The second problem addressed in this commit is
if there is a failed read/write to read-only transition, if the quota
has already been suspended, we need to renable quota handling.
Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20230506142419.984260-2-tytso@mit.edu
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions