[Ocfs2-devel] [PATCH] ocfs2: check if cluster name exists before deref

Sasha Levin sasha.levin at oracle.com
Wed Mar 26 15:23:41 PDT 2014


On 03/26/2014 06:00 PM, Mark Fasheh wrote:
> On Tue, Mar 25, 2014 at 01:21:58PM -0400, Sasha Levin wrote:
>> As a side note, how the hell was this new code path tested?
>> It's obviously broken and there's no way it even passes
>> a very basic test.
>
> I'm not trying to 'defend' Goldwyn, or anything, but mistakes get made -
> it's a fact of life. We have a review process to hopefully catch these sorts
> of things, you are welcome to take part in it. In fact, if you were
> willing to test and report these sorts of things to the Ocfs2-devel list
> before they go upstream that would probably help prevent this sort of thing
> from happening in the future.

Hi Mark,

I'm fuzz testing the kernel and not really testing or reviewing any subsystem
in particular.

My frustration about not testing it was because it's so simple to reproduce this
issue:

  # mount -t ocfs2_dlmfs ocfs2_dlmfs dlm
  # mkdir dlm/anything
  [ boom ]

This is a very basic test that should have been run more than once before this
patch made it into Linus's tree. Whether as part of some ocfs2 test suite or
maybe xfstest.

My beef is not with Goldwyn not testing that path, it's more with whatever
process (or lack thereof) ocfs2 has to test and verify patches before
they make it upstream. Even if Goldwyn missed it, it should have been
caught at a different place on it's way.


Thanks,
Sasha



More information about the Ocfs2-devel mailing list