|
@@ -277,7 +277,7 @@ static int __bprm_mm_init(struct linux_binprm *bprm)
|
|
* use STACK_TOP because that can depend on attributes which aren't
|
|
* use STACK_TOP because that can depend on attributes which aren't
|
|
* configured yet.
|
|
* configured yet.
|
|
*/
|
|
*/
|
|
- BUG_ON(VM_STACK_FLAGS & VM_STACK_INCOMPLETE_SETUP);
|
|
|
|
|
|
+ BUILD_BUG_ON(VM_STACK_FLAGS & VM_STACK_INCOMPLETE_SETUP);
|
|
vma->vm_end = STACK_TOP_MAX;
|
|
vma->vm_end = STACK_TOP_MAX;
|
|
vma->vm_start = vma->vm_end - PAGE_SIZE;
|
|
vma->vm_start = vma->vm_end - PAGE_SIZE;
|
|
vma->vm_flags = VM_STACK_FLAGS | VM_STACK_INCOMPLETE_SETUP;
|
|
vma->vm_flags = VM_STACK_FLAGS | VM_STACK_INCOMPLETE_SETUP;
|