Re: Regression introduced by bfcfaa77bdf0f775263e906015982a608df01c76 (vfs: use 'unsigned long' accesses for dcache name comparison and hashing)

Al Viro
2012-03-22T20:10:32Z

On Thu, Mar 22, 2012 at 04:03:45PM -0400, Eric Paris wrote:
> Reverting this patch also fixed the spurious ENOENT problems (and
> related boot failures) from SELinux.
>
> Easy reproducer with SELinux enabled (although might I suggest
> permissive/enforcing=0 since the box can't boot otherwise):
>
> compute_create system_u:system_r:kernel_t:s0
> system_u:object_r:init_exec_t:s0 process
>
> If you get back system_u:object_r:init_exec_t:s0 it failed and you'll
> see under strace the ENOENT stat() failure.
>
> If you get back system_u:object_r:init_t:s0 it means it worked...

Unless I'm misreading that code, the problem should hit on names with
length being a multiple of 8...