[grsec] how to patch grsec for 2.4.29-pre2?

pageexec at freemail.hu pageexec at freemail.hu
Tue Dec 21 17:26:03 EST 2004


> ***************
> *** 86,91 ****
>    if (end <= start)
>     return;
>    do_brk(start, end - start);
>   }
> 
> 
> --- 89,100 ----

look at 2.6.9, i think it's the exact same code there and is properly resolved.

> *** 834,846 ****
>    current->mm->end_data = end_data;
>    current->mm->start_stack = bprm->p;
> 
> - 	/* Calling set_brk effectively mmaps the pages that we need
> - 	 * for the bss and break sections
> - 	 */
> - 	set_brk(elf_bss, elf_brk);
> - 
> - 	padzero(elf_bss);
> - 
>   #if 0
>    printk("(start_brk) %lx\n" , (long) current->mm->start_brk);
>    printk("(end_code) %lx\n" , (long) current->mm->end_code);
> --- 1188,1193 ----

PaX did this move a long time ago, you can ignore this chunk.



More information about the grsecurity mailing list