|
Lines 251-257
Link Here
|
| 251 |
} |
251 |
} |
| 252 |
|
252 |
|
| 253 |
/* Populate argv and envp */ |
253 |
/* Populate argv and envp */ |
| 254 |
p = current->mm->arg_start; |
254 |
p = current->mm->arg_end = current->mm->arg_start; |
| 255 |
while (argc-- > 0) { |
255 |
while (argc-- > 0) { |
| 256 |
size_t len; |
256 |
size_t len; |
| 257 |
__put_user((elf_addr_t)p, argv++); |
257 |
__put_user((elf_addr_t)p, argv++); |
|
Lines 1301-1307
Link Here
|
| 1301 |
static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p, |
1301 |
static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p, |
| 1302 |
struct mm_struct *mm) |
1302 |
struct mm_struct *mm) |
| 1303 |
{ |
1303 |
{ |
| 1304 |
int i, len; |
1304 |
unsigned int i, len; |
| 1305 |
|
1305 |
|
| 1306 |
/* first copy the parameters from user space */ |
1306 |
/* first copy the parameters from user space */ |
| 1307 |
memset(psinfo, 0, sizeof(struct elf_prpsinfo)); |
1307 |
memset(psinfo, 0, sizeof(struct elf_prpsinfo)); |