diff options
| author | Theodore Ts'o <[email protected]> | 2023-05-06 02:20:29 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2023-05-13 22:05:05 +0000 |
| commit | 4c0b4818b1f636bc96359f7817a2d8bab6370162 (patch) | |
| tree | fab933e7b6fadc2a7c08b70718704416fd96da04 /lib/debugobjects.c | |
| parent | ext4: improve error handling from ext4_dirhash() (diff) | |
| download | kernel-4c0b4818b1f636bc96359f7817a2d8bab6370162.tar.gz kernel-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: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
