Skip to contentSkip to conversation

NULL pointer dereference in function ocfs2_abort_trigger

Ocfs2-devel Xue jiufei 2 participants 2 messages May 18, 2015 – May 20, 2015 OCFS2

lore
Share & tools
lore

Xue jiufei

author
#0 lore raw

Hi all,
Function ocfs2_abort_trigger() use bh->b_assoc_map to get super block. But I cannot find any function to set bh->b_assoc_map in ocfs2. So it will trigger NULL pointer dereference while calling this function.

I am wonder that whether function t_abort->ocfs2_abort_trigger() can be deleted from ocfs2.

Thanks very much.

#1 lore raw
Quoted 8 lines · Xue jiufei

Hi all,
Function ocfs2_abort_trigger() use bh->b_assoc_map to get super block. But I cannot find any function to set bh->b_assoc_map in ocfs2. So it will trigger NULL pointer dereference while calling this function.

I am wonder that whether function t_abort->ocfs2_abort_trigger() can be deleted from ocfs2.

Better not, jdb2 aborted due to some error, let ocfs2 continue may cause corruption.

Thanks,
Junxiao.

Quoted 9 lines

Thanks very much.

_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel