# added Roland mcgrathr@chromium in CC for asm-generic/syscall.h
I modified my patch based on Will's comments. Speaking of arm, i + n is checked against SYSCALL_MAX_ARGS (== 7), but it seems that the kernel code assumes that the current max number of arguments would be 6. For example, SYSCALL_DEFINEn are defined from 0 to 6. Am i wrong?
Changes: * added a patch to arm as well * added a patch to asm-generic/syscall.h; corrected the description on syscall_get_arguments() and syscall_put_arguments() * removed portion of commit message which referred to asm-generic/syscall.h in arm64
AKASHI Takahiro (3): arm64: check for number of arguments in syscall_get/set_arguments() arm: check for number of arguments in syscall_get/set_arguments() asm-generic: syscall_get/set_arguments accept zero for number of arguments
arch/arm/include/asm/syscall.h | 6 ++++++ arch/arm64/include/asm/syscall.h | 6 ++++++ include/asm-generic/syscall.h | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-)