Skip to content

arm, arm64: check for number of arguments in syscall_get/set_arguments()

Will Deacon linux-arm-kernel lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 of 3 patches 0 repliesNew
  2. v11 patch 0 repliesSuperseded

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm64: check for number of arguments in syscall_get/set_arguments()+0 -00 replies
2/3arm: check for number of arguments in syscall_get/set_arguments()+0 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchWill Deacon
1/3A-b
2/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] arm, arm64: check for number of arguments in syscall_get/set_arguments()
Quoted 7 lines · AKASHI Takahiro
# 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?

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