Re: [LTP] [PATCH] fix fanotify syscall check on compat kernel

chrubis
2014-04-17T16:57:56Z

Hi!
> The fanotify[0-5] testcases use the myfanotify_mark() wrapper for the
> fanotify_mark() syscall. But the #define does not take into account, that
> the mask field is actually of type _u64 where we need to split the hi
> and low word in the syscall on a 32bit arch.
>
> The attached patch converts the #define to a inline function where
> the compiler will help to convert the given values to the correct types
> (e.g. unsigned long).
>
> Bug found and tested on the parisc/hppa (32bit userspace with 64bit
> kernel) arch.

I've pushed slightly modified version of this patch. Please check that
it works fine for you.