Re: [RFC][PATCH] debugfs: Fix corrupted loop in debugfs_remove_recursive

From: Steven Rostedt
Date: Tue Jun 10 2014 - 09:34:09 EST


On Mon, 9 Jun 2014 14:06:07 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> [ I'm currently running my tests on it now, and so far, after a few
> hours it has yet to blow up. I'll run it for 24 hours which it never
> succeeded in the past. ]

I ran with this patch on three boxes all night, one for 24 hours. No
problems. I stopped the tests, removed the patch, ran the test on the
same boxes and they all crashed within an hour.

This patch definitely fixes the bug.

The test I ran was:

while :; do
./ftrace-test-mkinstances || break
./ftrace-test-mkinstances-2 || break
done

Note, the tests expect debugfs to be mounted at /debug.

-- Steve

Attachment: ftrace-test-mkinstances
Description: Binary data

Attachment: ftrace-test-mkinstances-2
Description: Binary data