Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #482595

Re: Sandsifter software finds hidden instructions inside processors.

From "Tim Williams" <tmoranwms@gmail.com>
Newsgroups sci.electronics.design
Subject Re: Sandsifter software finds hidden instructions inside processors.
Date 2017-10-23 18:21 -0500
Organization A noiseless patient Spider
Message-ID <osltgp$fva$1@dont-email.me> (permalink)
References <2bc2db5d-863c-4925-9f53-79b6f2fd74a7@googlegroups.com> <f54slgFi2q4U2@mid.individual.net> <slrnourbvk.omv.nomail@xs9.xs4all.nl> <8be87dca-9957-4b5a-8864-cf0acdaa126d@googlegroups.com> <slrnourl8e.8qe.nomail@xs9.xs4all.nl>

Show all headers | View raw


"Rob" <nomail@example.com> wrote in message 
news:slrnourl8e.8qe.nomail@xs9.xs4all.nl...
> I have not viewed the video, but "undocumented instructions" due to
> incomplete decoding have been there since the early days.  Often it
> could be derived what they would do by locating them in a matrix of
> instructions (where rows and columns are determined by part of the
> opcode bits) and check what is in neighboring columns and rows.
> But sometimes they just do weird things.

Watch the video, or read the whitepaper -- it's good either way.

Some undocumented instructions are added by the manufacturer.  Think of the 
Intel Optimizing Compiler fiasco -- I mean, obviously, detecting and giving 
negative optimization to AMD is stupid and beside the point, but it's 
entirely possible that, in the course of optimizing for Intel, they used 
some of their undocumented instructions to give just that little edge more. 
Or, say, hidden deep within drivers; who knows (does anyone regularly audit 
and deobfuscate drivers?).


>
> In a modern processor one would expect that all unimplemented instructions
> cause a "illegal instruction" trap.   That also allows software emulation
> of instructions added in future versions of the processor.

It's hard to say if old school instruction-decoder-"do not care" 
instructions are present today.  One would hope they're all trapped (and 
that the trap fires first, before getting deep into the pipeline, and before 
affecting registers or caches), but how would you know until they've been 
tested?

They could easily have missed some, or added some beta version instructions 
(so to speak?) that are undocumented, and probably require further testing, 
that could result in "undefined" behavior with respect to registers, access 
levels, caches, who knows what...

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Contract Design
Website: http://seventransistorlabs.com 

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Sandsifter software finds hidden instructions inside processors. skybuck2000@hotmail.com - 2017-10-21 05:47 -0700
  Re: Sandsifter software finds hidden instructions inside processors. skybuck2000@hotmail.com - 2017-10-22 13:26 -0700
  Re: Sandsifter software finds hidden instructions inside processors. Sylvia Else <sylvia@not.at.this.address> - 2017-10-23 11:49 +1100
    Re: Sandsifter software finds hidden instructions inside processors. skybuck2000@hotmail.com - 2017-10-22 19:43 -0700
      Re: Sandsifter software finds hidden instructions inside processors. Agaric <3ember@gmail.com> - 2017-10-23 08:15 -0700
      Re: Sandsifter software finds hidden instructions inside processors. krw@notreal.com - 2017-10-23 20:26 -0400
    Re: Sandsifter software finds hidden instructions inside processors. Rob <nomail@example.com> - 2017-10-23 09:01 +0000
      Re: Sandsifter software finds hidden instructions inside processors. Klaus Kragelund <klauskvik@hotmail.com> - 2017-10-23 02:59 -0700
        Re: Sandsifter software finds hidden instructions inside processors. Rob <nomail@example.com> - 2017-10-23 11:39 +0000
          Re: Sandsifter software finds hidden instructions inside processors. "Tim Williams" <tmoranwms@gmail.com> - 2017-10-23 18:21 -0500
  Re: Sandsifter software finds hidden instructions inside processors. skybuck2000@hotmail.com - 2017-10-23 16:23 -0700
  Re: Sandsifter software finds hidden instructions inside processors. Jasen Betts <jasen@xnet.co.nz> - 2017-10-25 07:48 +0000
  Re: Sandsifter software finds hidden instructions inside processors. skybuck2000@hotmail.com - 2017-10-29 14:31 -0700

csiph-web