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

Will Deacon will.deacon at arm.com
Thu Oct 3 12:13:33 EDT 2013


On Thu, Oct 03, 2013 at 06:47:43AM +0100, AKASHI Takahiro wrote:
> # 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?

We do have a 7 argument syscall on OABI ARM. See the original thread:

  http://lists.infradead.org/pipermail/linux-arm-kernel/2012-February/085509.html

Will



More information about the linux-arm-kernel mailing list