This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay0410
Recipients christian.heimes, davin, ned.deily, pitrou, ronaldoussoren, vinay0410
Date 2020-08-12.13:50:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597240214.74.0.815687616461.issue39584@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-08-12 13:50:14vinay0410setrecipients: + vinay0410, ronaldoussoren, pitrou, christian.heimes, ned.deily, davin
2020-08-12 13:50:14vinay0410setmessageid: <1597240214.74.0.815687616461.issue39584@roundup.psfhosted.org>
2020-08-12 13:50:14vinay0410linkissue39584 messages
2020-08-12 13:50:14vinay0410create