ULIMIT: limiting user virtual address space (stack inluded)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

According to the man page of "ulimit", it is possible to limit the virtual address space of a user process: https://ss64.com/bash/ulimit.html
To limit the virtual address space to 2 GB:
$ ulimit -SH -v 1048576 

However, it seems that "stack" allocation ignores this limit (I tried with both kernel 4.4 and 4.15).

I found this article (patch) that seems to fix the problem:
https://lwn.net/Articles/373701/

My questions are: 
- Why is the stack allocation not placed within the "ulimit" limit? (is it a bug?)
- Is there a way, in user space, to force the stack to be allocated at a certain address? 
- Will the patch above (or similar) ever be integrated into the Linux kernel?

Regards,
Mohamed

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux