[Ocfs2-devel] [PATCH 2/2] Ocfs2/move_extents: Validate moving goal after the adjustment.
Mariusz Kozlowski
mk at lab.zgora.pl
Sat Jun 11 12:57:54 PDT 2011
Hi,
I think this one (ea5e1675 upstream) is wrong. Validation was moved
before 'bg' was assinged any sane value. Also 'bg' is defined with NULL
now so it hides real problem that 'bg' is used uninitialized. So currently
as 'bg' is NULL from the begining it will blow up with null pointer
dereference somewhere around test in line 489:
489: if (range->me_goal == le64_to_cpu(bg->bg_blkno))
490: range->me_goal += c_to_b;
Sorry for reply with no context but I'm not subscribed to ocfs2-devel.
--
Mariusz Kozlowski
More information about the Ocfs2-devel
mailing list