Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argument size

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roland McGrath
Date: Tuesday, September 14, 2010 - 11:51 am

> no it doesn't have to, similarly to how it doesn't have to hardcode

I was referring to the ways available to userland heretofore.  Certainly,
the kernel could add new ways and then userland could do different things
(with new kernels).  

auxv in particular is not a mechanism that could fit for this.  The actual
limit depends on rlimits of the calling process, and rlimits can change
during the life of the program.  auxv is only appropriate for things that
are known at the time of the exec and won't change thereafter.


Thanks,
Roland
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] execve argument-copying fixes, Roland McGrath, (Tue Sep 7, 7:34 pm)
Re: [PATCH 0/3] execve argument-copying fixes, KOSAKI Motohiro, (Tue Sep 7, 8:00 pm)
[PATCH 0/2] execve memory exhaust of argument-copying fixes, KOSAKI Motohiro, (Wed Sep 8, 10:01 pm)
[PATCH 1/2] oom: don't ignore rss in nascent mm, KOSAKI Motohiro, (Wed Sep 8, 10:03 pm)
Re: [PATCH 1/2] oom: don't ignore rss in nascent mm, Oleg Nesterov, (Thu Sep 9, 3:05 pm)
Re: [PATCH 1/2] oom: don't ignore rss in nascent mm, Roland McGrath, (Fri Sep 10, 2:39 am)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ..., Roland McGrath, (Tue Sep 14, 11:51 am)
Re: [PATCH 2/2] execve: check the VM has enough memory at ..., KOSAKI Motohiro, (Wed Sep 15, 10:51 pm)