Re: [PATCH] compat: fix sys_fanotify_mark

From: David Miller
Date: Wed Jan 15 2014 - 19:53:16 EST


From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
Date: Wed, 15 Jan 2014 12:45:57 +0100

> 91c2e0bcae72 "unify compat fanotify_mark(2), switch to COMPAT_SYSCALL_DEFINE"
> added a new unified compat fanotify_mark syscall to be used by all
> architectures.
> Unfortunately the unified version merges the split mask parameter in a
> wrong way: the lower and higher word got swapped.
>
> This was discovered with glibc's tst-fanotify test case.
>
> Reported-by: Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
> Cc: "James E.J. Bottomley" <jejb@xxxxxxxxxxxxxxxx>
> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx # v3.10+
> Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
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/