]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: fix inode crash in xfs_repair
authorMark Tinguely <tinguely@sgi.com>
Fri, 16 Aug 2013 18:12:43 +0000 (18:12 +0000)
committerRich Johnston <rjohnston@sgi.com>
Mon, 19 Aug 2013 16:01:12 +0000 (11:01 -0500)
commit3ac87fbf6ac29494dc46134323733551aac1737c
tree2bffcad80dd0e8d1234fd49752b885223575adbe
parent0340d706861a68205393b83e3a816e88383a05fa
xfsprogs: fix inode crash in xfs_repair

Adding the lost+found in phase 6 could allocate an inode from
a new inode chunk. Since this chunk was not around in phase 3
when the inode chunks are verificated and added to the avl tree,
the avl tree look up will return a NULL pointer. This results
in a NULL defererence and segmentation fault.

Add the newly created inode chunk as if found in the chunk
verification phase.

Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
repair/incore_ino.c
repair/phase6.c