Stories
Slash Boxes
Comments

News for nerds, stuff that matters

AMD Could Profit from Buffer-Overflow Protection

Posted by simoniker on Mon Feb 23, 2004 02:31 PM
from the brimming-moneybags dept.
spin2cool writes "New Scientist has an article about how AMD and Intel are planning on releasing new consumer chips with built-in buffer-overflow protection. Apparently AMD's chips will make it to market first, though, which some analysts think could give AMD an advantage as the next round of chips are released. The question will be whether their PR department can spin this into a big enough story to sell to the Average Joe."
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1) | 2
  • by ebuck (585470) on Monday February 23 2004, @02:32PM (#8364969)
    Especially if the buffer is their banking account.
  • AMD needs better marketing (Score:5, Insightful)

    by Anonymous Coward on Monday February 23 2004, @02:32PM (#8364972)
    Like IBM with OS/2, they have the better product. They now just need to convince ordinary consumers that this is the case. For some reason, people love that little Intel jingle.
    • Re:AMD needs better marketing by Anonymous Coward (Score:1) Monday February 23 2004, @02:33PM
    • Re:AMD needs better marketing (Score:5, Insightful)

      by ebuck (585470) on Monday February 23 2004, @02:37PM (#8365036)
      I think it was the Intel inside marketing campaign that really did the trick.

      Nobody knows if Intel is better, but they don't want a computer that "lacks" Intel inside. They simply guess that if it's inside, it's better than not having it inside.

      It is brilliant. It can't be copied or AMD looks like a "me too!" player. It can't be contested because it's just vauge enough to not claim that the machine is any better for having Intel inside, but implies that anything else is somehow inferior.
      [ Parent ]
      • by Anonymous Coward on Monday February 23 2004, @03:00PM (#8365390)
        Nobody knows if Intel is better, but they don't want a computer that "lacks" Intel inside. They simply guess that if it's inside, it's better than not having it inside.

        I always thought "Intel Inside" was a warning label.

        [ Parent ]
      • Re:AMD needs better marketing (Score:5, Insightful)

        by Anonymous Coward on Monday February 23 2004, @03:00PM (#8365396)
        Intel Inside is a minor part - what cemented Intel was Cyrix. People saw a low cost CPU and got burned for it - then there was no alternative to Intel until the original Athlon which meant that the Pentium and Pentium II were unchallenged.

        To this day, the legacy of Cyrix shadows AMD with marketting using the supposed clockspeed rather then actual.

        Fact of the matter is that Intel has so much branding, even being behind AMD on a few releases isn't going to do enough to displace Intel from being #1. All AMD is good for is the consumer so that there isn't a monopoly, and competition leads to innovation - otherwise Intel wouldn't have brought x86-64 to the general consumer for years. Not that I blame their logic, but then there wasn't a need to jump to Pentium either - the 486 had a lot still to offer at the time.
        [ Parent ]
      • Re:AMD needs better marketing (Score:5, Interesting)

        by Neil Watson (60859) on Monday February 23 2004, @03:02PM (#8365409)
        (http://watson-wilson.ca/)
        It's frightening that even vendors believe in marketing. I meet with vendor one day to discuss supplying us with generic computers. I told them that most of our desktops were Durons. They gasped and stated they could not recommend such things. Stating that they would quote us Intel to "ensure stability". I asked them to cite proof that AMD systems were unstable. They could not but implied that it was common knowledge.
        [ Parent ]
        • Re:AMD needs better marketing (Score:5, Insightful)

          by helzerr (232770) on Monday February 23 2004, @03:37PM (#8365799)
          (http://s89822048.onlinehome.us/)
          Stating that they would quote us Intel to "ensure stability".

          I bet it had more to do with ensuring their profit margin.

          [ Parent ]
        • Re:AMD needs better marketing (Score:5, Insightful)

          by mcbevin (450303) on Monday February 23 2004, @04:29PM (#8366424)
          (http://www.bevin.de/usa/)
          You never considered the possibility that there might just be some basis for that belief other than Intel marketing? That while AMDs are not so bad now, older versions would for example melt if you removed the cooling (whereas Intels even back then would simply slow down).

          Also, I suspect AMD possibly suffers from the poor reputations of previous Intel competitors who truly did have unreliable, inferior products. I for one had trouble for a while remembering which of AMD and Cyrix was the one to avoid, thus for the average consumer choosing the always reliable Intel makes some sense.

          AMD still needs some time to build up the reputation Intel has. If they can continue building reliable products without cutting too many corners as they have done in the past to keep up in the race against the giant, they may eventually obtain such a reputation, but such things take time.
          [ Parent ]
          • Re:AMD needs better marketing (Score:5, Insightful)

            by freeweed (309734) on Monday February 23 2004, @06:35PM (#8367788)
            AMDs are not so bad now, older versions would for example melt if you removed the cooling

            I've always been of the opinion that if you're in the habit of removing your heatsink from a running processor, you have deeper problems than worrying about whether or not it will melt. Tom's sure managed to keep a lot of people I know from buying AMD, which is pretty funny considering how much cooler AMD chips run these days compared to Intel.
            [ Parent ]
            • Re:AMD needs better marketing (Score:5, Insightful)

              by Sycraft-fu (314770) on Monday February 23 2004, @07:54PM (#8368605)
              Hey, they fall off sometimes, or a fan fails, or the AC fails. Shit happens. Happened to a friend of mine, friend one of his CPUs, though the board was ok thankfully.

              Also AMDs much larger problem was motherboards. VIA chipesest used to suck hard, and AMD's own were almost as bad. I remeber when the Athlons were fairly new it was time for me to upgrade so I decided to get one based on price. I got a 700mhz slot Athlon and a top-of-the-line Abit board with VIA chipset. I then proceeded to fight with my system for two weeks. I could not make it work in either 98 or 2000. It just would not play nice with my GeForce or my pro audio card. I finally sent it back, got a 440BX and an Intel P3 700 which I then used for like 2 years.

              Now I know the situation is completely different today, but that sort of thing sticks with many companies and OEMs. Trust is a thing that is easy to loose, hard to regain. Not fair, but that's how the world works.

              Only receantly have I started recommending ATi video cards. Why? Well becuase I supported ATis in many situations and their drivers were trash. 2d was fine but try and 3d and you were asking for BSODs. That's now changed, their drivers are in every way as solid as nVidia's and their hardware is better. But it took time for me to trust that. I had to use the cards and see them used in a number of different environments before I was ready to declare them stable enough for use in production systems.

              Also the PR numbers aren't helping. Many people see it as dishonest, espically since they haven't need consistent (some of the more receant chips haven't performed at the level their PR would infer). This again hurts crediblity in the eyes of some people.

              It's not fair per se, but it is the way of the world. You burn me, it takes time for me to trust you won't do it again.
              [ Parent ]
          • Re:AMD needs better marketing (Score:5, Insightful)

            by RzUpAnmsCwrds (262647) on Monday February 23 2004, @07:17PM (#8368183)
            "versions would for example melt if you removed the cooling"

            And, why, exactly, would you remove the heatsink from a CPU while it is running?

            Moreover, this was not a flaw in the Athlon. The Athlon, since Athlon XP, has contained a thermal diode to enable safe thermal shutdown. The motherboard that Tom's Hardware used did not have the thermal protection circuitry.

            Losing a CPU to "thermal death" was a rare occurance. Most CPUs that experienced "thermal death" had improperly installed thermal solutions (e.g. the clip was not installed properly). A fan failure or failure to use thermal compound (e.g. a pad or grease) would likely not cause damage to the CPU, even without thermal protection. Only a lack of die to heatsink contact (e.g. with an improperly installed shim or a poorly installed heatsink that detached during movement) would likely cause the Athlon to experience "thermal death" ass shown in the Tom's Hardware video.

            "whereas Intels even back then would simply slow down"

            The Tom's Hardware Guide video was a fake. The CPU temperature never exceeded 30C (look at the thermal probe). Thermal throttle-down on the P4 occurs when the CPU hits 85C. And, yes, the system will crash or simply become completely unusable if the heatsink is removed.

            "without cutting too many corners as they have done in the past"

            Right. Intel has never cut corners, particularly not with major logic bugs in the Pentium, PII, PIII, P4, and Itanium.

            Look, CPUs are not flawless. But the CPU thermal issue you speak of really is not a huge issue. With a properly installed heatsink (like the heatsinks on a computer you would buy from HP or eMachines), it never was an issue. And today every new motherboard has thermal protection.

            Tom's Hardware did a disservice to the community and to AMD by taking a relatively minor issue that affected a small number of people and blowing it out of proportion to a huge flaw.

            If you read Tom's Hardware for as long as I have, you begin to notice a pattern: Tom is an egotistic nut. He posted one editorial stating that the performance war between Intel and AMD was bad for consumers (hmmm... my $90 Athlon XP 2600+ would seem to refute that, as would sub $200 P4 3.0GHz CPUs). He also says that people buying AMD64 systems are giving AMD a "no intrest loan" because of the lack of availibility of AMD64 operating systems and applications. Apparently, no one told Tom that the Athlon 64 3000+ is *cheaper* than its similarly performing P4 counterpart (in IA-32 applications). And, apparently, no one told Tom that Intel has adopted the same instruction set for its Pentium 4 based 64-bit systems.

            I have lost respect for Tom and his publication. Between his hate-filled articles filled with vague statements and mistruths, his constant bashing of AMD (he compared the Athlon XP 3400+, a $450 CPU, to the P4 Extreme Edition, a $900 CPU, and decreed the P4EE the victor because it was marginally faster in 3/4 of the tests), and his suing of other tech websites, Tom has struck out. I only hope that [H]ardOCP doesn't suffer the same fate.
            [ Parent ]
            • Re:AMD needs better marketing by jadavis (Score:2) Monday February 23 2004, @08:52PM
              • Re:AMD needs better marketing (Score:5, Informative)

                by kryptkpr (180196) on Monday February 23 2004, @10:18PM (#8369907)
                (http://slashdot.org/)
                Spend the few extra dollars on a good motherboard with the nForce2 chipset. I run an Asus A7N8X-E Deluxe and in my experience it's very speedy (compared to my old ECS K7S5A, bleh) and packed to the tits with features (FireWire, SATA+RAID, USB2.0, etc..).

                Also, good memory (we're talking at least the lifetime warranty kind here) is totally necessary if you want your system to be stable at high frequencies, it seems AMD CPUs are more sensitive to bad/cheap memory (particularly in ECS boards, they're cheap, but avoid them if you at all can).

                On a side note, AIDA32 shows the chipset bus on this board as being 8-bit HyperTransport v1.0 .. totally cool :)
                [ Parent ]
              • Re:AMD needs better marketing by Anonymous Coward (Score:1) Monday February 23 2004, @11:32PM
              • Re:AMD needs better marketing by jadavis (Score:2) Monday February 23 2004, @11:32PM
                • 1 reply beneath your current threshold.
              • 1 reply beneath your current threshold.
            • Re:AMD needs better marketing by Loki_1929 (Score:3) Tuesday February 24 2004, @12:47PM
            • 1 reply beneath your current threshold.
          • You know what AMD Needs? by fluxrad (Score:3) Monday February 23 2004, @08:19PM
            • Re:You know what AMD Needs? (Score:4, Informative)

              by Loki_1929 (550940) on Monday February 23 2004, @10:12PM (#8369857)
              (Last Journal: Wednesday December 10 2003, @02:26AM)
              "Granted you could be nervous about this since 3dfx went the way of the dodo, but since AMD doesn't make POS video cards that double the weight of your box...they should be safe ;-)"

              3DFX's problem had nothing to do with their products. Their problem had to do with the fact that they got greedy - extremely greedy. After their first few successful graphics chips were launched, they basically shut their board makers out in the European market with the purchase of STB. They began producing their own boards, and had production capacity sufficient to supply the European market, and that's about it. Thus, other board makers were still necessary for other markets, such as the US. Having been bent over by 3DFX in the European market, board makers essentially told 3DFX to take their chips and stuff them. Thus, 3DFX was left with the choice of abandoning every market but the European (you're joking, right?), or dipping into (read: draining) their R&D budget. Noting that option 1 was suicidal, 3DFX chose the latter. Thus, production was bumped, the new Voodoo 3 graphics cards were an outstanding bunch, and virtually no R&D was accomplished for a few years. Wait; did I say they didn't do any R&D for a few years?! Yes - yes I did. Thus, the thus far sub-standard (where 3DFX was the standard) 3D graphics card/chip makers were able to catch up to, and surpass 3DFX in both performance and features. Glide, 3DFX's baby, was eclipsed by the more open, if less fully-featured, OpenGL in game support. By the time 3DFX had enough production capability to start working on new cards, the writing was on the wall. Ati, Matrox, and nVidia were already too far ahead for 3DFX to have a chance competing against. 3DFX dumped the last of their cash into creating an extraordinarily powerful, goofy as hell looking, wildly expensive set of cards, which saw almost no time whatsoever in the market before 3DFX was forced to sell all IP rights to nVidia. 3DFX, nothing more than a shell of a company with no IP, then collapsed about a month later.

              The last good card from 3DFX? The Voodoo 3 3500. Their last great card? The Voodoo 3 3000, whose overclocking ability was absolutely beyond anything anyone had ever before imagined possible. With stock cooling, one could achieve gains that would be thought of as ridiculous (percentage-wise) today. My own V3 3000, whose default memory clock speed was 166MHz, hit 220MHz with the stock cooler with no artifacts. I recall pushing it a bit higher with a rigged cooling system before finally replacing the card (it was getting OLD). 200MHz was common for the memory speed on those, and values as high as 240 - 250MHz had been reported, though often not without some artifacts. The quality of components was next to none from 3DFX. It was not their product, but their arrogance that was their undoing.

              [ Parent ]
              • 1 reply beneath your current threshold.
          • Re:AMD needs better marketing by 10101001 10101001 (Score:1) Monday February 23 2004, @08:28PM
          • Re:AMD needs better marketing (Score:5, Informative)

            by Loki_1929 (550940) on Monday February 23 2004, @09:39PM (#8369629)
            (Last Journal: Wednesday December 10 2003, @02:26AM)
            "I for one had trouble for a while remembering" ... remembering a lot of things.

            Like the PIII Coppermine CPUs that wouldn't even boot [bbc.co.uk] sometimes.

            Or the randomly rebooting [cw.com.hk] PII Xeons.

            Or the voltage problems [com.com] with certain PIII Xeons.

            Or the memory request system hang bug in the PIII/Xeon [hardwarecentral.com].

            Or the PIII's SSE bug [zdnet.co.uk] whose 'fix' killed i810 compatability.

            Or the MTH [com.com] bug in the PIII CPUs that forced Intel customers to replace boards and RAM.

            Or the recalled [com.com], that's right, recalled [com.com] PIII chips at 1.13GHz.

            Or the recalled [com.com] (there's that word again) Xeon SERVER chips at 800 and 900MHz.

            Or the recalled [techweb.com] (that word, AGAIN?!) cc820 "cape cod" Intel motherboards.

            Or the data overwriting [zdnet.co.uk] bug in the P4 CPUs.

            Or the P4 chipset [com.com] bug that killed video performance.

            Or the Sun/Oracle P4 bug [indiana.edu].

            Or the Itanium [theinquirer.net] bug that was severe enough to make Compaq halt Itanium shipments.

            Or the Itanium 2 bug [infoworld.com] that "can cause systems to behave unpredictably or shut down".

            Or the numerous other P4/Xeon/XeonMP bugs [theinquirer.net] that have been hanging around.

            Yes, I did consider the possibility that there might just be some basis for the belief that Intel's products are superior. Having considered that, in light of the mountains of evidence to the contrary, I shall now proceed to laugh at you.

            Ha ha ha.

            Now go away, or I shall mock you again.

            [ Parent ]
        • Re:AMD needs better marketing (Score:4, Insightful)

          by Loki_1929 (550940) on Monday February 23 2004, @04:48PM (#8366648)
          (Last Journal: Wednesday December 10 2003, @02:26AM)
          "they would quote us Intel to "ensure stability"."

          "I asked them to cite proof that AMD systems were unstable. They could not but implied that it was common knowledge."

          You can take this one step further - simply go through the articles I found and posted [slashdot.org] over a year ago. Show them the articles and then tell them that you cannot accept anything other than AMD quotes, in the interest of 'ensuring stability'.

          [ Parent ]
        • Re:AMD needs better marketing by Anonymous Coward (Score:1) Monday February 23 2004, @05:52PM
        • Re:AMD needs better marketing by Anonymous Coward (Score:1) Monday February 23 2004, @06:38PM
        • 1 reply beneath your current threshold.
      • New AMD slogan? How about.... by FerretFrottage (Score:3) Monday February 23 2004, @03:23PM
        • 1 reply beneath your current threshold.
      • Intel Inside by dpilot (Score:3) Monday February 23 2004, @03:32PM
      • AMD is doing just fine (Score:5, Insightful)

        by gosand (234100) on Monday February 23 2004, @04:02PM (#8366054)
        (http://knoppixquake.webhop.net/)
        Nobody knows if Intel is better, but they don't want a computer that "lacks" Intel inside. They simply guess that if it's inside, it's better than not having it inside. It is brilliant. It can't be copied or AMD looks like a "me too!" player. It can't be contested because it's just vauge enough to not claim that the machine is any better for having Intel inside, but implies that anything else is somehow inferior.

        Do you remember when the "Intel Inside" logo came out? There was no real competition. (it was the Pentium days) There were other processors, but the Pentium pretty much blew them away. Intel didn't just success on that logo alone, they do have a little bit of technology behind it.

        I think it is funny when people say AMD is better. When they say that, ask them why - 99% of the time it will be because it is cheaper (bang for the buck). The other 1% might do overclocking, or read anandtech on a daily basis, or have some highly technical reason - which is essentially irrelevant to the argument. For AMD to be where they are in the processor market, it is nearly a miracle. The only reason is because Intel was comfortable in their position. AMD came on the scene with a comparable product at a cheaper price, and it woke Intel up real fast. They catered more to the "home enthusiast" market at just the right time.

        I have a buddy who has worked at Intel for 7 years now, and I always kid him about AMD. He works on the thermal solutions, and has access to the fab floor. There may be some advantages that Intel has over AMD in some areas (and vice versa) but if you have two well put together systems of each sitting side-by-side, the processor is pretty much a non-issue.

        [ Parent ]
        • Re:AMD is doing just fine by nempo (Score:1) Monday February 23 2004, @04:17PM
        • Re:AMD is doing just fine by hackstraw (Score:2) Monday February 23 2004, @05:52PM
        • Re:AMD is doing just fine (Score:5, Informative)

          by Hoser McMoose (202552) on Monday February 23 2004, @06:29PM (#8367740)

          Do you remember when the "Intel Inside" logo came out?

          1991, according to Intel themselves [intel.com]

          There was no real competition. (it was the Pentium days) There were other processors, but the Pentium pretty much blew them away.

          The Intel Inside marketing program started two years before the Pentium came out. At that time AMD was competing very effectively with the 486. So much so that Intel wanted a new marketing campaign to try to bring people back. Even in the early Pentium days AMD continued to compete effectively. Their 5x86 120MHz chips were very competitive with the Pentium 60 and Pentium 66, and even the 75MHz Pentium chips. It wasn't really until '94 or '95 that Intel really started leaving AMD in the dust, mainly because AMD was WAY late at releasing their K5 processor and when it did come out they had so many problems manufacturing it that it was clocked much lower than initially hoped for. Cyrix continued to offer some competition for Intel during this time, but they were plagued by crappy motherboards which gave them a poor reputation (it was a bit of a self-fulfilling prophecy thing: reputation for being cheap crap meant that they were put on cheap crap motherboards which resulted in a poor quality system).

          it will be [better] because it is cheaper

          And that is somehow an invalid reason for a product to be better?

          [ Parent ]
          • 1 reply beneath your current threshold.
        • Re:AMD is doing just fine by Helvick (Score:1) Monday February 23 2004, @08:18PM
        • 2 replies beneath your current threshold.
      • Re:AMD needs better marketing by i_r_sensitive (Score:2) Monday February 23 2004, @05:01PM
      • Re:AMD needs better marketing by Reziac (Score:2) Monday February 23 2004, @11:50PM
      • AMD doesn't need better marketing, just by vortexau (Score:1) Tuesday February 24 2004, @11:14AM
    • Re:AMD needs better marketing by Kenja (Score:2) Monday February 23 2004, @02:39PM
      • Re:AMD needs better marketing (Score:5, Informative)

        by Vancorps (746090) on Monday February 23 2004, @02:44PM (#8365168)
        AMD processors have both of those features. AMD has done well at matching Intel feature for feature. Take a look at Opteron for servers. It doesn't help right now that there are a lot of Intel boards that shipped defective. I was replacing backplanes for a solid month just before the New Year. The latest Xeon's really aren't that impressive either. There was a time the Xeon was an incredible processor worthy of running a NOC but now they are hot enough that Opteron and other players look real nice again.
        [ Parent ]
      • Re:AMD needs better marketing by Kenja (Score:3) Monday February 23 2004, @02:57PM
        • Re:AMD needs better marketing (Score:5, Insightful)

          by Loki_1929 (550940) on Monday February 23 2004, @03:46PM (#8365887)
          (Last Journal: Wednesday December 10 2003, @02:26AM)
          " However when I need my server farm to be up 24/7 and dont realy NEED the extra speed the AMD chips just dont look to good."

          Yeah, Ok [slashdot.org].

          How easily we all forget just how many times Intel's chips and boards have been junk-in-a-box. What good is a feature when you can't even keep the machine up and running? What kind of uptime does your server farm have when you're sending recalled CPUs back to the manufacturer? Or perhaps, in the case of Compaq's Itanium customers, the server simply doesn't arrive because it's determined to be defective from the get-go?

          Whoops.

          [ Parent ]
        • Re:AMD needs better marketing by Hoser McMoose (Score:2) Monday February 23 2004, @06:34PM
      • 1 reply beneath your current threshold.
    • Re:AMD needs better marketing (Score:5, Insightful)

      by ackthpt (218170) * on Monday February 23 2004, @02:44PM (#8365158)
      (http://www.dragonswest.com/ | Last Journal: Monday November 05, @07:35PM)
      Don't overdo it. The software has to be compiled to take advantage of this (hence the new version of XP), so just buying a new PC with "WOW! BUFFER OVERFLOW PROTECTION" will generate negative press as people complain, "Hey! I've still got worms! er.. my computer does, not me!" Such gaffes are what competitors live for.
      [ Parent ]
    • Re:AMD needs better marketing by Anonymous Coward (Score:2) Monday February 23 2004, @02:48PM
    • Re:AMD needs better marketing by Saberwind (Score:1) Monday February 23 2004, @03:22PM
    • Intel has more fabs by isdnip (Score:2) Monday February 23 2004, @05:28PM
    • Re:AMD needs better marketing by Anonymous Coward (Score:1) Monday February 23 2004, @06:12PM
    • Does AMD really have the better product? by tjstork (Score:2) Monday February 23 2004, @09:28PM
    • You really can't compare the two ... by vlad_petric (Score:2) Monday February 23 2004, @09:58PM
    • Re:AMD needs better marketing by cbreaker (Score:2) Monday February 23 2004, @10:40PM
    • Scary subliminal Intel jingles by attackc0de (Score:1) Tuesday February 24 2004, @12:01AM
    • 2 replies beneath your current threshold.
  • Awesome (Score:3, Funny)

    by RedWolves2 (84305) on Monday February 23 2004, @02:33PM (#8364980)
    (http://www.mediagab.com/ | Last Journal: Friday March 12 2004, @04:01PM)
    Put me down for one! This is exactly what we all need. Why didn't they think of this in the first place. Always on Microsofts shoulders to button the buffers up. This will make a huge difference in security.
    • Re:Awesome by paranode (Score:2) Monday February 23 2004, @02:42PM
    • Re:Awesome (Score:5, Insightful)

      by Sloppy (14984) * on Monday February 23 2004, @02:44PM (#8365165)
      (http://www.biglumber.com/ | Last Journal: Tuesday November 27, @12:44PM)
      Why didn't they think of this in the first place.
      Because it's hard to fix while keeping compatibility, and it was a different world in 1980.

      Some of today's problems are really just side-effects of the x86 legacy. If you're willing to break binary compatibility, fixing problems is really, really easy. For example, there's no law that stacks have to stupidly grow downwards in memory so that an overflow ends up overwriting older stuff on the stack space, instead of overwriting in the direction where the unallocated space is. And indeed, on many architectures, it works more sensibly. So even if you don't protect against overflows, their damage doesn't need to be so severe.

      But by the time it became popular for personal computers to be connected to the internet (and thus, overflow protection started to become really important), it was far too late to fix the problem, because too many people were locked into x86.

      [ Parent ]
      • Re:Awesome by John Courtland (Score:2) Monday February 23 2004, @03:23PM
        • Re:Awesome by xmath (Score:3) Monday February 23 2004, @04:28PM
          • Re:Awesome by John Courtland (Score:2) Monday February 23 2004, @05:07PM
            • Re:Awesome by mevets (Score:1) Monday February 23 2004, @06:39PM
        • Nope. by Anonymous Coward (Score:2) Monday February 23 2004, @04:29PM
        • Re:Awesome (Score:4, Informative)

          by dustman (34626) <dleary@ttlc. n e t> on Monday February 23 2004, @04:36PM (#8366501)
          Do they overflow the current process's virtual address space?

          No. On the stack itself, in addition to the local data for a function (and the saved registers), is the return address that you are going to jump back to after the function is complete. Buffer overflow exploits write past the end of the buffer. So you are overflowing the function's local data, not the entire stack segment. As the previous poster mentioned, because the stack grows downward, your overflow can write over the return address, which is where all the nastiness starts.

          In addition to this, is the fact that the binaries are always the same for each machine, and the process's memory all logically maps to the same location (windows user code maps to 0x10000000).

          So, say someone writes a program and somewhere has a static buffer for input which is 256 bytes, and doesn't check bounds on input data. You can construct an input which is more than 256 bytes, and your data will overwrite stuff which is outside of the input buffer, perhaps the return address. So, with the proper input, you can make the program jump to an arbitrary point.

          Usually, whenever a function is called, it will be called at the same depth of recursion. Like, I might make a function, "authenticate", which asks for your username and password (storing them without checking in my 256 byte buffers), then checks credentials and either proceeds or returns an error code.

          This function will probably only be called once, and it will always be called at the same time in program execution, relatively early. The stack will always be the same size when it is called. (Like, your call stack at this point might look like: main() -> initialize() -> authenticate()) or whatever).

          Sometimes, a function might be called from multiple places... Maybe there is something like "getAddress()", which does pretty much the same thing, it grabs an address input by the user, but it might be called from many places in the executable. Each call will have its own characteristic call stack, and offset within the stack segment. The stack frames of all functions leading down to it will be present. (You can usually examine the current call stack in a debugger).

          If you know "where" the function will be called from in this manner, you will know the exact stack layout at this point, including the absolute addresses and everything (which you know because the binaries are always the same and the executable always maps to the same logical place in memory).

          So, you can overwrite the return address so that it returns to inside the input buffer. Then, you have 256 bytes (in this example) to work with for constructing your little exploit. Often, the exploit will be just a stub which downloads another malware program and launches it, or whatever.

          There is a little bit more to it. Like, you usually need to construct your input so that you don't have any 0 bytes within it, because that will signify the end of a string. The input, even though it's not bounds checked, might still be validated in some fashion. (I think I remember reading about someone who had made a "codec", so that the input data could be composed of valid alphanumeric characters. So, even the unpacker was alphanumeric, which is pretty cool).
          [ Parent ]
      • Re:Awesome by IPFreely (Score:2) Monday February 23 2004, @04:32PM
      • Re:Awesome by Bryson (Score:1) Monday February 23 2004, @11:47PM
      • 2 replies beneath your current threshold.
    • Re:Awesome by Unoti (Score:2) Monday February 23 2004, @02:59PM
    • Re:Awesome (Score:5, Insightful)

      by phil reed (626) on Monday February 23 2004, @03:20PM (#8365622)
      (http://www.spamgourmet.com/)
      Why didn't they think of this in the first place.

      They did. Mainframes and the like have had protection from this sort of hack for ages. AS/400s have object orientation support built into the hardware, and a data object (which is what a stack or buffer would be implemented as) cannot be executed as code, no matter what. The hardware will not allow it. Nor would the buffer be allowed to grow into a code location.

      We're living with hardware and software architecture decisions made in the 1980s, when PCs were still considered toys.

      [ Parent ]
  • Code rewrites going to be needed? (Score:5, Interesting)

    by PornMaster (749461) on Monday February 23 2004, @02:33PM (#8364983)
    (http://www.ilikepuffynipples.com/)
    I know that people using standard APIs might be fine, but I can't help but wonder how many applications will not work because of it. While there probably aren't many self-modifying code apps out there, there are surely some. Will they be affected?
  • what a drag (Score:4, Insightful)

    by Wellmont (737226) on Monday February 23 2004, @02:34PM (#8364990)
    (http://www.grantk.com/)
    Can anyone else say that it is ABOUT time that buffer overflow was built into a processor or motherboard? The only thing i worry about is the performance drag that making up for everyone's programming mistakes can do to a processor.
    • Re:what a drag (Score:5, Insightful)

      by m0rph3us0 (549631) on Monday February 23 2004, @02:40PM (#8365078)
      All it is is on extra bit in the pagetable that check whether the memory region is W^X (write or execute). This kind of thing usually requires a bit of operating system magic to make it work. i386 already has W^X protection, it just isn't enabled by most OS's.
      [ Parent ]
      • Re:what a drag by phasm42 (Score:2) Monday February 23 2004, @02:49PM
        • 1 reply beneath your current threshold.
      • Re:what a drag (Score:5, Informative)

        by paranode (671698) on Monday February 23 2004, @02:55PM (#8365321)
        Exactly. OpenBSD 3.3 [openbsd.org] already came with this feature in May 2003.

        "W^X (pronounced: "W xor X") on architectures capable of pure execute-bit support in the MMU (sparc, sparc64, alpha, hppa). This is a fine-grained memory permissions layout, ensuring that memory which can be written to by application programs can not be executable at the same time and vice versa. This raises the bar on potential buffer overflows and other attacks: as a result, an attacker is unable to write code anywhere in memory where it can be executed. (NOTE: i386 and powerpc do not support W^X in 3.3; however, 3.3-current already supports it on i386, and both these processors are expected to support this change in 3.4). "
        [ Parent ]
        • Re:what a drag by BitchKapoor (Score:1) Monday February 23 2004, @04:51PM
        • 1 reply beneath your current threshold.
      • Re:what a drag by Anonymous Coward (Score:2) Monday February 23 2004, @02:56PM
        • Re:what a drag by pantherace (Score:2) Monday February 23 2004, @04:00PM
          • Re:what a drag by Tony Hoyle (Score:2) Monday February 23 2004, @04:13PM
            • Re:what a drag by Anonymous Coward (Score:1) Monday February 23 2004, @04:59PM
        • 1 reply beneath your current threshold.
      • Re:what a drag by hweimer (Score:2) Monday February 23 2004, @04:05PM
        • Re:what a drag by maxwell demon (Score:2) Monday February 23 2004, @05:14PM
      • 1 reply beneath your current threshold.
    • Re:what a drag by Anonymous Coward (Score:1) Monday February 23 2004, @02:41PM
      • Re:what a drag by Pakaran2 (Score:2) Monday February 23 2004, @02:56PM
        • Re:what a drag by pantherace (Score:2) Monday February 23 2004, @04:02PM
          • Re:what a drag by Pakaran2 (Score:2) Monday February 23 2004, @04:59PM
            • Re:what a drag by pantherace (Score:2) Thursday February 26 2004, @05:40AM
      • Re:what a drag by Wellmont (Score:1) Monday February 23 2004, @07:44PM
    • Re:what a drag by chamilto0516 (Score:1) Monday February 23 2004, @02:45PM
      • Re:what a drag by Anonymous Coward (Score:1) Monday February 23 2004, @03:08PM
    • Buffer overflows are in applications, not the CPU by Anonymous Coward (Score:1) Monday February 23 2004, @03:05PM
    • Re:what a drag by Glug (Score:1) Monday February 23 2004, @05:13PM
  • by Anonymous Coward on Monday February 23 2004, @02:35PM (#8364999)
    They are protecting the pages marked as code from the data pages. Code could still overflow, but not use that to execute arbitrary code in the pages marked as data(or non-executable).
  • screw average joe (Score:3, Insightful)

    by jrexilius (520067) on Monday February 23 2004, @02:35PM (#8365000)
    (http://hostedlabs.com/)
    My company has 85,000 desktops and almost as many servers and we are just one large bank. I can see this being a rather great corporate standard.
  • Well The Most Obvious Spin by Naked Chef (Score:1) Monday February 23 2004, @02:35PM
    • 1 reply beneath your current threshold.
  • Linux support (Score:5, Insightful)

    by nate1138 (325593) on Monday February 23 2004, @02:35PM (#8365013)
    AMD's Athlon-64 (for PCs) and Opteron (for servers) will protect against buffer overflows when used with a new version of Windows XP.

    This does require some interaction from the operating system in order to work. Hopefully AMD will release enough information to allow this feature to be implemented in Linux.
    • Re:Linux support (Score:5, Informative)

      by TheRealFoxFire (523782) on Monday February 23 2004, @02:39PM (#8365072)
      It will likely be in their architecture manual. The summary of the protection is that it allows the OS to mark pages of virtual memory with a No Execute (NX) bit. Attempting to execute any instructions from such a page would cause a trap to the OS.

      An OS would then use this to mark pure data page and areas like the stack as NX so that overflowing datastructures doesn't allow arbitrary malicious code to be run.
      [ Parent ]
    • Re:Linux support by tedu (Score:1) Monday February 23 2004, @02:40PM
    • Re:Linux support by inode_buddha (Score:1) Monday February 23 2004, @02:46PM
    • Re:Linux support by Sloppy (Score:2) Monday February 23 2004, @02:47PM
    • Re:Linux support (Score:5, Interesting)

      by Tony Hoyle (11698) <tmh@nodomain.org> on Monday February 23 2004, @04:19PM (#8366296)
      (http://www.nodomain.org/)
      It's been implemented in Linux since about 6 months ago, at least on the amd64 branch.

      http://www.x86-64.org/lists/discuss/msg03469.htm l

      [ Parent ]
    • Re:Linux support by gr8_phk (Score:3) Monday February 23 2004, @04:36PM
    • Re:Linux support by p3d0 (Score:1) Monday February 23 2004, @06:58PM
    • Re:Linux support by Weirsbaski (Score:2) Monday February 23 2004, @08:32PM
    • 1 reply beneath your current threshold.
  • "Average Joe" Vs. buffer overflows (Score:3, Insightful)

    by MySt1k (713767) on Monday February 23 2004, @02:36PM (#8365017)
    The question will be whether their PR department can spin this into a big enough story to sell to the Average Joe.
    but can "Average Joe" understand the implication of buffer overflows ?
    try to explain to Homer Simpson why he should upgrade his computer based on buffer overflows protections.
  • Good thing for AMD by irokitt (Score:2) Monday February 23 2004, @02:36PM
  • Nope (Score:5, Interesting)

    It would be a hell of a marketing and user education campaign to get users to understand this (or almost any hardware related details).

    They want fast and reliable, not techspeak. I can barely get my clients to understand why they need SSL (and how it works).
    • Re:Nope (Score:5, Interesting)

      by Inuchance (559556) <inu@inuc[ ]ce.net ['han' in gap]> on Monday February 23 2004, @03:04PM (#8365438)
      (Last Journal: Sunday October 24 2004, @07:16AM)
      I think a good commercial would having hackers trying to break into a computer, and then a big "ACCESS DENIED" error shows, and one of the hackers exclaims, "No good, they've got the latest AMD CPU!" And then some announcer says something like, "With the latest CPUs from AMD, your computer executes only what YOU want it to, not what THEY [flash over to image of frustrated hackers] want!"
      [ Parent ]
      • It would get them sued by Sycraft-fu (Score:2) Monday February 23 2004, @08:02PM
      • Re:Nope by alexpage (Score:1) Wednesday February 25 2004, @11:14AM
    • Re:Nope by rnelsonee (Score:2) Monday February 23 2004, @03:29PM
    • Re:Nope by Luscious868 (Score:1) Monday February 23 2004, @03:44PM
    • Re:Nope by rtaylor (Score:3) Monday February 23 2004, @03:52PM
    • 1 reply beneath your current threshold.
  • Good or Bad idea? (Score:3, Insightful)

    by demonic-halo (652519) on Monday February 23 2004, @02:37PM (#8365031)
    This is all cool and all, but will this mean people may start writing sloppier code which will become something to bite as in the ass later in the future?

    For example, let's say people wrote insecure x86 code, then someone decides to port the code to another platform. There'll be software vulnerabilities that will be around because of the flawed code in the first place.
  • Securing C++ through hardware (Score:5, Insightful)

    by KingOfBLASH (620432) on Monday February 23 2004, @02:37PM (#8365033)
    (Last Journal: Sunday October 10 2004, @02:36PM)
    I find it interesting that one of the reasons that hardware protection from buffer overflows is needed is because many programs were created using functions in languages that don't properly check array bounds. Programmers really need to learn that either they need to use functions which provide bounds checking if they insist on using a language like C or C++, or they need to program in another language.

    (Note: Although many people come down on C++, it's also what functions you use. For instance, while fget() is considered "safe" because you provide a buffer boundry, gets() is considered unsafe. This drives me nuts! We knew how to program to prevent buffer overruns years ago, and they're still a problem!)
    • Re:Securing C++ through hardware (Score:5, Insightful)

      by DaHat (247651) on Monday February 23 2004, @02:45PM (#8365171)
      (http://www.brendansstudentloans.com/)
      I think you are forgetting something though... C and C++ are the most powerful higher level languages that exist today... Why? Because with them... you can easily mess everything up!

      Back in college I would defend C/C++ against one of my professors who thought it was the spawn of satan (and oddly though Pascal was/is the greatest language ever) for the simple fact that it gives you the ability to do so many things with few limits.

      A hammer cannot only be used to drive in nails or bang a dent out of your car hood... but it can also be used to break your neighbors windows and beat someone to death. Just because a tool CAN be used for ill, doesn't mean the tool is to blame. After all... guns don't kill people... murders/soldiers/hunters/etc do!
      [ Parent ]
      • Re:Securing C++ through hardware by KingOfBLASH (Score:2) Monday February 23 2004, @02:50PM
      • Re:Securing C++ through hardware by TheOldFart (Score:2) Monday February 23 2004, @03:02PM
      • Re:Securing C++ through hardware (Score:4, Insightful)

        by john.r.strohm (586791) on Monday February 23 2004, @03:45PM (#8365879)
        Back in college I would defend C/C++ against one of my professors who thought it was the spawn of satan (and oddly though Pascal was/is the greatest language ever) for the simple fact that it gives you the ability to do so many things with few limits.

        If we ignore for the sake of argument the specific "high-level assembler" design goal for C, and look instead at philosophy which was carried into C++, there was this fundamental hacking philosophy that said that, because you occasionally needed to do something a bit bizarre, it should be EASY to do that bizarre thing. Further, the entire C/C++ philosophy was that the programmer was solely responsible for the consequences of his actions.

        We contrast this with Ada. Ada's philosophy was that you only occasionally need to do bizarre things, that 95-99% of the time, you are doing perfectly straightforward things, that the effort should be distributed accordingly, and that the language should be helping the programmer to do the routine things correctly. This implies that, when the programmer attempts to do something bizarre, 95-99% of the time it is because he screwed something up, and he DIDN'T mean to do what he typed, and the compiler barfs.

        At that point, it becomes the programmer's responsibility to tell the compiler, and NOT INCIDENTALLY everyone who will ever do maintenance on his code, that "Yea verily I DID intend to shoot myself in the foot here!". Idioms are provided for doing that. If the programmer really intended to take that floating-point number and treat it as a bitmask, he has to tell the compiler that this was indeed his intention.

        Ada did not provide a "back door" array reference mechanism comparable to the C/C++ pointer hacking, for the reason that it is impossible to do proper bounds checking in that case. Ada does provide a mechanism for suppressing bounds checking, but it is NOT the default and it is explicitly forbidden by the standard from it being the default in any conforming implementation. If the programmer has a good reason for suppressing bounds checking, he has to do it EXPLICITLY, at some level.

        Your analogy with hammers is OK, but it breaks down with guns. Guns have trigger guards and safety catches, PRECISELY to prevent naive users from shooting themselves in the foot, or from shooting someone else that they didn't intend to shoot. At the same time, those safety mechanisms do not prevent the gun from being used to shoot someone that the user most fervently WANTS shot right then.

        In my view, if I utter a sequence of instructions that will dance a fandango on core, it is almost certainly the case that I have made an error, and I would prefer the toolset to ask me "Are you sure? (Y/N)". If I am certain that I intended to dance that fandango, I am also certain I want to warn the next guy in line that I am now lacing up my dancing wafflestompers, and the language should support that.
        [ Parent ]
      • Re:Securing C++ through hardware by FreemanPatrickHenry (Score:1) Monday February 23 2004, @03:50PM
      • Re:Securing C++ through hardware by roskakori (Score:1) Monday February 23 2004, @04:03PM
      • Re:Securing C++ through hardware by Jagasian (Score:2) Monday February 23 2004, @06:28PM
    • Re:Securing C++ through hardware by ebuck (Score:2) Monday February 23 2004, @02:48PM
    • Why can't... by cnelzie (Score:1) Monday February 23 2004, @02:51PM
    • You misunderstand the hardware fix. by MonkeyBoyo (Score:2) Monday February 23 2004, @02:55PM
    • Re:Securing C++ through hardware by dcam (Score:1) Monday February 23 2004, @05:46PM
    • Re:Securing C++ through hardware by stevey (Score:1) Tuesday February 24 2004, @08:53AM
  • Of course they can (Score:5, Funny)

    by mikeophile (647318) on Monday February 23 2004, @02:37PM (#8365037)
    The question will be whether their PR department can spin this into a big enough story to sell to the Average Joe.


    Sure, AMD just has to write a buffer-overflow exploit into a worm that carries the pop-up window message, "If you had and AMD processor, you're hard drive wouldn't be erasing right now."

  • Look closer... (Score:5, Funny)

    ....

    MOV AX,DS:OSID[BX]
    CMP AX,2 ; 2=Windows 3.x
    JE PANIC
    CMP AX,3 ; 3=Windows 9x
    JE PANIC
    CMP AX,4 ; 4=Windows 2K/ME/XP
    JE PANIC
    CMP AX,10 ; 10=Minix
    JE OKAY
    CMP AX,11 ; 11=... :PANIC
    ISSUE 'CPU BUFFER OVERFLOW ACTIVATED'
    JMP PANIC

  • I'd buy (Score:3, Informative)

    by valkraider (611225) on Monday February 23 2004, @02:38PM (#8365049)
    (http://www.pdxbiodiesel.org/ | Last Journal: Wednesday March 19 2003, @08:01PM)
    I'm not Joe, but if all other factors were equal - this would be enough to sway me to them... But of course, it's almost moot - since I use Apple OSX... But I do have some Linux boxes that could run on them...

    However - they WILL have to spin it well enough, or better than the "Megahertz Myth" because that didn't work too well for average folks. BestBuy salesmen don't know how to explain "AMD Athlon 289456++XL 3400 MP SSE4 +-7200 BufferXTreme" so they just push intel...
    • Re:I'd buy by valkraider (Score:2) Monday February 23 2004, @02:41PM
      • Re:I'd buy by ivan256 (Score:2) Monday February 23 2004, @02:52PM
  • Rob Enderle Strikes Again! (Score:4, Funny)

    by Galuvian (755742) on Monday February 23 2004, @02:38PM (#8365053)
    Although this is great for AMD I'm sure, I stopped reading the article when Enderle was the first 'analyst' quoted.
  • Ahem... (Score:5, Insightful)

    by cbiffle (211614) on Monday February 23 2004, @02:38PM (#8365056)
    From my reading of the article, this sounds like it's just a new spin on the per-page eXec flag on the AMD64 architecture.

    Granted, yes, this is a good thing, but "buffer-overflow protection when used with a new version of Windows XP?" We now have to rely on Microsoft to set the X flag properly...

    This has been talked about on Slashdot a lot in the past; the OpenBSD guys in particular are hot on the Opteron because it, like SPARC, provides this protection. Fortunately, this isn't some Windows-specific voodoo; we all stand to benefit from this fundamental fix to the broken Intel VM architecture. :-)
  • No silver bullet. by El (Score:2) Monday February 23 2004, @02:40PM
  • Remember back in the 60s and before, all cars leaked oil? People just accepted, "Cars leak oil." They didn't realize that it didn't have to be that way.

    Then the Japanese started making cars that didn't leak oil. Now, no one would accept a car that leaks oil. People have realized that cars don't have to leak and we shouldn't accept it.

    It's the same thing with buffer overflows. People now have this attitude "well, there's nothing you can do. Just write code really carefully. Anyone who makes buffer overflows in his code is just a sloppy coder!"

    Nothing could be further from the truth. There is no way anyone can code a large project in plain old C and not make buffer overflows. Look at OpenBSD, who are masters of secure C. They still have buffer problems.

    And yet, there is absolutely no reason for code to have any buffer overflows! There are programatic tools, such as virtuams machines (think JVM) and safe libraries which mean that programmers never have to manipulate buffers in unsafe ways.

    Putting in hardware-level support for this would be fantastic. It is time for people to change their attitude about what they accept in computers. Crashes and security holes are not inherent aspects of software. Mistakes are inherent in writing code, but these mistakes don't always need to have such disasterous consequences.

    ---------
    Create a WAP [chiralsoftware.net] server

  • by funny-jack (741994) on Monday February 23 2004, @02:40PM (#8365089)
    (http://skorgrimm.blogspot.com/)
    They buy computers. They don't need to sell the idea to the Average Joe, they need to sell the idea to the people making computers for the Average Joe.
  • This is good and bad. by kabocox (Score:2) Monday February 23 2004, @02:41PM
  • I guess I'm too old or something by Conor6 (Score:2) Monday February 23 2004, @02:41PM
  • Not as good as it sounded at first glance... by John Seminal (Score:2) Monday February 23 2004, @02:41PM
  • Intel's 64bit lacks buffer overflow NX bit by Anonymous Coward (Score:1) Monday February 23 2004, @02:42PM
  • What does it do? (Score:3, Informative)

    by slamb (119285) on Monday February 23 2004, @02:42PM (#8365125)
    (http://www.slamb.org/)
    From the article:
    Until now, Intel-compatible processors have not been able to distinguish between sections of memory that contain data and those that contain program instructions. This has allowed hackers to insert malicious program instructions in sections of memory that are supposed to contain data only, and use buffer overflow to overwrite the "pointer" data that tells the processor which instruction to execute next. Hackers use this to force the computer to start executing their own code (see graphic).

    The new AMD chips prevent this. They separate memory into instruction-only and data-only sections. If hackers attempt to execute code from the data section of memory, they will fail. Windows will then detect the attempt and close the application.

    I've seen patches [ogi.edu] to Linux that provide a non-executable stack. There's also the mprotect(2) [wlug.org.nz] system call to change memory protection from user programs. And I believe OpenBSD has had a non-executable stack in the mainline for at least a couple releases.

    So what they're advertising here seems to have already existed. If not, how are the things above possible?

  • This is not a future thing - AMD does it today by -tji (Score:2) Monday February 23 2004, @02:42PM
  • Intel's advantage: the motherboards. (Score:3, Interesting)

    by dave-fu (86011) on Monday February 23 2004, @02:43PM (#8365136)
    (http://www.sexsexworld.com | Last Journal: Wednesday July 17 2002, @10:17AM)
    You buy an Intel chip, you buy a reference mobo and you get rock-solid stability. You buy AMD, you end up rolling the dice on Via, SiS or NVidia and what feels like filthy voodoo trying to get everything to play nicely together.
    That said, nForce and nForce2-based mobos have come a long ways in terms of stability and overall ease of use, but then again... no one ever got fired for buying Intel. AMD separating code from data (curiously, like Intel managed to do once upon a time) is lovely but proving that they've got the best solution out there is a battle that's not going to be won overnight by a single innovation.
    Uptime will prove who's got the better solution.
    • 1 reply beneath your current threshold.
  • Odd... by Anonymous Coward (Score:1) Monday February 23 2004, @02:43PM
    • Re:Odd... by Anonymous Coward (Score:1) Monday February 23 2004, @02:52PM
  • by dtjohnson (102237) on Monday February 23 2004, @02:44PM (#8365153)


    The AMD Opteron and Athlon 64 chips already [computerworld.com]
    have the buffer overflow protection in their hardware and the
    feature is already supported by both Linux and Windows XP 64-bit
    edition. AMD calls this "Execution Protection" and the
    basic idea is that the processor will not allow code that arrives to
    the system via a buffer overflow to be marked as
    executable. The slashdot story says "will have" for both
    Intel and AMD when it should read "AMD already has and Intel will
    have..."

  • Hrmm. by WhodoVoodoo (Score:2) Monday February 23 2004, @02:44PM
  • Old news (Score:5, Interesting)

    by Todd Knarr (15451) on Monday February 23 2004, @02:47PM (#8365196)
    (http://www.silverglass.org/)

    This existed in the 8086 and 8088 CPUs. You seperate your program into code, data and stack segments and load the appropriate segment registers. Code segments can't be read or written, data and stack segments can't be executed. But stupid programmers decided that that kept you from playing games with code-as-data and data-as-code, so they created flat addressing mode with all segment registers pointing at a single segment. Feh. Those who don't read history are doomed to repeat it. Badly.

    • Re:Old news (Score:5, Informative)

      by tomstdenis (446163) <tomstdenisNO@SPAMgmail.com> on Monday February 23 2004, @03:01PM (#8365400)
      (http://libtom.org/)
      Except you could write/read from the CODE segment and you could far jump into the data/extra/stack segment registers.

      What's better is that CS==DS was a common mode [known as a .COM or TINY model program].

      So there goes your theory.

      Tom
      [ Parent ]
      • Re:Old news by Todd Knarr (Score:2) Monday February 23 2004, @03:47PM
        • Re:Old news by IvyKing (Score:1) Monday February 23 2004, @04:26PM
      • Re:Old news by pragma_x (Score:1) Monday February 23 2004, @04:30PM
        • Re:Old news by Todd Knarr (Score:2) Monday February 23 2004, @05:14PM
    • Re:Old news by stuffduff (Score:1) Monday February 23 2004, @03:53PM
    • Re:Old news by nuttyprofessor (Score:1) Monday February 23 2004, @05:09PM
    • Re:Old news by Neillparatzo (Score:1) Monday February 23 2004, @09:39PM
      • Re:Old news by Todd Knarr (Score:2) Monday February 23 2004, @11:48PM
        • Re:Old news by Neillparatzo (Score:1) Tuesday February 24 2004, @12:20AM
          • Re:Old news by Todd Knarr (Score:2) Tuesday February 24 2004, @01:40PM
            • Re:Old news by Neillparatzo (Score:1) Tuesday February 24 2004, @02:24PM
  • guess: Compiler, not OS by Garion911 (Score:2) Monday February 23 2004, @02:48PM
  • but.... by mr_tommy (Score:2) Monday February 23 2004, @02:48PM
  • Give a hoot, don't pollute. by rafael_es_son (Score:1) Monday February 23 2004, @02:48PM
  • Execution bit on MMU Pages (Score:5, Interesting)

    by adisakp (705706) on Monday February 23 2004, @02:49PM (#8365227)
    (Last Journal: Friday June 29, @03:09PM)
    For what it's worth... many processors, like the PowerPC series have had this "buffer overflow protection" feature for years. The idea is to mark program code pages after they are loaded as executeable and read-only. No other pages are marked executeable. It destroys clever little hacks like self-modifying code but at the same time, makes it impossible for buffer overflows to introduce new code into a programs executeable code page set.
  • Also: Widespread DoS possibility? by WhodoVoodoo (Score:2) Monday February 23 2004, @02:49PM
  • The Average Joe? (Score:5, Interesting)

    by SpaceRook (630389) on Monday February 23 2004, @02:50PM (#8365239)
    The average joe can't even figure out that he shouldn't open email attachments from people he doesn't know (Exhibit A: MyDoom). You really think he knows what the fuck a buffer overflow is? "No buffer overflow? But what if I *want* overflow! More is better!" I applaud this security feature, but don't think of it as a selling point for typical users.
  • Wow! (Score:5, Funny)

    by El (94934) on Monday February 23 2004, @02:50PM (#8365240)
    Separation of programs into separate code and data segment -- what a novel idea! I hope they got a patent on this technology!
    • Re:Wow! by Just Some Guy (Score:2) Monday February 23 2004, @04:20PM
  • by Hamster Lover (558288) on Monday February 23 2004, @02:50PM (#8365246)
    (Last Journal: Friday July 11 2003, @05:17PM)
    Now those stickers on the front of the computer really mean something...
  • Articles lacking on tech... by Satan's Librarian (Score:2) Monday February 23 2004, @02:53PM
  • I predict that... by Inuchance (Score:2) Monday February 23 2004, @02:55PM
  • Protection? Not really... by shabble (Score:2) Monday February 23 2004, @02:56PM
  • Stack Protection Today by ortcutt (Score:2) Monday February 23 2004, @02:57PM
  • Added protection (Score:3, Funny)

    Excellent! Now they just need to develop a chip that protects against id10t [catb.org] and PEBCAK [http] problems.
  • PR department by like-it-or-not (Score:1) Monday February 23 2004, @02:58PM
  • A bunch of things (Score:4, Informative)

    by Groo Wanderer (180806) <charlie@nOsPam.stonearch.net> on Monday February 23 2004, @03:00PM (#8365388)
    1) It is also in Prescott
    2) It needs OS support, specifically XP SP2, which isn't out yet.
    3) It doesn't really do what it is meant to, I have seen several 'theoretical' discussions on how to circumvent it. Think of it as another hoop to jump through for the black hats.
    4) You need to be in 64-bit mode to use it
    5) 4) requires a recompilation anyway, why not do it right with the right tools when you recompile?
    6) I know of at least one vendor using to bid against intel on contracts now.
    7) Oh yeah, this will do a lot of good. Really. When has a white paper ever lied?
    8) The more you know about things like this, the more you want to move into a cabin in Montana and live off the land.

    -Charlie
  • Can already be done in software by c64cryptoboy (Score:2) Monday February 23 2004, @03:05PM
  • One way to market by Alan (Score:2) Monday February 23 2004, @03:08PM
  • A thought on the marketing spin by dacarr (Score:2) Monday February 23 2004, @03:10PM
  • Now we finally have an answer...... by Ride-My-Rocket (Score:1) Monday February 23 2004, @03:13PM
  • by alanw (1822) * <alan@wylie.me.uk> on Monday February 23 2004, @03:14PM (#8365544)
    (http://www.wylie.me.uk/)
    Several architectures (sparc, sparc64, alpha, hppa, m88k) have had per-page execute permissons for years.
    See This BugTraq posting by Theo de Raadt [securityfocus.com]
  • Old news by geekee (Score:2) Monday February 23 2004, @03:15PM
    • Re:Old news by thebatlab (Score:2) Monday February 23 2004, @08:06PM
  • it's the software stupid by Truekaiser (Score:1) Monday February 23 2004, @03:20PM
  • First, kill the 16-bit subsystem by Animats (Score:2) Monday February 23 2004, @03:21PM
  • Surely this has already been said... by Von Helmet (Score:1) Monday February 23 2004, @03:23PM
  • UNIX Overflow (Score:3, Insightful)

    by severoon (536737) on Monday February 23 2004, @03:30PM (#8365722)
    (Last Journal: Tuesday September 14 2004, @03:59PM)

    I remember in college adminning a lab of HP-UX's when the "let's send more than 64K ping packets" caused a buffer overflow and a reboot. So it's definitely not exclusively a Windows problem. On the other hand, the article leaves it a little ambiguous as to whether or not this hardware fix will be exclusively useful to Windows (though I don't see how they could do that, there could be some fancy hoops that Windows jumps through anyway that are necessarily to exploit the fix? doubt it, though).

    I don't believe people still write things like, "Why doesn't everyone just write better code?" This reminds me of this one start-up I was working for during the dot com boom. I worked for one company that was so hard up to find managers they hired one guy to oversee the software department who'd never worked in the industry before. He had all sorts of unrealistic expectations, like "If you guys agree to double-check your code, we can save a lot of money by getting rid of the testing phase. We could release like three months early!" He was exasperated that professional coders couldn't write bug-free code on try #1.

    To everyone who says, let's write better code...why don't you write better code? No more bugs in your code ever again!

    Clearly, this is not the answer. What we need to do is take a step back and figure out the environment today, which we can do so much better than 25 years ago. We've seen a lot of the unintended consequences and now we know they exist. Intel or someone needs to develop a new processor from the ground up that addresses all the issues that we now know about through experience.

    One thing I've learned in this business is that you cannot achieve quality through gentleman's agreement, simply by getting someone to agree to write better code.

    sev

    • 1 reply beneath your current threshold.
  • Misleading to call this buffer overflow protection by hoof (Score:1) Monday February 23 2004, @03:30PM
  • Self-modifying code by bobthemuse (Score:2) Monday February 23 2004, @03:32PM
  • by ktulu1115 (567549) on Monday February 23 2004, @03:45PM (#8365881)
    Call me stupid, but AFAIK x86 chips have full segmentation support [x86.org] (in protected mode obviously) - ability to define different segment types (read only, r/w, execute only, etc)... For those of you not familiar with it, it allows the programmer to define different types of memory segments, which would allow you to do some pretty interesting things such as defining read-only code segments (so the machine instructions can't be modified in memory), and non-executing data segments (to prevent OS from trying to run code stored in program data/buffers). This would solve the problem, at least how they addressed it in the article.

    If current operating systems actually used this in addition to paging (which is what most of them only use now), why would they need to create a new chip? Linux does not fully utilize segmention, mostly only paging [clemson.edu]. I don't have any resources on MS OS design right now so I can't comment on it... (although maybe looking at the recent source would help some ;)
  • Prevents exploits or just raises the bar a little? by sgifford (Score:2) Monday February 23 2004, @03:46PM
  • Mmm... popcorn... by MrFluffyPants26 (Score:1) Monday February 23 2004, @03:50PM
  • Nascar Buffer Overflow Protection by blunte (Score:2) Monday February 23 2004, @03:57PM
  • stupid (Score:5, Interesting)

    by ajagci (737734) on Monday February 23 2004, @04:10PM (#8366162)
    Marking pages as executable/non-executable is old, and it's not the way to deal with buffer overflows. Many buffer overflow exploits, in fact, only modify data (like the saved PC pointer).

    The correct way of dealing with buffer overflow problems is to make them not happen in the first place. That means that all pointers need to have bounds associated with them. Unfortunately, both the C mindset and some design quirks of the C programming language make that a little harder than it should be for UNIX/Linux and C-based systems.

    The real problem is ultimately the use of C, and the real solution is not to use a new CPU or add instructions, but to use a language without C's quirks. In terms of performance, C's pointer semantics only hurt anyway.
  • Fixing Software with hardware?? by stackdump (Score:2) Monday February 23 2004, @04:11PM
  • The Stability/Compatibility issue by gbulmash (Score:2) Monday February 23 2004, @04:16PM
  • One reason only: to support TCPA/Palladium/NGSCB by Anonymous Coward (Score:1) Monday February 23 2004, @04:29PM
  • Is this the right solution? (Score:4, Interesting)

    by multiplexo (27356) on Monday February 23 2004, @04:38PM (#8366517)
    (Last Journal: Friday November 18 2005, @02:06AM)
    Years ago I went to a presentation on RISC v. CISC architectures. The presenter pointed out that RISC didn't really stand for "Reduced Instruction Set Computing" rather it stood for "Relegate the Important Stuff to Compilers". Why hasn't Microsoft released C and C++ compilers that institute bounds checking? Hell, ADA had this years ago and say what you will about the language it's a damned handy thing to have.
    This will be a good thing if it works out, but it will take years for these chips to penetrate the market to any significant degree and once again we are seeing hardware vendors come to the rescue of software companies by creating hardware that has the capability, either in speed or safety features, to compensate for bad programming tools and bad programmers.
  • LISP machines had this and much more (Score:4, Interesting)

    by hqm (49964) on Monday February 23 2004, @04:41PM (#8366560)
    The LISP machines built at the MIT AI Lab had hardware which worked in parallel with the main CPU that checked things like array bounds and also did other types of tag checking, such as automatic runtime coercion of ints to floats and other things that are helpful to a high level language.

    Since every object in LISP machine memory had a type tag, many useful operations could be parallelized, such as garbage collection and type dispatch for object oriented function calls.

    The problem with languages like C is that they have no object semantics at all, so runtime bounds checking and other goodies don't work very well. The C weenies have everybody convinced that this is necessary to get the highest performance, but they don't realize that with a small amount of extra hardware, all these safety operations can be done in parallel. And since the C weenies influence the CPU designers, it is a vicious circle of bad machine architecture.
  • Partial solution by Dr. Mu (Score:2) Monday February 23 2004, @04:42PM
  • "Average Joe" will buy it. by miscellaneous_havoc (Score:1) Monday February 23 2004, @04:42PM
  • Question... by Tehrasha (Score:1) Monday February 23 2004, @04:53PM
    • Re:Question... by flex941 (Score:1) Tuesday February 24 2004, @08:30AM
  • comparison with other hardware protection features by xot (Score:1) Monday February 23 2004, @05:08PM
    • 1 reply beneath your current threshold.
  • smashguard by StupaflyD (Score:1) Monday February 23 2004, @05:49PM
  • Been done before ??? by Samuel Nitzberg (Score:1) Monday February 23 2004, @05:53PM
  • Funny to (Score:3, Funny)

    by embedded_C (653649) on Monday February 23 2004, @05:55PM (#8367393)
    From the article...

    The alert was sparked by the discovery that a raft of Microsoft programs were vulnerable to a problem called "buffer overflow", which hackers can exploit to extract private information from a PC.

    ...

    The new AMD chips prevent this. They separate memory into instruction-only and data-only sections. If hackers attempt to execute code from the data section of memory, they will fail. Windows will then detect the attempt and close the application.

    So they are depending on Windows to detect the attempt and close the application? Bwahahaha! So now rather than offering Critical Updates to fix buffer overflow vulnerabilities, MS will now offer Critical Updates to fix buffer overflow exception handling vulnerabilities. Ha!

    • Re:Funny to by evilviper (Score:2) Tuesday February 24 2004, @10:15AM
    • 1 reply beneath your current threshold.
  • Average Joe Doesn't Care by Feren (Score:1) Monday February 23 2004, @06:17PM
  • SUN has done this for years by Anonymous Coward (Score:2) Monday February 23 2004, @06:22PM
  • by Anonymous Coward on Monday February 23 2004, @06:58PM (#8368026)
    This "new feature" for marking pages as having a non-executeable stack is *already* part of the Athlon-64 chips. The New Scientist article was talking about how a new version of XP will begin using it soon--not that it's not yet released.

    AMD has already made Intel look bad by getting their 64-bit CPU into the mass-market first, and this feature was implemented partly to provide a facility that some other platforms (e.g. Solaris on Sparc) have had for quite some time.
  • Stackguard anyone? by Anonymous Coward (Score:1) Monday February 23 2004, @08:06PM
  • Heads Up, Microsofties! (Score:3, Funny)

    by rixstep (611236) on Monday February 23 2004, @08:18PM (#8368851)
    (http://rixstep.com/)
    Actually this is fantastic news. Already, it doesn't matter that Microsofties are dividing by zero all over the place - it becomes an exception taken care of by the built-in structured exception handling and life goes on and the user is never the wiser.

    Now we can excerpt even more crappy code. All that's left is a realtime automaton connected to the CPU that spots Microsoft code on the way and automatically gives it a liposuction before feeding it in.

    Technology!
  • Old news for VMS by Anonymous Coward (Score:1) Monday February 23 2004, @10:05PM
  • SE Linux by Tracy Reed (Score:2) Monday February 23 2004, @11:53PM
  • Re:Please explain by jrexilius (Score:1) Monday February 23 2004, @02:37PM
    • 1 reply beneath your current threshold.
  • Re:the Chipmaker??? (Score:3, Insightful)

    by DaHat (247651) on Monday February 23 2004, @02:37PM (#8365042)
    (http://www.brendansstudentloans.com/)
    Because by your logic, Microsoft has patented the technology behind causing them and in this rare case decided to leave it up to someone else to fix.
    [ Parent ]
  • Re:Pathetic by Malc (Score:2) Monday February 23 2004, @02:39PM
    • 1 reply beneath your current threshold.
  • Re:Pathetic (Score:5, Insightful)

    by DaHat (247651) on Monday February 23 2004, @02:40PM (#8365076)
    (http://www.brendansstudentloans.com/)
    Wraaaag! Why does everyone keep calling this a Microsoft bug?

    Yes... the vast majority of buffer overflow exploits we read about are Microsoft based, however it's not too hard to find software from other providers, yes, even in Linux. Which can suffer from this kind of flaw.
    [ Parent ]
  • Re:Pathetic by Joe5678 (Score:1) Monday February 23 2004, @02:40PM
  • Re:Pathetic (Score:5, Insightful)

    by eht (8912) on Monday February 23 2004, @02:40PM (#8365085)
    What's about GNU/Linux's bugs or NetBSD's or Sendmail's bugs? This is OS agnostic.

    This isn't insightful, it's flamebait and FUD.
    [ Parent ]
    • Re:Pathetic by eht (Score:1) Monday February 23 2004, @04:25PM
  • M$? by ArchieBunker (Score:2) Monday February 23 2004, @02:41PM
  • Re:the Chipmaker??? (Score:4, Informative)

    by normal_guy (676813) on Monday February 23 2004, @02:43PM (#8365139)
    I assure you it's not just Microsoft who's to blame [securityfocus.com].
    [ Parent ]
  • Re:Pathetic (Score:5, Interesting)

    It's pathetic that AMD has to fix M$'s bugs...

    How is this insightful? First of all, any post that uses the $ is Microsoft's name should be modded -1, 14 year old poster.

    As if buffer overflows really had much to do with the OS. It has a lot more to do with poor coding. Try the following searches for more info:

    linux buffer overflow [google.com]
    bsd buffer overflow [google.com]
    OS X buffer overflow [google.com]
    Solaris buffer overflow [google.com]
    And yes, everyone's favorite:
    windows buffer overflow [google.com]

    [ Parent ]
    • Re:Pathetic by strictnein (Score:3) Monday February 23 2004, @03:22PM
    • 2 replies beneath your current threshold.
  • Re:Pathetic (Score:5, Insightful)

    by Anonymous Coward on Monday February 23 2004, @02:47PM (#8365206)
    Don't blame MS for everything. Unix too has a notorious history of its contibution due to buffer overflow. Ever heard of sendmail? I believe the first internet worm in 1988 utilized buffer overflow in number of unix apps including sendflow, finger, ...

    Software can't do everything. In fact, some earlier architectures offered choice of separating data segment and code segment (DEC VAX were the latest I used which had this feature), but because they have some performance penalty, the hardware companies removed this feature. Now that we have more speed than needed, it is being put back.
    [ Parent ]
    • 1 reply beneath your current threshold.
  • Re:the Chipmaker??? (Score:3, Insightful)

    by Malc (1751) on Monday February 23 2004, @02:48PM (#8365220)
    It's not just MSFT. It's everybody. You could make that statement about the Apache Foundation.
    [ Parent ]
  • Re:the Chipmaker??? by denlin (Score:2) Monday February 23 2004, @02:50PM
  • Re:the Chipmaker??? (Score:5, Informative)

    by kfg (145172) on Monday February 23 2004, @02:56PM (#8365343)
    This has nothing to do with Microsoft, and everything to do with architecture and programing languages.

    If you program in C on Intel you are going to have problems without almost fanatical devotion to the Po^H^H management of your memory resources.

    That goes for Linux as well, as any check at Bugtraq can confirm.

    Yes, people should be very careful when coding in languages and on architechtures which allow buffer overflow, but the real solution is at a level lower than the coder's.

    KFG
    [ Parent ]
  • Re:the Chipmaker??? by uarch (Score:1) Monday February 23 2004, @02:58PM
  • Re:the Chipmaker??? (Score:4, Insightful)

    by Frac (27516) on Monday February 23 2004, @03:06PM (#8365451)
    why does the chipmaker need to protect us from microsoft buffer overflow errors? why can't they just double check their code?

    That's like saying "why do we need cops? why can't people just not break the law, so no one needs to be around to reinforce them?"

    Accidents do happen, and it's not only Microsoft's own problem. It doesn't hurt to have another layer of security for bad programming...
    [ Parent ]
    • 1 reply beneath your current threshold.
  • Re:the Chipmaker??? by lcde (Score:2) Monday February 23 2004, @03:14PM
  • Re:the Chipmaker??? (Score:5, Insightful)

    by nehril (115874) on Monday February 23 2004, @03:52PM (#8365955)
    why can't they just double check their code?
    for the same reason cooperative multitasking went out of style: humans.

    theoretically a coop multitasking operating system is much more efficient than pre-emptive multitasking. coop multitasking systems (like Mac OS pre X and Novell Netware) require each application to voluntarily give up the CPU when appropriate. That means that every app gets the entire cpu to itself, yielding better cache performance and allowing the app to continue a thread until a good time to stop came along (like, waiting for input or disk or whatever). Unfortunately, that means all programs must be perfect, a bug in any one of the running programs will bring down the entire OS like a house of cards. Or if you didn't release resources just right, your app would appear to hog the entire system and it would LOOK like you crashed everything.

    Most programmers are not perfect.

    Thus the rise in pre-emptive multitasking, where app programmers no longer get to decide when to give up the cpu, the operating system yanks your thread based on timeslices or some other mechanism outside the apps control. this means your various caches no longer have the "right" data most of the time, and maybe your thread gets yanked 1 instruction short of what would have been a better stopping place (maybe the next cycle was for a well-timed disk access). Some advanced chip features like memory streaming for SIMD ops also get trampled by pre-emptive multitasking, meaning you can no longer prefetch large chunks of data since threading out stops all your streams (this is a problem for Altivec programming.)

    But on the whole, by acknowledging that programmers are not perfect (it only takes one bad one to ruin your system), and moving to the "wrong" solution of pre-empt multitasking, we get vastly improved stability and perceived performance. This is also why "wrong" solutions like hardware overflow protection are needed.

    A scientist would say you are right, but an engineer would say you are wrong.
    [ Parent ]
  • 28 replies beneath your current threshold.
(1) | 2