android_kernel_xiaomi_sm8350/fs/jbd2
Mingming Cao b048d84626 jbd2: Add error check to journal_wait_on_commit_record to avoid oops
The buffer head pointer passed to journal_wait_on_commit_record() could
be NULL if the previous journal_submit_commit_record() failed or journal
has already aborted.

Looking at the jbd2 debug messages, before the oops happened, the jbd2
is aborted due to trying to access the next log block beyond the end
of device. This might be caused by using a corrupted image.

We need to check the error returns from journal_submit_commit_record()
and avoid calling journal_wait_on_commit_record() in the failure case.

This addresses Kernel Bugzilla #9849

Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-05 08:52:45 -05:00
..
checkpoint.c spinlock: lockbreak cleanup 2008-01-30 13:31:20 +01:00
commit.c jbd2: Add error check to journal_wait_on_commit_record to avoid oops 2008-02-05 08:52:45 -05:00
journal.c jbd2: Mark jbd2 slabs as SLAB_TEMPORARY 2008-01-28 23:58:27 -05:00
Makefile [PATCH] jbd2: rename jbd2 symbols to avoid duplication of jbd symbols 2006-10-11 11:14:15 -07:00
recovery.c BKL-removal: remove incorrect comment refering to lock_kernel() from jbd/jbd2 2008-02-06 10:41:20 -08:00
revoke.c jbd2: Mark jbd2 slabs as SLAB_TEMPORARY 2008-01-28 23:58:27 -05:00
transaction.c jbd2: sparse pointer use of zero as null 2008-01-28 23:58:27 -05:00