Slashdot Mirror


Reverse Engineering IRIX Multithreading For NetBSD

Anonymous Coward writes "Onlamp.com publishes the sixth paper of Emmanuel Dreyfus's series on NetBSD's IRIX binary compatibility implementation. This time, this is about reverse engineering IRIX multithreading and the odd virtual memory features involved with it. It's an adventure at kernel and userland boundaries, with a debugger as the sole weapon. A must read!"

32 comments

  1. This sounds like fun by Anonymous Coward · · Score: 0

    Nothing is more fun than reverse engineering multithreading! Sounds so totally easy too. I want in! Oh please let me reverse engineer mulitthreading!

  2. IRIX? by cpeterso · · Score: 1


    ok, so SGI is moving from IRIX to Windows and Linux. So how many IRIX users will be transitioning from IRIX to NetBSD?

    1. Re:IRIX? by Anonymous Coward · · Score: 1, Informative

      ok, so cpeterso hasn't been paying attention for the past couple years. Windows is no more at SGI, and Linux is only on Itanium Origins / Altix at the moment, and no indication (at the moment) that it's going anywhere else. Non-hobbyist (except perhaps the most quirky commercial-type) IRIX users will not be transitioning to NetBSD until NetBSD has the graphics and scaleability capabilities that they require.

    2. Re:IRIX? by zzyp · · Score: 1

      What's the point of doing IRIX compat anyway? Not many IRIX users, and is it useful?

    3. Re:IRIX? by vesamies · · Score: 0

      about 1000000... waiting for 20 seconds to pass...

    4. Re:IRIX? by fyonn · · Score: 4, Insightful

      remember this isn't the commercial software world. no-one's been tasked with providing irix compatibility. someone's doing it because they want it and thats reason enough, isn't it?

      dave

    5. Re:IRIX? by Anonymous Coward · · Score: 2, Insightful

      I think most of Slashdot contributors miss the article point: it is not an advertising for running NetBSD instead of IRIX, it is a technical paper on the actual implementation and the reverse engineering techniques used to reveal IRIX undocumented secrets.

      IRIX binary compatibility is not sexy, indeed. But IMHO, the tricks exposed in the paper are quite interesting. There is not that much documentation on kernel programming and reverse engineering available around there.

    6. Re:IRIX? by Anonymous Coward · · Score: 0

      I just put NetBSD on two old Indigo2's this weekend.

    7. Re:IRIX? by Anonymous Coward · · Score: 0

      And do you plan to try out IRIX binary compatiblity?

    8. Re:IRIX? by Anonymous Coward · · Score: 0

      Hobbiests, academics, researchers, even IT staff who have older SGI machines would be interested in this. They may wish to run current software for server or workstation purposes, but are having trouble with some software running on IRIX. They may be having trouble maintaining IRIX on MIPS hardware. Yet they may want to run some non-open source software as well - this is likely to be software that is only compiled for IRIX/MIPS, not for NetBSD/MIPS. More importantly, it is a great excercise for improving both the NetBSD kernel and the NetBSD kernel programmers! And best of all, it improves the Swiss Army Knife qualities of NetBSD!

  3. Doubtful IMHO by BuBu_ · · Score: 1

    I doubt very many will. Don't forget, just because it has the bin compat. doesn't mean that SGI won't be porting all of their good solid IRIX apps. over to their Linux distros. I'd say that if anything, most IRIX guys are going to be heading to Linux in the future, if SGI is definte on phasing out IRIX (ie I haven't read up on it at all). NetBSD's bin compat. with IRIX is going to be quite useful because hopefully it will let some other people cut their teeth on IRIX apps. that might not have access to an actual IRIX machine.

    1. Re:Doubtful IMHO by LizardKing · · Score: 1

      hopefully it will let some other people cut their teeth on IRIX apps. that might not have access to an actual IRIX machine.

      Note that this effectively maps IRIX system calls to NetBSD ones, but you're still going to have to run this on a suitable MIPS machine.

      Chris

  4. Eeer, Should of been a reply to cpeterso's post. by BuBu_ · · Score: 1

    topic.

  5. no offense, but... by BortQ · · Score: 0, Flamebait
    A must read!
    hahahahahahahahahahaha. I think not.
    --

    A Multiplayer Strategy Game for Mac OS X, Windows, and Linux
  6. Re:Elegy for *BSD by more+fool+you · · Score: 0, Offtopic
    good poets can spell eulogy
    therefore you are not a good poet

    can anyone tell i've been programming prolog? (prolog is dead blah blah blah)

  7. Some people are missing the point. by LizardKing · · Score: 3, Insightful

    Slashdot's usual bunch of Linux fanboys are missing the point of these articles. So SGI might move to Linux and might drop IRIX. They might port there apps to Linux (their developers are certainly experienced enough). However, SGI's future operating system strategy has little bearing on NetBSD.

    NetBSD has a strong following in the academic world (I'm talking about researchers and postgrads here, not undergrads running Linux file sharing apps in their dorm). The BSD license, along with clear and well documented source make Net an ideal choice for academic work. However, a lot of cutting edge work takes place outside academia, often in companies like Sun and SGI. Often this work is not publicly documented.

    Reverse engineering things like IRIX's kernel can give valuable insights into advancements made by SGI. These can then suggest new avenues for research that may have been overlooked otherwise.

    So those questioning the utility of IRIX binary compatability, are missing the primary motivation for such work. Of course someone may find the ability to run IRIX apps useful one day - after all, who would have thought that NetBSD's emulation of a niche operating system like Linux would have proved so useful ;-).

    Chris

    1. Re:Some people are missing the point. by Anonymous Coward · · Score: 2, Insightful

      Indeed reverse engineering IRIX gave NetBSD folks some ideas. The libc provided signal trampoline described in part 4 is a very good example.

      It removes one of the needs of an executable stack. Running with a non executable stack would be a great step forward: stack overflows exploits would not work anymore.

    2. Re:Some people are missing the point. by Anonymous Coward · · Score: 0

      foo bar baz

    3. Re:Some people are missing the point. by Anonymous Coward · · Score: 0

      I worked in a university's "computer museum" for a while, anyone who ever looked a scientist carying a stack of crummy old punchcards containing that "importand piece of data" in the eyes will quickly learn the virtues of being able to emulate virtualy anything on anything...
      for prosperity...

    4. Re:Some people are missing the point. by jo42 · · Score: 1

      :s/fanboys/fagboys/g

  8. support "legacy" users (Re:IRIX?) by Anonymous Coward · · Score: 1, Insightful

    SGI may be moving, but what about all its IRIX customers. Some may be happy running what they have now. This way even if the OS is no longer supported by SGI, the users can still run their apps on NetBSD.

  9. NETBSD ROCKS!!! SEE WHT YOU CAN DO ONCE YOU by Anonymous Coward · · Score: 0

    JETTISON THE FILTH LIKE THEO DRAADT FROM YOUR PROJECT?!?!?!?
    ==
    -[morelame.cmd]
    asdfa j;k jadf uip jkadfu i j;asdklfu ;kasd fuiwekl mzx asdkf iu kaj;sd iou z/xjc iou sd;
    asdf pu/sf

  10. FUCK YOU WINTEL by Anonymous Coward · · Score: 0

    SGI RULEZ!!!!!

    SGI!! - DON\t BEND DOWN TO THE POWER OF T3H D4RK SIDE!!! STICK TO YOUR OWN CPUs - YER OWN MOBOS AND YER OWN OS!!!

    Death to x86!!!! 11 1 1 1