Message375245
I have 8GB of ram and 128 GB of hard disk.
Now, creating a shared memory segment of size 10^12 (1 terabyte) somehow succeeds.
Creating a shared memory segment of 10^15 (1 petabyte), mmap (not ftruncate) throws an error stating cannot allocate memory.
Creating a shared memory segment of 10^18 (1 exabyte), causes the system to crash.
Now, I understand that this should be documented for a genuine user.
But, if documented this can be used by malicious softwares using python to crash systems abruptly.
Also, I understand that this is an issue with macos, but shouldn't python handle this so that atleast python's APIs are safe.
Creating shared memory segments of size 1 exabyte are not reasonable, but if some makes a mistake then, we must throw an error instead of a crash.
Also, can we set a max limit on creating shared memory segments to 1TB ?
because no one would genuinily need to create a segment of that size on a single machine. |
|
Date |
User |
Action |
Args |
2020-08-12 13:50:14 | vinay0410 | set | recipients:
+ vinay0410, ronaldoussoren, pitrou, christian.heimes, ned.deily, davin |
2020-08-12 13:50:14 | vinay0410 | set | messageid: <1597240214.74.0.815687616461.issue39584@roundup.psfhosted.org> |
2020-08-12 13:50:14 | vinay0410 | link | issue39584 messages |
2020-08-12 13:50:14 | vinay0410 | create | |
|