Re: [PATCH 0/1] debugfs: debugfs_remove_recursive() must not relyon list_empty(d_subdirs)

From: Oleg Nesterov
Date: Fri Jul 26 2013 - 11:20:00 EST


Argh, sorry for noise.

Please ignore the extra email with the wrong subject.

On 07/26, Oleg Nesterov wrote:
>
> debugfs_remove_recursive() is wrong,
>
> 1. it wrongly assumes that !list_empty(d_subdirs) means that this
> dir should be removed.
>
> This is not that bad by itself, but:
>
> 2. if d_subdirs does not becomes empty after __debugfs_remove()
> it gives up and silently fails, it doesn't even try to remove
> other entries.
>
> However ->d_subdirs can be non-empty because it still has the
> already deleted !debugfs_positive() entries.
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/