diff options
author | Ritesh Harjani <riteshh@linux.ibm.com> | 2020-03-18 11:43:01 +0530 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-03-26 10:52:49 -0400 |
commit | 5e47868fb94b63c7068dcfd2469d99fba06bae9d (patch) | |
tree | d4fb41eae543918573f41d67885cef56f83e6b34 /fs/ext4/ialloc.c | |
parent | f1eec3b0d0a849996ebee733b053efa71803dad5 (diff) | |
download | linux-5e47868fb94b63c7068dcfd2469d99fba06bae9d.tar.gz linux-5e47868fb94b63c7068dcfd2469d99fba06bae9d.tar.bz2 linux-5e47868fb94b63c7068dcfd2469d99fba06bae9d.zip |
ext4: unregister sysfs path before destroying jbd2 journal
Call ext4_unregister_sysfs(), before destroying jbd2 journal,
since below might cause, NULL pointer dereference issue.
This got reported with LTP tests.
ext4_put_super() cat /sys/fs/ext4/loop2/journal_task
| ext4_attr_show();
ext4_jbd2_journal_destroy(); |
| journal_task_show()
| |
| task_pid_vnr(NULL);
sbi->s_journal = NULL;
Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20200318061301.4320-1-riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ialloc.c')
0 files changed, 0 insertions, 0 deletions