chiark / gitweb /
missing: Fix broken syscall(__NR_fanotify_mark... on o32 mips.
authorcee1 <fykcee1@gmail.com>
Wed, 20 Apr 2011 09:59:18 +0000 (17:59 +0800)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Apr 2011 02:19:22 +0000 (04:19 +0200)
commit373c23b27f2d886fc023cf5d02fe3bb3eba2e8e9
treeaeac71b98278831d7b97385686431a28be96181e
parent13f9123298ac70d5d05c1de5d6b93ff11af9ac55
missing: Fix broken syscall(__NR_fanotify_mark... on o32 mips.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23618562
MIPS o32 ABI enforces that 64bit arguments should be 64bit-aligned, and
the third argument of syscall(__NR_fanotify_mark, ...) is 64bit and not
64bit-aligned on o32 mips platform, thus extra padding is inserted
before it. The syscall function doesn't know the prototype of
fanotify_mark, so the padding will be passed into kernel as valid
argument.
src/missing.h