Re: Es verhindert tatsächlich die Ausführung



Stefan Engler wrote:

Was kann denn der Bill dafür, daß AMD Scheiße baut? Die 64bittigen Athlons
haben im 32Bit-Mode nun einmal ein bekanntes Problem mit NX, auch unter
Linux. Im 64Bit-Mode tritt das Problem nicht auf, bei Intel-Prozessoren ist
bislang auch nichts in dieser Hnsicht bekannt.

kann jemand das mal präzisieren:
klar ist der 64 Bit-Modus rein AMD only und fast komplett neu
entwickelt,


Unsinn, Intel hat genau den gleichen Befehlssatz unter dem Label EMT64 in
der Core- und Core2-Prozessorreihe drin.

aber was ist denn mit der Ausführungsverhinderung?


alias NX = No Execute
alias DE = Disable Execute

Läuft die über Pages oder über Segmente oder über Software.


Pages

Unter Windows XP (soweit ich mich noch richtig an die Dumps erinnere)
gibt es zu dem Execute-Read-Segment ein Read-Write-Aliassegment.


Das ist zwar möglich, aber sehr sehr unüblich.

Der Intel 80386er Prozessor kann nur mit viel Mühe (Segmentaliasing)
im 32Bit-Modus überhaupt dazu bewegt werden beschreibbaren Speicher
auszuführen.


PUSH DS
POP CS

Ja, wirklich viel Mühe... insbesondere wenn CS und DS ohnehin schon gleich 0
sind...

Mal abgesehen vom Wechsel der Zugriffrechte. (wie hieß
der Vektor noch einmal; ist ein Bestandteil vom Segment-Pointer).


Huh? Also in meiner Segment Descriptor Table sind Base und Flags getrennte
Felder.

Was macht der AMD anders?


Das weiß AMD offenbar selbst nicht so genau. Im Long Mode läuft das genauso
ab, und dort gibt es keine Fehler.

Das Prinzip ist bekannt und es sollten die richtigen Routinen in den

Interrupt Descriptor Tabellen angesprungen werden

Was hat das damit zu tun?

(kaum ein Programm wird so kompleziert programmiert sein, dass

es die eigenen Zugriffsrechte durch geschickte Speichermanipulation
verändert.


Huh? Das machen aber viele Programme. Insbesondere weil map() bzw.
VirtualProtectEx() schon seit Ewigkeiten ein X-Bit enthält und dies als
nicht-optional dokumentiert ist (obwohl es bis dato nicht erzwungen wurde).
.



Relevant Pages

  • Re: Intel or AMD?
    ... cooler, and therefore increase reliability. ... enable Cool n Quiet to lower the CPU voltage and heat when the CPU is ... AMD with 20W, as same fast! ... An Intel proc can only execute 5 Instructions per Clock ...
    (alt.comp.periphs.mainboard.asus)
  • Re: best cpu
    ... i wrote over 5000 lines of code, and compilation needs about 30seconds, the programm code needs about 320seconds to execute. ... i am working on amd 2500+ and code is optimized for amd athlon. ... i would like to change the cpu / complete pc system. ...
    (comp.lang.fortran)
  • Re: ot Four cops killed in Washington
    ... Huckabee pardoned him - huh? ... I wonder who Mike H did that favor for. ... It costs only $288 for the drugs to execute them by lethal injection, ... death penalty, no wonder our justice system doesn't want to put away ...
    (rec.autos.sport.nascar)
  • best cpu
    ... the programm code needs about 320seconds to execute. ... amd 2500+ and code is optimized for amd athlon. ... i would like to change the cpu / complete pc system. ...
    (comp.lang.fortran)
  • Re: GETPID after popen command
    ... > I have some shell scripts and I want to execute them via a C program. ... Homework question, huh? ...
    (comp.unix.programmer)