Deutsch English Français Italiano |
<v48j6h$sc37$14@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.arch Subject: Re: Privilege Levels Below User Date: Tue, 11 Jun 2024 04:18:26 -0000 (UTC) Organization: A noiseless patient Spider Lines: 13 Message-ID: <v48j6h$sc37$14@dont-email.me> References: <jai66jd4ih4ejmek0abnl4gvg5td4obsqg@4ax.com> <2ad84effd7f284445e0d8b90e0170f09@www.novabbs.org> <4fhb6jdpr1tlonfum9cccq9j1h2vrlo60j@4ax.com> <v45bfr$3rcpa$9@dont-email.me> <qhad6j5tluqudv4ibkdahri14u5bpfch7f@4ax.com> <47ca0814d4cb268763a6dab951f6c828@www.novabbs.org> <hp1f6jlmst27ddu0m13e4ti42bnv8c7nui@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 11 Jun 2024 06:18:26 +0200 (CEST) Injection-Info: dont-email.me; posting-host="631f869a34a46d5df9e0635873afdf43"; logging-data="929895"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+m+864YynUtegASEg5bpoi" User-Agent: Pan/0.158 (Avdiivka; ) Cancel-Lock: sha1:4otyUh9GpMm83lDiABF4lid4AJs= Bytes: 1910 On Mon, 10 Jun 2024 17:11:47 -0600, John Savard wrote: > Write can be enabled to memory. Only enabling write and execute together > is potentially subject to restricions. I was going to say, it might be acceptable in current programming environments to keep the two states (writable versus executable) carefully separated, with an explicit transition from one to the other. But it turns out this isn’t always enough. I wrote some C code taking advantage of the GCC extension that lets you define nested routines, and in that situation it creates “thunks” to allow inner routines to access local variables in outer routines, and that requires an executable stack.