On Wed, Mar 18, 2020 at 10:13:18AM +0100, Jan Kara wrote: > On Wed 18-03-20 11:43:01, Ritesh Harjani wrote: > > 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@xxxxxxxxxxxxx> > > Yeah, makes sence. Thanks for the patch! You can add: > > Reviewed-by: Jan Kara <jack@xxxxxxx> Applied, thanks. - Ted