From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,af0c6ea85f3ed92d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.221.4 with SMTP id qa4mr4059407pbc.7.1329553613683; Sat, 18 Feb 2012 00:26:53 -0800 (PST) Path: wr5ni38869pbc.0!nntp.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Arbitrary Sandbox Date: Sat, 18 Feb 2012 09:26:42 +0100 Organization: cbb software GmbH Message-ID: <193cr8xol0ysi.14p4cp2yxnb0r$.dlg@40tude.net> References: <2aaee0a4-e820-4a75-bbaf-d9d09c366d2c@f5g2000yqm.googlegroups.com> <4da4bf75-e6c9-4c17-9072-ab6f533ed93f@vd8g2000pbc.googlegroups.com> <203d63cf-42a9-49ef-82cd-943d77b5e438@c21g2000yqi.googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 6W7W+/xxYB1GFpXYKm2P0A.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-02-18T09:26:42+01:00 List-Id: On Fri, 17 Feb 2012 20:47:36 -0800 (PST), Shark8 wrote: > You know; I always wondered why they (developers, and OS designers) > didn't take advantage of segments. Ineffective, complicated, generally useless? > I realize that the flat memory model is simpler, in concept, and > likely the programming community wanted to be able to "just take the > integer value of the location"... and likely was a "cheap-and-dirty" > way of handling inter-process communication. But isn't such a layout/ > usage is almost asking for abuse (as you can then just fiddle around > in memory), and asking for both uncontrolled memory usage (leaks) and > unauthorized access (like you mentioned about self-modifying code)? Flat /= von Neumann's. If the question is whether the memory access rights should be reflected in the structure of the address, then, most likely, the answer is no. > Though, that does bring to mind a design question: what is/are the > best way(s) to handle inter-process communication in a general-purpose > OS? That depends on the requirements imposed on such a communication and the machine architecture, if you have shared memory in mind. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de