Re: Regression introduced bybfcfaa77bdf0f775263e906015982a608df01c76 (vfs: use 'unsigned long' accessesfor dcache name comparison and hashing)
From: Al Viro
Date: Thu Mar 22 2012 - 16:10:28 EST
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...
--
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/