diff options
author | Theodore Ts'o <tytso@mit.edu> | 2021-01-21 18:33:20 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-02-03 05:16:01 +0100 |
commit | 027f14f5357279655c3ebc6d14daff8368d4f53f (patch) | |
tree | c09d01267b542969dd3a72b93cfe4b6f1b069671 /samples/bpf/trace_output_kern.c | |
parent | ext4: use DEFINE_MUTEX() for mutex lock (diff) | |
download | linux-027f14f5357279655c3ebc6d14daff8368d4f53f.tar.xz linux-027f14f5357279655c3ebc6d14daff8368d4f53f.zip |
ext4: don't try to processed freed blocks until mballoc is initialized
If we try to make any changes via the journal between when the journal
is initialized, but before the multi-block allocated is initialized,
we will end up deferencing a NULL pointer when the journal commit
callback function calls ext4_process_freed_data().
The proximate cause of this failure was commit 2d01ddc86606 ("ext4:
save error info to sb through journal if available") since file system
corruption problems detected before the call to ext4_mb_init() would
result in a journal commit before we aborted the mount of the file
system.... and we would then trigger the NULL pointer deref.
Link: https://lore.kernel.org/r/YAm8qH/0oo2ofSMR@mit.edu
Reported-by: Murphy Zhou <jencce.kernel@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'samples/bpf/trace_output_kern.c')
0 files changed, 0 insertions, 0 deletions