[PATCH v2 0/3] arm, arm64: check for number of arguments in syscall_get/set_arguments()

AKASHI Takahiro takahiro.akashi at linaro.org
Thu Oct 3 01:47:43 EDT 2013


# added Roland <mcgrathr at 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(-)

-- 
1.7.9.5




More information about the linux-arm-kernel mailing list