Limit and protect execve arguments
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 8 repliesIn review
- v11 patch 8 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | linux-user: limit number of arguments to execvelinux-user/ | +6 | 2 replies | |
| 2/2 | linux-user: allocate heap memory for execve argumentslinux-user/ | +5 | 6 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [Qemu-devel] [PATCH v2 0/2] Limit and protect execve arguments
From: Prasad J Pandit <[email protected]>
Hello,
A user program could pass large number of 'argv','env' arguments to an execve(2) call. It could lead to bad behaviour as the TARGET_NR_execve:
allocates stack memory(via alloca) for these arguments. alloca(3) is better for allocations of upto one page(4KB) of stack memory. As anything more could smash stack protectors in place.
This patch(v2) set attempts to fix these issues.
-> https://lists.gnu.org/archive/html/qemu-devel/2017-03/msg00750.html
Thank you.
--
Prasad J Pandit (2):
linux-user: limit number of arguments to execve
linux-user: allocate heap memory for execve arguments
linux-user/syscall.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
--
2.9.3