Slashdot Mirror


Linus Responds To RdRand Petition With Scorn

hypnosec writes "Linus Torvalds, in response to a petition on Change.org to remove RdRand from /dev/random, has lambasted the petitioner by called him ignorant for not understanding the code in the Linux Kernel. Kyle Condon from the UK raised a petition on Change.org to get Linus to remove RdRand from /dev/random in a bid 'to improve the overall security of the linux kernel.' In his response, Torvalds asked Condon and the supporters of the petition to gain an understanding of Linux drivers and cryptography, and then 'come back here and admit to the world that you were wrong.' Torvalds stressed that kernel maintainers knew what they were doing and the petitioner didn't. Torvalds, in a similar outburst just yesterday, hoped that 'ARM SoC hardware designers all die in some incredibly painful accident.' This came in response to a message from Kevin Hilman when he noted that there were quite a few conflicts in the ARM SoC pull request for Linux 3.12 which were a result of the platform changes conflicting with driver changes going in to the V4L tree."

354 of 566 comments (clear)

  1. you have the source by AndroSyn · · Score: 5, Insightful

    You have the source code, remove rdrand from the kernel yourself.

    1. Re:you have the source by BitZtream · · Score: 1, Insightful

      That's the most obnoxious open source cop out there is.

      --
      Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    2. Re:you have the source by BitZtream · · Score: 2, Insightful

      Note: I'm not saying it should be changed, just that the "change it yourself" line is ridiculously impractical for even people capable of coding the change properly. And worse for those who can't. Maintaining your own kernel tree over time is most certainly non-trivial by most peoples standards.

      --
      Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    3. Re:you have the source by Anonymous Coward · · Score: 1

      And the most popular.

    4. Re:you have the source by AndroSyn · · Score: 4, Insightful

      Then if you don't understand how to make this sort of change, then you aren't smart enough to understand why you should or should not be using RDRAND it in the first place.

    5. Re:you have the source by Anonymous Coward · · Score: 2, Insightful

      Not when it isn't a bug and the functionality desired is for yourself and not the planet. It's precisely the only response. Try getting Microsoft, IBM, Oracle or Apple to change their kernel to your tastes.

    6. Re:you have the source by ThePhilips · · Score: 1

      I'm not sure how it is in the new kernels, but in the past it was basically one flag - one bit - to tell whether the device should contribute to random pool or not. What I'm saying, it is not "ridiculously impractical," it is very highly likely a single line of code.

      And since we are in the embedded context, then it is also not particularly hard requirements, since for embedded systems kernel is routinely patched and custom built anyway (for hardware quirks, for extra non-standard hardware, support for specialized software, etc).

      --
      All hope abandon ye who enter here.
    7. Re:you have the source by Anonymous Coward · · Score: 5, Insightful

      It's not a "cop out" at all. The party that manages the code doesn't want to remove a feature that there's no logical reason to remove. The petition was one sentence, linked to no debate, made no points and didn't even attempt to negotiate. It could have said, "Do it, because we say so." and it would have been just as informative. I think you need to look up the definition of "cop out", because the petition creators could have actually done something useful, and didn't.

    8. Re:you have the source by h4rr4r · · Score: 1, Flamebait

      So what you are saying is you don't know how and would rather not learn how. Then maybe you should keep your trap shut and let Linus do what he does best.

    9. Re:you have the source by realityimpaired · · Score: 4, Insightful

      Not true... I have no opinion either way, but it's entirely possible to have a very good understanding of how semi-random numbers affect cryptography, and also of how rdrand generates them, without having the programming background to be able to safely remove it from the kernel. Crypto is about math, not programming, and contrary to popular opinion (apparently), the two do not always go hand-in-hand.

      It's not as simple as just commenting out a few lines of code. As likely as not, if you were to simply comment out a few lines you'd actually introduce another bug which could be worse for security. The Linux kernel is arcane, and even experienced/good programmers avoid making modifications they don't have to. What you're proposing is he fork it, and make a new release of the kernel *every time Linux releases one*, in order to comment out a feature that may not have enough entropy to be suitable for crypto. (I don't know one way or the other, but I'm guessing you don't either).

    10. Re:you have the source by AndroSyn · · Score: 5, Informative

      It's not as simple as just commenting out a few lines of code.

      No, it's easier than that. You can simply pass nordrand to the kernel. It was the first thing I saw when I opened up
      arch/x86/kernel/cpu/rdrand.c
      __setup("nordrand", x86_rdrand_setup);

      So there...don't like rdrand, don't use it.

      From Documentation/kernel-parameters.txt

                      nordrand [X86] Disable the direct use of the RDRAND
                                                      instruction even if it is supported by the
                                                      processor. RDRAND is still available to user
                                                      space applications.

    11. Re:you have the source by Anonymous Coward · · Score: 5, Insightful

      No, it is not. Being unwilling to do something for yourself, and then demanding that others do it for you, to the point of trying to pressure them with a mass petition, is the most obnoxious cop out.

    12. Re:you have the source by Lumpy · · Score: 1

      Who would maintain the whole tree? maintain your patch.

      Do you not know how this stuff works?

      --
      Do not look at laser with remaining good eye.
    13. Re:you have the source by pipatron · · Score: 5, Insightful

      Are you suggesting that the kernel should kill of application in userspace using this instruction? Are there any other instructions you morally object to? Using XOR with a constant is also bad cryptography, perhaps it should be prevented by the kernel.

      --
      c++; /* this makes c bigger but returns the old value */
    14. Re:you have the source by DarkOx · · Score: 3, Informative

      You don't need your own tree. Its mature area of the kernel. You just keep your patch and once in blue moon modify it slightly if some day it stops applying cleanly.

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
    15. Re:you have the source by Mashdar · · Score: 1

      Best comment in thread. Someone please mod up parent.

    16. Re:you have the source by tgd · · Score: 1

      It may be true in this case that a lack of understand of RDRAND is the root of the disagreement. But you can't generalize that logic. Just because I am not capable of building a nuclear bomb, doesn't mean I don't know enough about them to know they shouldn't be used.

      That's a bad analogy. If you were capable of building a nuclear bomb, it *may* give you sufficient expertise to judge the appropriateness of, say, using plutonium in a RTG, but your non-expert level of understanding of nuclear engineering does, in fact, mean you've got absolutely no grounds to judge that appropriateness.

    17. Re:you have the source by interval1066 · · Score: 2, Insightful

      ...let Linus do what he does best.

      Act like a raving lunatic? He's doing quite well enough, no one's getting in his way.

      --
      Python: 'And then suddenly you have a language which says "we're all stuck with whatever the whiniest coder wants".'
    18. Re:you have the source by michelcolman · · Score: 4, Insightful

      RDRAND is an instruction, just like "add these two registers" or "jump to this address". Of course it's still available to user space applications. The point is that you can specify that the OS itself should not use it for things like /dev/random. If a user space application wants to use it, there's not much the kernel can/should do about that. Apps can use pretty much any insecure random algorithm anyway.

    19. Re:you have the source by wisnoskij · · Score: 4, Insightful

      There is a huge difference between the skill set to maintain your own version of Linux, the skill set to program efficient code that does not break anything, and the skillset to understand encryption.

      --
      Troll is not a replacement for I disagree.
    20. Re:you have the source by realityimpaired · · Score: 2, Insightful

      If you'd bothered to read the comment thread in its entirety, you'd see that I posted, in quite plain English, that I have no opinion one way or the other about whether the instruction in question represents good crypto, because I don't know enough about the quality of numbers being generated.

      The comment you're replying to was in response to somebody claiming that in order to disable the instruction entirely, you only have to pass an argument to the kernel. Clearly, that doesn't disable it entirely, as stated in the comment that he pasted into his own reply.

      Of course, this being Slashdot, people don't give a shit about context, and reading is for the weak.

    21. Re:you have the source by Chrisq · · Score: 4, Funny

      Are you suggesting that the kernel should kill of application in userspace using this instruction? Are there any other instructions you morally object to?

      Op code 666

    22. Re:you have the source by fritsd · · Score: 2

      But, if it's a CPU instruction, you'd have to write code for it yourself in assembler. How many people would go that far, to bypass "best practice" default Linux kernel randomness, in order to only use this one CPU maker's code? It would look very suspicious:

      "Our security program runs only on that specific line of Intel CPUs, because.. well.. that's more secure than using anything else! just trust us!"

      --
      To be, or not to be: isn't that quite logical, Slashdot Beta?
    23. Re:you have the source by Anonymous Coward · · Score: 4, Informative

      Kyle Condon here, the reason I started the petition was not because I was too lazy to do it myself. I know C and could quite easily compile my own kernel with the functionality taken out. However, the petition was to have it removed from the MAINLINE linux kernel, this would remove it for everyone who ran the linux kernel and not just the select few who had enough knowledge to turn it off.

    24. Re:you have the source by Pirulo · · Score: 2

      can we have score 6 for parent?

    25. Re:you have the source by TechyImmigrant · · Score: 3, Informative

      > Is there even a way for the OS to prevent applications from using this instruction?

      Yes. You use your OSly powers to be the hypervisor and put a VM trap on the instruction. Then rather than returning a random number you return an #undef or a non random number or a zero with the carry flag clear.

      Don't trust a VM that traps RdRand. It is out to get you.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    26. Re:you have the source by TechyImmigrant · · Score: 1

      I think you would download the library from intel. http://software.intel.com/en-us/articles/intel-digital-random-number-generator-drng-software-implementation-guide

      Or use one of the many libraries like OpenSSL that use it.

      Or read from /dev/random, because the OS does it for you. Well partially.

      What makes you think Linux's RNG is 'best practice'. There are many of us in the huge and diverse RNG designer community that think it stinks.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    27. Re:you have the source by erikkemperman · · Score: 2

      No,no,no. Too obvious. How about,
      667 - neighbor of the beast

      --
      Gosh, thanks. That must be why the other ships call me Meatfucker -- GCU Grey Area (Eccentric)
    28. Re:you have the source by I'm+New+Around+Here · · Score: 1

      As Mashdar said:

      Best comment in thread. Someone please mod up parent.

      --
      If you think I voted for Trump because of this post, you're wrong. I voted for Dr. Jill Stein of the Green Party. Again.
    29. Re:you have the source by SecurityGuy · · Score: 1

      There are many of us in the huge and diverse RNG designer community that think it stinks.

      This is interesting. Is there a link you could share or something for us non RNG designers to understand why?

    30. Re:you have the source by FireFury03 · · Score: 1

      That's the most obnoxious open source cop out there is.

      It really isn't a cop out. Lets compare open source and closed source shall we:

      With closed source code you are generally paying someone. This covers the development costs of the software. In theory, you could ask them to make a change, and they could do so because you are paying them for this.

      With open source software you are generally getting it for free. You're not paying for anyone to do the development for you. If you really want to have some change implemented, you are free to pay someone to do it for you.

      In this regard, there really is no difference between open and closed source software - in both cases, if you want a change to be made then you really need to fund a developer to do the job.

      Of course, in reality, things are often a little bit different. Certainly, I've had a lot more luck working with open source projects to get bugs fixed and features implemented *for free* than I have convincing the likes of Apple and Microsoft to fix bugs in their closed source software which they are being paid for.

      So why is the "fix it yourself" comment often heard in the Free Software communities, so much more of a cop out as the "we're not interested in fixing that" you get from proprietary software companies? Why would you expect someone to fix this stuff for free, when conversely the commercial world is often not even interested in fixing this stuff when you pay them?

      Free software has a major advantage over commercial stuff: you get the opportunity to get things fixed by hiring someone to do it, if they are important enough to you - you can't do that with proprietary software.

    31. Re:you have the source by AndroSyn · · Score: 1

      Any questions?

      Sounds like you still have questions. For one, that is all Linus would have been able to do anyways, the RDRAND instruction isn't privledged.

      You'd hope that whatever userspace program, be it openssl etc, would be smart about its usage of the RDRAND instruction. It would certainly need to be, as the RDRAND instruction doesn't exist on every CPU, certainly not a lot of older ones. Most any cryptographic software worth its salt has methods of specify its PRNG source as well.

      Random numbers aren't something that should be left to chance.

    32. Re:you have the source by Anonymous Coward · · Score: 1

      If you think you know better than the kernel maintainers, then sure, go for it. Otherwise don't demand others do what you will not do yourself.

    33. Re:you have the source by gweihir · · Score: 2

      You have the source code, remove rdrand from the kernel yourself.

      And that would be exceedingly stupid. The trick to good entropy gathering is to use all sources available, mix them into the entropy pool, while very conservatively estimate each ones contribution. Removing _any_ source that provides at least some entropy, even if only under some conditions, can only make the result worse. That means that even of RdRand is fully compromised (which is extremely unlikely, as that would be obvious), it would still be a bad idea to remove it. It may be sensible to estimate its contribution as very low or zero, but one source cannot compromise the entropy pool and that is the whole point of the design. If there is at least one good entropy source mixed in, then the /dev/random is secure. If enough so-so sources are mixed in, then /dev/random is secure. If in addition any bad or compromised sources are mixed in, /dev/random is not made any less secure.

      And yes, Linus is right. The petitioner does not understand how entropy, entropy gathering and entropy pools work and what he petitioned for is exceedingly stupid. That Linus has an abrasive communication style may just be the result of him having been exposed to too much BS like this.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    34. Re:you have the source by interval1066 · · Score: 1

      lol

      --
      Python: 'And then suddenly you have a language which says "we're all stuck with whatever the whiniest coder wants".'
    35. Re:you have the source by fritsd · · Score: 1

      What makes you think Linux's RNG is 'best practice'. There are many of us in the huge and diverse RNG designer community that think it stinks.

      I probably didn't express myself well, but by "best practice" I meant: for programmers with only a little understanding of design of random number generators (like me), it's probably better to assume that smarter people have done a better effort than I could ever do, designing /dev/random and /dev/urandom behaviour for the Linux kernel (/dev/urandom good enough for computer games and /dev/random for crypto applications and Monte-Carlo optimizations) .

      If, as you say, "it stinks", then what do you recommend? FreeBSD? Could you please elaborate why "it stinks"?

      --
      To be, or not to be: isn't that quite logical, Slashdot Beta?
    36. Re:you have the source by TechyImmigrant · · Score: 5, Informative

      Yes. But I'm not going to give a well researched answer because I'm about to get on a plane.

      Primarily the problem is that the Linux kernel RNG exists in many contexts and trusts that its random sources are random across all those contexts. This has been found to be false. The factorable.net study showing re-used primes between certs created on low-entropy router devices is an example of what can go wrong.

      There are other more detailed things. The pool entropy calculations are flat out wrong. They are less wrong after Peter Anvin submitted a patch to have it do a piecwise approximation to a shannon entropy sum rather than an arithmetic sum, but it's not doing anything like a normal min-entropy computation for an entropy extraction algorithm.

      The kernel trusts userland programs to be honest about the entropy in the sources. E.G. RNGd. However RNGd and other entropy gather daemon's have no basis on which to know the source entropy and so they make it up. The kernel takes this number and uses it in the pool entropy calculation. And so the whole calculation is built on sand.

      The behavior of the kernel results in boot time entropy starvation, right at the point where you need it most.

      This is RdRand changes the picture somewhat. The entropy source is well modeled and its min entropy is know. The resulting entropy from the condition is therefore known. The entropy seeding the DRBG is therefore know. It is therefore known how to extract full entropy output from RdRand, and it is known what the cryptographic resistance to brute for attack is (which is not quite the same thing). Such a chain of reasoning is what a good RNG should have.

      You are better off using RdRand because it's available from the first instruction executed. It has known properties and the resulting numbers are not subject to the timing, memory API attacks that the kernel RNG numbers are subject to on the long winding path from device to RNGd to kernel API to kernel RNG to /dev/random to userland library to userland application.
       

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    37. Re:you have the source by TechyImmigrant · · Score: 1

      I am an RNG designer you dolt!

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    38. Re:you have the source by TechyImmigrant · · Score: 1

      I recommend you use RdRand directly. But I'm biased because RdRand is my thing.

      Ted Tso, The linux kernel RNG maintainer said in the past couple of days on his Google+ page that he considers /dev/random unnecessary and is only keeping it around for backwards compatibility.

      With that kind of commitment, what could possibly go wrong?

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    39. Re:you have the source by TheRaven64 · · Score: 1

      Don't trust a VM that traps RdRand. It is out to get you.

      Not necessarily. A high-availability hypervisor will trap on this instruction to ensure that only one of the VMs actually gets a random number and the others all get the same value propagated to them. They will do the same with RDTSC, for the same reason.

      --
      I am TheRaven on Soylent News
    40. Re:you have the source by pthisis · · Score: 2

      Not true... I have no opinion either way, but it's entirely possible to have a very good understanding of how semi-random numbers affect cryptography, and also of how rdrand generates them, without having the programming background to be able to safely remove it from the kernel. Crypto is about math, not programming, and contrary to popular opinion (apparently), the two do not always go hand-in-hand.

      RdRand could generate entirely non-random numbers and it still wouldn't make the output of /dev/random any less random. It's designed so that additional inputs can only increase the entropy, never decrease it. There's a danger if you over-estimate the amount of entropy that a particular input adds to the pool, but the bits mixed in from rdrand don't increase the entropy counter so that's not a problem in this case.

      http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c2557a303ab6712bb6e09447df828c557c710ac9

      --
      rage, rage against the dying of the light
    41. Re:you have the source by jon3k · · Score: 1

      If it's such a big deal that you have a petition, just branch the kernel. That's the entire fucking point of open source.

    42. Re:you have the source by sjames · · Score: 1

      The problem is not having enough programming skills to see that removal is unnecessary because rdrand is not the only entropy thrown into the pool. It's hard to stack the deck when someone else also gets to shuffle.

    43. Re:you have the source by ultranova · · Score: 3, Informative

      The comment you're replying to was in response to somebody claiming that in order to disable the instruction entirely, you only have to pass an argument to the kernel. Clearly, that doesn't disable it entirely, as stated in the comment that he pasted into his own reply.

      The petition, this thread and the comment you replied to were all talking about the kernel and the random numbers it provides through /dev/random. So, in the context of this discussion, passing an argument to the kernel does disable RDRAND completely. This is a bit too obvious to believe you're arguing in good faith here.

      Of course, this being Slashdot, people don't give a shit about context, and reading is for the weak.

      Indeed.

      --

      Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

    44. Re:you have the source by tytso · · Score: 2

      What I said is that /dev/urandom is much more important to get right than /dev/random. Realistically, far more programs use /dev/urandom than use /dev/random. GPG uses /dev/random for long-term key generatiom, but in terms of generating certs, creating session keys, etc., /dev/urandom is far more important.

      If you trust Intel not to have gimmicked RDRAND, by all means, feel free to use it. Please do it in open source, though, so I can fix said program not to, though.....

    45. Re:you have the source by tytso · · Score: 5, Insightful

      The random driver has changed significantly since July 2012, which is we were given a heads up about the paper described at http://factorable.net/ which is also when I took back maintainership of the /dev/random driver. We gather entropy at every single interrupt, and mix it into the entropy pool. This is done unconditionally, you can't disable it, like what happened with the SA_SAMPLE_RANDOM flag.

      The thing about entropy pools is that when you combine entropy sources, the result gets better, not worse. So the best thing would be if we had hardware random number generators sourced from China, Russia, and the USA. Since presumably the MSS, KGB, and the NSA mutually distrust each other, if we combine the entropy from those three soruces, the result will be stronger than any one alone.

      This is why I don't recommend using RDRAND directly. Sure, an honest (emphasis on honest) hardware random number geneterator will always be able to source higher quality entropy than anything we can do by sampling OS events, such as interrupts. But the problem is it's hard to guarantee that a HWRNG is really honest. Especially given the Snowden revelations which seem to indicate the NSA has successfully leaned on at least one chip manufacturer. If you must use RDRAND, I'd recommend generating a random key via some other means, and then encrypting the output of RDRAND by that random key before use the resulting randomness for session keys, etc. Or better yet, do what we do in /dev/random, which is to mix RDRAND with other sources of entropy.

    46. Re:you have the source by OrangeTide · · Score: 1

      Programming is the easy part. I do it every day and I don't have any specialized degrees for it.

      If you can't make the change yourself, then hire someone who can. I can refer you to several other high school and college drop outs that will write kernel code for money.

      --
      “Common sense is not so common.” — Voltaire
    47. Re:you have the source by K.+S.+Kyosuke · · Score: 1

      Why would you have to maintain your own kernel tree? Is the kernel incapable of running on x86/AMD64 machines without RDRAND anymore? Is turning it off such a difficult problem that it requires you to "maintain your own kernel tree"?

      --
      Ezekiel 23:20
    48. Re:you have the source by Anonymous Coward · · Score: 1

      All the analysis of RdRand is based on on the assumption that it's implemented as its documented. Even a backdoor'd RNG can be made indistinguishable from statistically random noise.

      And entropy can be preserved across reboots by saving state to a file.

      In reality, though, all of these things should be used. Preserve entropy state across reboots, _and_ mix-in RdRand data, and use other methods. XOR'ing all of these things together cannot diminish the overall security of it. One bad source cannot corrupt another source, except for these dubious entropy calculations where people wave their hands like magicians. But this is why real CSPRNG's like Fortuna don't depend on accurate entropy calculations--they take everything they can and mix it as well as they can. But Linux suffers from NIH syndrome when it comes to these things and everybody insists on rolling their own.

    49. Re:you have the source by Rich · · Score: 1

      > Crypto is about math, not programming

      The theory of crypto sure, but actually implementing it is much more about programming rather than about math. Most of the attacks on crypto implementations are side channel attacks not attacks on the basic maths that underlies the primitives. The implementation is much harder than the maths.

    50. Re:you have the source by Lennie · · Score: 1

      The first question you should ask is:
      Where do these embedded devices get their random data ? /dev/urandom or /dev/random or some other device ?

      Linux kernel uses a pool with different sources and only accepts input on /dev/random from root.

      Anyway you slice or dice, It's just tricky getting good random data on embedded devices.

      --
      New things are always on the horizon
    51. Re:you have the source by Lennie · · Score: 1

      Actually, urandom shouldn't be used for crypto if at all possible. That's the whole point.

      --
      New things are always on the horizon
    52. Re:you have the source by cheater512 · · Score: 1

      Erm commenting out one or two lines isn't difficult, and you'd just make a patch. Apply to new kernel version, done.
      Something like this doesn't require maintaining a fork of the kernel. Just applying one tiny patch before compiling the kernel.

    53. Re:you have the source by HiThere · · Score: 1

      That's NOT the entire point. One of the points, but not the only one. Let's not lose perspective here.

      So what's going on is that Linus isn't convinced that this is a problem that needs fixing. And because of this he isn't going to do so. Maybe he's right, maybe he's wrong. Certainly many people could make the change if they wanted to. Red Hat certainly could, and probably would if they though their customers wanted it. Debian could, and probably would if they were convinced their ideals demanded it. Ubuntu could. Probably SUSE. Maybe even Slackware. Convince any one of those, and you'll get a distro that implements that decision. But they are demanding that Linux make this change at the root of the tree...and NONE of the groups I mentioned have been convinced.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    54. Re:you have the source by kenshin33 · · Score: 3, Insightful

      the whole thing was about using/not using it in /dev/random (the random number generator of the kernel ). http://en.wikipedia.org/wiki/RdRand rdrand is a cpu instruction to get some random number from a embedded hardware random number generator (a chip) as is mov, add, mul, or, XOR ..etc. the comment you quoted (from kernel doc) is simply stating that even though you disable it's use in /dev/random any user space code running (program) might use it ( as it can use any other cpu instruction)

    55. Re:you have the source by TheRaven64 · · Score: 1

      Setting bit 11 of the second VM execution control register will cause RDRAND to cause VMExits when it is executed. This permits it to be trapped by a hypervisor. (Yes, I did have to look that up)

      --
      I am TheRaven on Soylent News
    56. Re:you have the source by hyperfl0w · · Score: 1

      Entropy + mutual distrust = security
      FASCINATING proposal!
      I would have never thought
      MSS+KGB+NSA = privacy IFF every agency provides a mutually distrusted hardware key

      But is this mathematically true? (honest question)
      Shannon entropy also applies to mutual information
      , which formally includes joint entropy, eg...."detecting when values change together".
      If these same agencies were able to detect any shared properties (such as joint entropy), the encryption would be EASIER to break, not harder.

    57. Re:you have the source by semi-extrinsic · · Score: 1

      How would you respond to people who create a partition to remove something which already has a "disable" flag in the kernel? It's as simple as getting the source, changing one bool to true, and compiling. These people are ignorant as hell, and Linus is calling them out on it.

      --
      for i in `facebook friends "=bday" 2>/dev/null | cut -d " " -f 3-`; do facebook wallpost $i "Happy birthday!"; done
    58. Re:you have the source by tytso · · Score: 1

      How would they detect any shared properties? The point is that they are providing a random number generator (not a stream of random numbers) which is supposedly "secure". Secure means that no one, including the person providing the RNG, can predict the stream of numbers coming form the RNG. If the RNG coming form the US source is not honest, that means that presumably the NSA can predict the stream of numbers coming out of the RNG. But the NSA (assuming that it distrusts the KGB and the MSS) wouldn't want the KGB and the MSS to be able to carry out the same feat. The same is true for each of the other devices. So there's no way that any one of the actors should be able to detect any shared properties --- that's the point of the proposal.

      Now, if the NSA is able to gimmick the RNG coming from China, then that's a different story. And to the extent that many electronics are designed in the US and then manufacturered in China, that's certainly a concern. In order for a scheme like this to work, the parts would have to be designed and built in such a way that an outsider would believe that the NSA couldn't have possibly gimmicked an RNG, even if it could have been gimmicked by another spy agency. Then combine this with a device that you're sure couldn't have been gimmicked by the MSS, but may have been subject to pressure from the NSA, and so on.

    59. Re:you have the source by Frank+T.+Lofaro+Jr. · · Score: 1

      Using XOR with a constant is also bad cryptography

      Dang, I have some code to rewrite before the NSA gets to my data. LOL.

      --
      Just because it CAN be done, doesn't mean it should!
    60. Re:you have the source by TechyImmigrant · · Score: 1

      That is only for hypervisors implementing lockstep mode.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    61. Re:you have the source by TechyImmigrant · · Score: 1

      I don't think the kernel should use RdRand directly for /dev/urandom output unless the user provides a policy option to that effect, but without a policy option, the best thing for the OS to do is mix multiple sources. There are other reasons than tin-foil-hatdom to mistrust RdRand. You may mistrust your VM which could trap the instruction, so if running in a VM under the control of someone else, you may want to not credit RdRand (or anything else) with entropy. In fact, don't run anything security critical on a VM controlled by someone else. That's insane.

      What is wrong is that RdRand is credited no entropy, so when RdRand is used, with its 70MB/s/thread output from the first post reset instruction, it doesn't prevent /dev/random blocking, which leads to people preferring /dev/urandom, which leaves them vulnerable to low entropy situations.

      We provided an extremely conservative min-entropy for RdRand of 1/511 bits per bit. The actual is about 1 bit per bit, getting to no worse than 1/11 bits per bit when under maximum load (8+ threads executing RdRand as hard as they can on 4+ cores) but the design has a hard limit in hardware that prevents the answer being worse than 1/255.5 bits per bit. I.E. 'C' in the NIST SP800-90A CTR-DRBG cannot get to more that 511. So that's a maximum of 511 128 bit results for one fully entropic 256 bit seed. The bus can't pull fast enough to get C beyond 22.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    62. Re:you have the source by TechyImmigrant · · Score: 1

      Wireless devices without a quality hardware RNG (I.E. pretty much any phone without and intel processor in it) should get random noise from the radio receiver. Get it receiving packs (so the radio path is operating in a linear mode) and the demod is then working to separate symbols from noise. Just output the error vector of the modem during successful packet reception and you have an excellent and fast source of noise.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    63. Re:you have the source by TechyImmigrant · · Score: 1

      Good god I can't type today. Argh.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    64. Re:you have the source by tytso · · Score: 1

      We had some issues with not adding enough randomness in embedded devices, but that problem was largely fixed a year ago. At this point, I think urandom should be fine for session keys. It's not the best choice for long-lived keys in those embedded devices, but those devices (a) don't have RDRAND, since they tend to mips or ARM CPU's, and (b) since they don't have any peripherals other than the flash drive and the networking cards, there isn't that much entropy they can draw upon. There are things you can do to improve things in userspace, such as holding off on generating the host keys and generating the RSA keys for the certificates as long as possible, instead of right after the boot. But that's much more of a specialized problem for a specific class of system.

    65. Re:you have the source by TechyImmigrant · · Score: 1

      That's why I said use have to take the values during successful packet reception so the receive chain is operating in a linear mode. Every receiver has a noise figure.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    66. Re:you have the source by Lennie · · Score: 2

      Interesting enough the Raspberry Pi has a hardware random number generator built in, did you know that ?

      That might actually be one of the cheapest devices with a hardware random number generator I'm aware of.

      Does anyone have any information about what type it is, how it works and how good it is ?

      --
      New things are always on the horizon
    67. Re:you have the source by hyperfl0w · · Score: 1

      How would they detect any shared properties?

      Perhaps Covariance analysis? (mutual information, pearson, svd, etc).

      Input: 3 data streams A,B,C each which are not truly random
      Correlate: A&B, A&C, B&C
      Subproblems: given A&B predict C
      Subproblems: given A&C predict B
      Subproblems: given B&C predict A


      NSA has mathematicians better than I, for sure. My guess is that if an agency has altered an RNG then they have done so in a way that is systematic. These kinds of problems are common in analysis of complex systems -- given three non random variables with characteristic variance can you predict the output variable from the covariance? I dont think I could, but it seems feasible to me that the NSA could.

    68. Re:you have the source by You're+All+Wrong · · Score: 1

      And if you want to prevent the kernel from ever being started that way just compile it out by disabling this Kconfig option with make-menuconfig, or similar:

      config ARCH_RANDOM
                      def_bool y
                      prompt "x86 architectural random number generator" if EXPERT
                      ---help---
                          Enable the x86 architectural RDRAND instruction
                          (Intel Bull Mountain technology) to generate random numbers.
                          If supported, this is a high bandwidth, cryptographically
                          secure hardware random number generator.

      No need to delve into C at all.

      --
      Your head of state is a corrupt weasel, I hope you're happy.
    69. Re:you have the source by You're+All+Wrong · · Score: 1

      MOV with an immediate value is even worse! Outlaw them all!

      Having said that - sometimes the kernel does have a right to prevent user space applications shooting themselves in the foot (e.g. trapping out-of-bounds memory accesses), it is possible to make an argument that - if the intel generator were to proved to be compromised - that the kernel should intervene and prevent it.

      Do you think a kernel that can intercept and correct FDIV calls on broken chips should let userspace blindly just receive unwanted results from said instruction?

      In the rdrand case, the userspace program wants a random number. If rdrand is buggy, and does not return that, then how is that different from the FDIV case?

      --
      Your head of state is a corrupt weasel, I hope you're happy.
    70. Re:you have the source by TechyImmigrant · · Score: 1

      Now I'm drunk I can see that you were being funny, but I wasn't drunk earlier, so I though you were being serious and misinformed about radio systems.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    71. Re:you have the source by TheLink · · Score: 1

      I recommend you use RdRand directly. But I'm biased because RdRand is my thing.

      OK assuming you really are an expert in this field how do you recommend people use something like RdRand to help generate random numbers assuming that it might be tampered with under the influence of someone like the NSA?

      Directly? Not at all (as per the petition)? Or as a contributing source of randomness? If the last please do provide additional info on how you'd do it to maintain security.

      --
    72. Re:you have the source by VortexCortex · · Score: 1

      Are you suggesting that the kernel should kill of application in userspace using this instruction? Are there any other instructions you morally object to?

      Op code 666

      It's funny you should mention this. Just yesterday I was proofing a reference implementation by hand of the Hash Message Authentication Code algorithm (HMAC), you know, the one that is used to key a secure hash algorithm...

      The algorithm is basically this [pseudo code]:
      opad = 0x5c x hash_block_size // Repeating bytes of padding
      ipad = 0x36 x hash_block_size // uste to make 2 key out of 1.
      if key.length > hash_block_size then key = HASH( key );
      opad = opad XOR key // each byte of key XORed
      ipad = ipad XOR key // with ipad and opads bytes
      HMAC_result = HASH( opad + HASH( ipad + message ) ) // + is concatenation

      So, I've got the SHA-512 implementation running on graph paper, and simultaneously I'm stepping through the code using a debugger on the software.
      I glance up at the screen after the memset( ipad, 0x36, hash_block_size ); and see this:
      *ipad == "666666666666666..." // 128 sixes.
      I spewed coffee on my keyboard laughing, because the source code line was also 666. I should have instantly realized the charcode from many an ASCII Hex <-> Bin implementation. However, here I had written out 128 sixes in disguise on my graph paper too (1024bit block), and all the reference implementations refer to the 6 char by its hexcode as well... Which I might add: 0x36 = 3 6 ... three six? 666?

      Truly, the devil is in the details... keeping you secure!

    73. Re:you have the source by TechyImmigrant · · Score: 1

      If it's for a crypto application that you want to be defended from a possible local attack, use it directly. The number is dropped straight into the register of the running application and hasn't visited cache or memory or disk or drivers or OS kernel or API. It's your problem to use is securely from then on, but the delivery path has a heck of a lot smaller attack surface.

      If you are writing an OS for the general public, mix it into a pool, because that is what makes people happy. It doesn't make them more secure, but happy is good.

      Don't read anything into expertise. Judge the quality of the argument.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    74. Re:you have the source by zzyzyx · · Score: 1

      What if the numbers returned by RdRand are actively engineered to subvert the output of the RNG ? For example if it returns the value with which it is going to be XORed, like someone suggested? It is not impossible since the CPU basically has access to everything.

      I'm no cryptanalyst but it seems that the assumption that mixing sources can only improve the entropy is valid only if there can be no correlation between these sources. If one source has access to the internal state of the RNG, it's not the case any more.

    75. Re:you have the source by uninformedLuddite · · Score: 1

      ...let Linus do what he does best.

      Act like a raving lunatic? He's doing quite well enough, no one's getting in his way.

      Oh fsck off

      --
      The new right fascists are bilingual. They speak English and Bullshit.
    76. Re:you have the source by TheLink · · Score: 1

      I recommend you use RdRand directly. But I'm biased because RdRand is my thing.

      Don't read anything into expertise. Judge the quality of the argument.

      Given your answers it seems we really shouldn't be using RdRand (your thing) directly.
      Because the question was:

      How do you recommend people use something like RdRand to help generate random numbers assuming that it might be tampered with under the influence of someone like the NSA?

      And your response:

      If it's for a crypto application that you want to be defended from a possible local attack, use it directly.

      And unless you can show/prove otherwise (which you haven't so far despite giving the opportunity), if a hardware random number generator is weakened by the NSA and producing bits that are not so random to the NSA (even though they appear random to others), using it directly would make cracking things far easier for the NSA than if it's output was mixed with other sources of randomness.

      The issue of course is if the mixing produces numbers that are not random enough e.g. if you use AES to encrypt the whole thing and it results in a stream that's not really that random.

      I'd be very interested if you can prove that the resulting stream in this case would be more guessable to the NSA than directly using the not-so-random stream from the NSA's generator

      --
  2. Well, if that doesn't work... by Anonymous Coward · · Score: 1

    try We The People website.

  3. Linus Torvalds is an NSA asset by Anonymous Coward · · Score: 1

    The Truth Will Out!

    1. Re:Linus Torvalds is an NSA asset by Anonymous Coward · · Score: 3, Funny

      The Truth Will Out!

      Oh, come now. It'll only out if you accidentally the whole thing.

  4. At Least He Doesn't Throw Chairs by Anonymous Coward · · Score: 2, Insightful

    This douche bag just wishes painful death on people who disagree with him. That is so much better. The guy may be brilliant and he may have created a wonderful thing for the world. But he is every bit the douche bag that Jobs and Ballmer have ever been.

    1. Re:At Least He Doesn't Throw Chairs by iserlohn · · Score: 4, Insightful

      Linus is funny while Ballmer acts funny. Worlds apart if you ask me.

    2. Re:At Least He Doesn't Throw Chairs by Anonymous Coward · · Score: 1

      He is from Finland. They're a special kind of people, to say the least.

      Look up "management by perkele". The VEEP episode set in Finland portrayed them fairly well, I think.

    3. Re:At Least He Doesn't Throw Chairs by Goaway · · Score: 5, Insightful

      No, the guy who made the petition was way out of line for calling Linux "an approved partner of the NSA", and way out of his depth because he had no idea what the hell he was talking about.

      Linus was just responding to an asshat, and went pretty easy on him.

    4. Re:At Least He Doesn't Throw Chairs by MrDoh! · · Score: 4, Funny

      Yeah, it's just Finnish humour that's being taken badly. I know he's been in the US for a long time, but he's not being mean, it's just a way of expression that it appears many don't get. !Still, the AC could always email Linus and ask him to change, I'm sure he'd appreciate the input.

      --
      Waiting for an amusing sig.
    5. Re:At Least He Doesn't Throw Chairs by plover · · Score: 1

      Perhaps we should all wish Linus is given a ride in a gilded carriage drawn by unicorns to Soft Kitten Land, where kindergarten teachers repeat the Golden Rule to him.

      --
      John
    6. Re:At Least He Doesn't Throw Chairs by Sarten-X · · Score: 4, Interesting

      ...where kindergarten teachers repeat the Golden Rule to him.

      I've seen Linus get into an argument with someone of the same style. After a few rounds, it became obviously different that the debate was not like the typical Internet insult-hurling flame war. Rather, each side had points and counter-points and presented a persuasive case... just peppered with insults and offenses, as a separate layer of argument. It's sort of like real insult swordfighting.

      --
      You do not have a moral or legal right to do absolutely anything you want.
    7. Re:At Least He Doesn't Throw Chairs by oztiks · · Score: 5, Insightful

      I'm with you on that. It seems like his sense of humour and his calling "a spade a spade" philosophy earns him a lot of criticism. I always argue that Linus is your typical purest. He's not there to please or appease. He's there to focus on getting things done right, in his own way, but as correct as he sees it.

      I argue that because he's giving Linux freely to the world and with limited monetary gain that we can't chastise him too much about it either. What he's missing is something which I've learned through my own errors when dealing with people in the past. And that is, to deal with "the public" one must always do so with the softest possible touch. That's only if you're wanting to earn the minds of the masses mind you.

      So I say. People who bag him with the whole "his attitude is appalling" type statements. Well, it sucks to be you because I think that you're just too much of a sook and you need to harden/lighten up a little. The people who condone the attitude I say "meh, you're probably a purest as well" because they wish to understand truth and wish to see what goes on in the Linus' mind just as I do.

      As me for me. Truth be told. The day Linus actually starts acting like the rest of the PR sheep out there is the day I'd start to worry about crypto that NSA may of sneaked in to the Linux kernel. Until then. It's good to see him throwing out comments like "Deep throat Microsoft" and "You're ignorant". This kind of talk is indicative of when the internet wasn't populated by commercially driven cock suckers like Mark Zuckerberg abusing the word "hacker" and trying to pass himself off as "one of us".

      So at the end of the day, who's really lost touch here?

    8. Re:At Least He Doesn't Throw Chairs by Lumpy · · Score: 1

      All said by someone without the balls to post as themselves.

      --
      Do not look at laser with remaining good eye.
    9. Re:At Least He Doesn't Throw Chairs by oztiks · · Score: 5, Informative

      He didn't create anything. ANYTHING. Open source existed before Torvalds. UNIX existed before Torvalds. To use the infamous battle cry of the typical Slashdork... "Where's teh innovationz?!?!?111!!?"

      I've been using Linux since 1993. I can't even begin to tell you how wrong you are :) Oh the memories ... 14.4 modems, 386 DX!! (yes, none of those pussy SX processors), Hercules monitors and MFM harddisks!

      When people start treating it like a valid technology instead of a religious movement it'll get more momentum in the mainstream.

      You're missing the point. It's not treated as a religious movement It's kind of more like being a 60s child in the modern day if that makes sense.

      When people start worrying about advancing Linux over where it stands versus Microsoft or Apple it'll finally have the chance of taking great leaps forward.

      Google wrapped a business model around Linux. It's called Android and it's doing just fine.

    10. Re:At Least He Doesn't Throw Chairs by oztiks · · Score: 3, Informative

      Not to make it a dick measuring competition on Tovalds behalf but you look at the guy on the other side of the fence who made staggeringly more.

      Besides, we wont mention that this person in question has since then retired and is still making literally 100x more per year than Tovalds. I get your point but relatively speaking, If Tovalds chose to sell out how much more could [of] he made/make?

    11. Re:At Least He Doesn't Throw Chairs by MysteriousPreacher · · Score: 2

      All said by someone without the balls to post as themselves.

      Yeah, not like us ex-military types who have the balls to post under our real pseudo identities.

      Does AC even lift?

      --
      -- Using the preview button since 2005
    12. Re:At Least He Doesn't Throw Chairs by plover · · Score: 1

      I was simply trying to find a suitably Linus-specific painful substitute for the Die-In-A-Fire rhetoric.

      --
      John
    13. Re:At Least He Doesn't Throw Chairs by Lumpy · · Score: 3, Funny

      That is my real name you insensitive clod!

      --
      Do not look at laser with remaining good eye.
    14. Re:At Least He Doesn't Throw Chairs by Anonymous Coward · · Score: 3, Informative

      I take it from your posts which contain slight spelling and grammar affectations (but are otherwise coherent) that English is not your native language.

      You may wish to make note of the following:

      "I have made over $10,000,000 this year."

      "I of made over $10,000,000 this year."

      These statements are not equivalent and one of them is actually nonsense.

      "I could have made over $10,000,000 this year."

      "I could of made over $10,000,000 this year."

      Likewise with these statements.

      "I could've made over $10,000,000 this year."

      This is pronounced as "could uv", but I assure you that the 've is a contraction for "have". Many less educated native English speakers make this mistake, so you'll likely want to avoid it when possible.

    15. Re:At Least He Doesn't Throw Chairs by Gibgezr · · Score: 1

      Saving you all a trip to Wikipedia:
      "Management by perkele is originally a Swedish expression for a Finnish leadership approach that, according to its proponents, takes required actions in a quick and swift way, instead of a prolonged pondering of all possible alternative approaches and points of view before actually getting anything done. This is specifically contrasted to the Swedish consensus decision-making, where the manager makes sure that everyone involved has been heard before decisions are taken.

      The name is derived from the well-known Finnish swear word perkele, and it is a reference to the repeated times this word is yelled by the top managers."

    16. Re:At Least He Doesn't Throw Chairs by Barlo_Mung_42 · · Score: 1

      Every time Linus gets angry people compare him to Ballmer and mention chairs. Ballmer isn't a good comparison. It would be better to compare him to Dave Cutler. Cutler was a bully but he knew how to use his anger as a tool to motivate people. He was disliked by many but NT wouldn't have gotten done without him.

    17. Re:At Least He Doesn't Throw Chairs by MysteriousPreacher · · Score: 1

      That is my real name you insensitive clod!

      Sorry, Mr/Ms Lumpy.

      --
      -- Using the preview button since 2005
    18. Re:At Least He Doesn't Throw Chairs by runeghost · · Score: 1

      Wait, chair throwing? Is he auditioning to be Balmer's replacement or something?

    19. Re:At Least He Doesn't Throw Chairs by Anonymous Coward · · Score: 1

      If its anything like Danish humour, then its down right insulting bordering on xenophobia.

    20. Re:At Least He Doesn't Throw Chairs by HiThere · · Score: 1

      Odd. That was analogous to my reaction to reading an MS EULA a decade+ ago. And shortly (a couple of years later) to reading an Apple EULA attached to an important security fix. I resolved to never depend on them for anything. It's been inconvenient at times (at that time Linux didn't have an adequate word processor), but overall I've never regretted the decision.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    21. Re:At Least He Doesn't Throw Chairs by HiThere · · Score: 1

      While true, you need to realize (you probably do) that if you are posting without a handle there is no particular reason to attach any credibility to any statement or claim that you make. You don't have a reputation separate from all the other "Anonymous Coward"s, and are generally and reasonably shoved into the same category as the lowest common denominator of them. If you clearly aren't a troll, you may be taken more seriously, but being "clearly not a troll" is difficult.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    22. Re:At Least He Doesn't Throw Chairs by gottabeme · · Score: 1

      To everyone who actually has the authority to affect policy change on what software is being used in places that actually matter(and that will NEVER be you as long as you can't understand this), this open source guy looks like a toxic waste dump. Him and his products need to be avoided, lest we be associated with someone so shamelessly lacking in professionalism. You can hate the rules, but that won't change them.

      Interesting. Is that why Linux is used by and in, e.g. Intel, Google, Yahoo, Android, NYSE, NASDAQ, airplanes, spaceships, cars, trucks, TVs...need I go on? Apparently all of those places aren't familiar with your rules.

      What you meant to say is that clueless PHBs who "never got fired for using Microsoft" and don't have a clue who Linus Torvalds actually is would not want to use his software if they heard him say something like that. And that's why they are not Intel, Google, Yahoo, Android, NYSE...

      --
      "Those who consume the bulk of goods are those who make them. We must never forget this secret of our prosperity."
    23. Re:At Least He Doesn't Throw Chairs by Lumpy · · Score: 1

      I prefer the title.... El Conquistador

      El Conquistador Lumpy is my full title.

      --
      Do not look at laser with remaining good eye.
    24. Re:At Least He Doesn't Throw Chairs by Frank+T.+Lofaro+Jr. · · Score: 1

      He has $150 million and Lil Wayne only has $135 million in comparison. He ain't poor!

      --
      Just because it CAN be done, doesn't mean it should!
  5. Got your feelings hurt? by Splab · · Score: 5, Insightful

    The TFA makes it look like Linus went on full rampage mode and tore a insightful request down by being mean.

    Actually reading his responses, Linus is pretty level headed and just says no, you can't have this.

    Guess submitter got his feelings hurt?

    1. Re:Got your feelings hurt? by greenfruitsalad · · Score: 4, Insightful

      that is exactly what i thought. guy creates a lame picture with NSA and LINUX in it, comes up with a fascinating heading and uses yesterday's info from slashdot discussion to create FUD. if i were Linus, i wouldn't have bothered with such a long response.

    2. Re:Got your feelings hurt? by Anonymous Coward · · Score: 1

      The TFA makes it look like Linus went on full rampage mode and tore a insightful request down by being mean.

      Actually reading his responses, Linus is pretty level headed and just says no, you can't have this.

      Guess submitter got his feelings hurt?

      Jesus F**KING christ, are you some sort of stupid retarded bastard off-spring of a goat and an amoebe?
      I hope you die of a horrible painful disease that'll have you on live-support until just before you would have died from natural causes.
      (I'm level headed too; I just said "no, I disagree with your assessment").

    3. Re:Got your feelings hurt? by Splab · · Score: 4, Informative

      How about reading his responses?

      Taken out of context, those are death threats, in context however, it's just (misguided?) ventilation. He just ventilates and says that it's a pile of poo and he really wish they would stop doing that, he then goes on, in an uncanny (for him) reasonable response on how, they should handle pull requests in the future.

      Grepping our own source tree for fuck, crap, shit, die, stupid will return quite a lot of ventilation and quite often directed at the sales department. Veteran programmers are grumpy old bastards, live with it or get off our lawn.

    4. Re:Got your feelings hurt? by davecb · · Score: 1

      Writer trying too hard for page-hits (;-)) Linus is about as scary here as my aunt's old kitty-cat.

      --
      davecb@spamcop.net
    5. Re:Got your feelings hurt? by dkleinsc · · Score: 2

      There's been a whole series of "Waaa, Linus told me I was wrong and is a big meanie" articles over the last few years. I'm unclear exactly why, but it seems as though some feel like if they don't get their way on LKML, the next logical step is to complain to Slashdot.

      --
      I am officially gone from /. Long live http://www.soylentnews.com/
    6. Re:Got your feelings hurt? by pipatron · · Score: 1

      How about reading the fucking SUMMARY, then you'd realize you're talking about two completely separate letters.

      --
      c++; /* this makes c bigger but returns the old value */
    7. Re:Got your feelings hurt? by DeathToBill · · Score: 4, Informative

      Here's what he wrote:

      Where do I start a petition to raise the IQ and kernel knowledge of people? Guys, go read drivers/char/random.c. Then, learn about cryptography. Finally, come back here and admit to the world that you were wrong. Short answer: we actually know what we are doing. You don't. Long answer: we use rdrand as _one_ of many inputs into the random pool, and we use it as a way to _improve_ that random pool. So even if rdrand were to be back-doored by the NSA, our use of rdrand actually improves the quality of the random numbers you get from /dev/random. Really short answer: you're ignorant.

      Linus is not usually my cup of tea, and the sprinkling of personal attacks doesn't help his case. But it's a reasonable explanation of why /dev/random works the way it does and why it won't be changed.

      --
      Slashdot - News for Nerds, Stuff that Matters, in ISO-8859-1 Has just realised that beta makes this signature redundant
    8. Re:Got your feelings hurt? by MrNemesis · · Score: 4, Informative

      These days, almost every time a story is posted along the lines of "Linux says X" it's frequently framed in such a way as to paint Linus as a frothing madman hurling not just insults but entire furniture factories at his cringing subordinates. It's become such a regular occurence that I half expect them to be followed up with a story on how Steve Ballmer has converted to buddhism and will be using the armpit sweat from his meditations to irrigate the sahara.

      Reading the article, of course, usually reveals a different picture, but that gets in the way of attention-grabbing headlines. I'm not really sure how the following post can be construed as "fury"; irritation, indignation, perhaps, but not fury.

      Where do I start a petition to raise the IQ and kernel knowledge of people? Guys, go read drivers/char/random.c. Then, learn about cryptography. Finally, come back here and admit to the world that you were wrong. Short answer: we actually know what we are doing. You don't. Long answer: we use rdrand as _one_ of many inputs into the random pool, and we use it as a way to _improve_ that random pool. So even if rdrand were to be back-doored by the NSA, our use of rdrand actually improves the quality of the random numbers you get from /dev/random. Really short answer: you're ignorant.

      As far as I can tell, no-one's found any evidence for rdrand being backdoored, and even if it were, there's bigger issues at foot with things like microcode. Linus explains how the kernel implementation uses random data from several different sources to guard against this kind of stuff. Plus, as other people have pointed out, you can disable rdrand with a kernel parameter. Linus is primarily a pragmatist, so it doesn't really make much sense to excise the code from the kernel - throwing out the baby with the bathwater if you will. Surely if there were any hardware to worry about, it'd be the hardware providing AES-NI? Why isn't there a petition to have that removed...?

      --
      Moderation Total: -1 Troll, +3 Goat
    9. Re:Got your feelings hurt? by Rockoon · · Score: 2

      I'm not sure that it is a reasonable explanation given that RDRAND has access to everything in both memory and registers and can thus predict and/or coerce with perfect accuracy what the other randomization steps will actually do.

      However, I think in the end its a matter of trust. If you cannot trust the CPU then no kernel change is going to improve the situation.

      --
      "His name was James Damore."
    10. Re:Got your feelings hurt? by I'm+New+Around+Here · · Score: 1

      (I'm level headed too; I just said "no, I disagree with your assessment").

      That's how I read your statement. Am I missing a sarcasm tag?

      --
      If you think I voted for Trump because of this post, you're wrong. I voted for Dr. Jill Stein of the Green Party. Again.
    11. Re:Got your feelings hurt? by Minwee · · Score: 4, Funny

      Indeed. We tried to warn the world about this almost twenty years ago, but nobody listened.

      RDRAND will re-write your hard drive. Not only that, but it will scramble any disks that are even close to your computer. It will recalibrate your refrigerator's coolness setting so all your ice cream goes melty. It will demagnetize the strips on all your credit cards, screw up the tracking on your television and use subspace field harmonics to scratch any CD's you try to play.

      It will give your ex-girlfriend your new phone number. It will mix Kool-aid into your fishtank. It will drink all your beer and leave its socks out on the coffee table when there's company coming over. It will put a dead kitten in the back pocket of your good suit pants and hide your car keys when you are late for work.

      RDRAND will make you fall in love with a penguin. It will give you nightmares about circus midgets. It will pour sugar in your gas tank and shave off both your eyebrows while dating your girlfriend behind your back and billing the dinner and hotel room to your Discover card.

      It will seduce your grandmother. It does not matter if she is dead, such is the power of RDRAND, it reaches out beyond the grave to sully those things we hold most dear.

      It moves your car randomly around parking lots so you can't find it. It will kick your dog. It will leave libidinous messages on your boss's voice mail in your voice! It is insidious and subtle. It is dangerous and terrifying to behold. It is also a rather interesting shade of mauve.

      RDRAND will give you Dutch Elm disease. It will leave the toilet seat up. It will make a batch of Methanphedime in your bathtub and then leave bacon cooking on the stove while it goes out to chase gradeschoolers with your new snowblower.

    12. Re:Got your feelings hurt? by Rockoon · · Score: 1

      No CPU instruction that executes in less than 200 cycles can seriously be said to actually access all system memory.

      It doesnt have to access all of memory, just the needed parts.

      ...and before you go there, the first retirement of RDRAND can be legitimate and immediate while an extra limited-purpose hidden core goes off walking the stack and hunting around without you knowing it, with all future retirement then being a trivial return of a hidden register of that core that is always ready to spit out a compromised value.

      ..and no, such a hidden limited core would not be a significant burden on Intel. Intels first CPU only needed 2300 transistors. A tiny fraction of a tiny fraction of the number of transistors in todays machines.

      So yes, it comes down to trust. Either you trust Intel, or you don't.

      --
      "His name was James Damore."
    13. Re:Got your feelings hurt? by gox · · Score: 1

      If you cannot trust the CPU then no kernel change is going to improve the situation.

      Which in turn makes it a reasonable explanation...

      An intentionally flawed random generator is one thing; detecting and reverse engineering kernel code on the fly is another. What makes you think this sort of CPU doesn't actually run the whole system in this mode and report every suspicious activity steganographically through the system's network devices?

    14. Re:Got your feelings hurt? by Darinbob · · Score: 1

      What's this about ARM SoCs though? There are thousands of them, most of which won't ever run Linux. SoC just means system on a chip many of which are intended for specific customers and designed according to customer specifications. To lambast all of them is bizarre. Yes granted it may be frustrating that the Arm industry has not collapsed into a single standard like the PC has, remember that the PC standard is also broken and evolved over time rather than through any explicit design.

      So some ARM SoCs have non-discoverable buses. So what? Most embedded systems don't have discoverable buses. It just means that whoever ports Linux to that particular system will have to write some additional integration code. But that's NORMAL! Just about everyone who ports Linux to any embedded system basically finds the right arch directory and then the board that seems the most similar within that directory and then does a lot of modification to work with the actual board. This is true not only on ARM but also with PowerPC, 68K, and other popular embedded chips. The real problem here is Linus wanting to have a simple platform for a vastly complicated family of chips. He needs to lighten up or he's going to get a coronary for no reason.

    15. Re:Got your feelings hurt? by HiThere · · Score: 1

      I hadn't even considered the halting problem. To me it just looked to complex to be taken seriously as a suggestion.

      OTOH, it's quite plausible that it produces a weaker than reasonable series of randome numbers, which makes it QUITE important that /dev/random ? /dev/urandom ? uses multiple sources.

      P.S.: I'm not clear on the difference between /dev/random and /dev/urandom...I don't believe that I'd even heard of /dev/urandom before today.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    16. Re:Got your feelings hurt? by Lincolnshire+Poacher · · Score: 1

      But it's a reasonable explanation of why /dev/random works the way it does and why it won't be changed.

      Really, telling someone learn about cryptography is a reasonable explanation? Why not tell them to go learn about cosmology too, since entropy is a key concept there?

      For the two minutes it took for Mr Torvalds to bang-out his tirade on the keyboard he could have explained why folding a possibly-compromised RNG source into the pol doesn't increase risk much. Or provided a link and said 'go and educate yourself here'.

    17. Re:Got your feelings hurt? by ais523 · · Score: 1

      /dev/random blocks if it feels that there wasn't enough entropy gathered from the environment to produce a truly random number. /dev/urandom will never block; rather, if there isn't enough entropy gathered from the environment, it will give you a cryptographically secure pseudorandom number instead. So the difference basically depends on what level of true randomness you need; in general, /dev/urandom is just fine for all applications except cryptography, and if you're doing cryptography, you shouldn't be using either directly but rather relying on a crypto library anyway (and the library probably uses /dev/random, possibly among other things).

      --
      (1)DOCOMEFROM!2~.2'~#1WHILE:1<-"'?.1$.2'~'"':1/.1$.2'~#0"$#65535'"$"'"'&.1$.2'~'#0$#65535'"$#0'~#32767$#1"
    18. Re:Got your feelings hurt? by Frank+T.+Lofaro+Jr. · · Score: 1

      Stop with the tone policing.

      Fork the kernel because he is abrasive? Are you kidding? Look at Gates, Ballmer and Jobs (before he kicked the bucket)!

      --
      Just because it CAN be done, doesn't mean it should!
    19. Re:Got your feelings hurt? by Frank+T.+Lofaro+Jr. · · Score: 1

      The picture was kinda funny.

      --
      Just because it CAN be done, doesn't mean it should!
  6. Re:More Linus buying his own story. by ceide2000 · · Score: 1

    World domination.. duh

    --
    ~^\-/^|-|^\-/^~ May the force be with me!
  7. "I hope that ARM SoC hardware designers all die" by Anonymous Coward · · Score: 1

    "I hope that ARM SoC hardware designers all die in some incredibly painful accident"

    Did Linus Torvalds just put out a hit on ARM SoC hardware designers? We report, you decide.

  8. That's uncalled for, really. by Anonymous Coward · · Score: 1

    '"ARM SoC hardware designers all die in some incredibly painful accident."

    I mean, maybe Linus hasn't had the experience of losing someone in an incredibly painful accident. Of course it's hyperbole I know that but - these events actually really take place everywere, every day.

    1. Re:That's uncalled for, really. by Anonymous Coward · · Score: 3, Informative

      If you ever have to deal with Linux on ARM without a ready-made distribution for just your system, you will understand the sentiment. Non-discoverable buses are indeed shit. Having to manually tell the OS where everything is was tolerable in the 90s, you know, before something as initially broken as plug-and-play was cause for joy because you no longer had to use dip switches to set conflict-free addresses that you then had to copy into the BIOS setup and every application, and hope that someone hadn't hardcoded the port number for the Soundblaster card.

    2. Re:That's uncalled for, really. by Joining+Yet+Again · · Score: 1

      IME that was a lot easier than writing a working ACPI layer that actually successfully detects all devices on the average motherboard.

      ACPI could have been amazing. It's actually just fucking complex and kludgy.

    3. Re:That's uncalled for, really. by I'm+New+Around+Here · · Score: 4, Funny

      '"ARM SoC hardware designers all die in some incredibly painful accident."

      I mean, maybe Linus hasn't had the experience of losing someone in an incredibly painful accident.

      Well, how is he supposed to hope people die? Being batted by soft pillows while sitting in the comfy chair?

      --
      If you think I voted for Trump because of this post, you're wrong. I voted for Dr. Jill Stein of the Green Party. Again.
    4. Re:That's uncalled for, really. by Obfuscant · · Score: 1

      Having to manually tell the OS where everything is was tolerable in the 90s,

      You've never come across a broken kernel that tries to identify the IPMI hardware on your motherboard, fails, and ignores any and all boot-time kernel flags that try to tell it what is really there. And thus sits idle during boot for ten minutes while trying to poke a register that isn't there and doesn't get a response.

      I'd much rather be able to tell the kernel what to look for and where than have it twiddle it's toes for ten minutes each time it is rebooted.

    5. Re:That's uncalled for, really. by Darinbob · · Score: 1

      But non discoverable busses are extremely common, and not just on ARM. When you want a small, cheap, and simple system you don't want to emulate the monstrosity of the PC architecture. Most embedded systems are built with a single board and no plug in daughter boards so that you don't need to discover the busses or the devices on them because you know what they are. Yes you may have a choice of parts to solder on the board but discovering them is much simpler than a PCI style enumeration and configuration. There is no "manually telling the OS" anything in most embedded systems. ARM systems are not the same as PCs, one has evolved from a tiny embedded system environment and the other evolved from a general purpose machine with user replaceable components.

      This is not just ARM, I've been on several PowerPC system-on-chips that also did not have discoverable busses. It's pretty common.

  9. Linus an example of ... by Anonymous Coward · · Score: 1, Insightful

    Someone who has no social skills but uses his persona to stay at the head of the ship.

    In any other company, even if the owner, he would have been taken out to the parking lot and given a good hiding by every other employee.

    Linux is a fantastic OS and has spawned a generation of users, programmers and eco system based on open source mentallity, it is just a shame such a social retard is allow to rant as he is.

    1. Re:Linus an example of ... by h4rr4r · · Score: 4, Insightful

      Its just a shame that morons like you value social graces over the ability to do real work. This is why companies fail, especially as they get better, playing well with morons is valued over the ability to get shit done.

    2. Re:Linus an example of ... by pjk · · Score: 4, Insightful

      Someone who has no social skills but uses his persona to stay at the head of the ship.

      Well, either that or his technical understanding, organisational skills and the respect of his peers for many a year.

      it is just a shame such a social retard is allow to rant as he is.

      Guess humour isn't your thing ?

      --
      pjk
    3. Re:Linus an example of ... by SirGarlon · · Score: 2

      There comes a time in every professional's career when he cannot do everything himself, and needs the assistance or support of others. When you reach that point, you will find you'll need those "social graces" you hold in such contempt, or else your career will stall or end abruptly.

      --
      [Sir Garlon] is the marvellest knight that is now living, for he destroyeth many good knights, for he goeth invisible.
    4. Re:Linus an example of ... by tarlong · · Score: 1

      So freaking true is not even funny.

      --
      What? A beutiful butterfly you say? And how exactly are you going to turn into a beutiful butterfly then?
    5. Re:Linus an example of ... by h4rr4r · · Score: 2

      Which is why Linux is a millionaire and head of the worlds most used operating system?

      Social graces are fine for when they are needed. I do not hold them in contempt at all. There is a time and a place for them and everything else, this was not the time to suffer fools.

    6. Re:Linus an example of ... by allcoolnameswheretak · · Score: 2

      If you can't communicate without being an abusive asshole, I don't want to work with you, no matter how "real" your work is.
      This kind of talk, even if out of context, is infantile and damages the reputation Linux and open source in general.

    7. Re:Linus an example of ... by h4rr4r · · Score: 1

      He can communicate fine, sometimes this is the best way. There is no need to tolerate morons. This kind of talk does nothing to damage anyone's reputation to anyone that has half a brain. There is a time for social graces and a time to say "Nvidia, Fuck you".

    8. Re:Linus an example of ... by h4rr4r · · Score: 1

      Being a millionaire does not make someone right, but it does generally mean they have had to work with others at times.

      He is the head kernel maintainer. He decides if it gets in the kernel or not.

      I think there are maybe a handful of people that could replace him, but not any number.

    9. Re:Linus an example of ... by chuckinator · · Score: 1

      That's why you hire a receptionist at that point.

    10. Re:Linus an example of ... by horza · · Score: 1

      Does no damage what so ever. Making a joke is hardly being an abusive asshole. I don't think anybody talented would want to work with a sensitive flower such as yourself, but that's besides the point. It was about a 3rd party making an attack on the Linux kernel, which he refuted. If the guy isn't "ignorant" then he can prove it. Otherwise take it on the chin and admit you might be wrong. It's not like he was being rude to his colleagues.

      Phillip.

    11. Re:Linus an example of ... by Anonymous Coward · · Score: 1

      Social graces are the only thing keeping people tougher than you from killing you for being a douche.

    12. Re:Linus an example of ... by Beryllium+Sphere(tm) · · Score: 1

      Calling a total stranger a "moron" does not contribute to "the ability to get shit done".

      If your role model is a brilliant asshole, try concentrating on emulating the "brilliant" part.

    13. Re:Linus an example of ... by Darinbob · · Score: 1

      Often a lack of social graces will hinder getting work done. Yelling at people and insulting them does motivate some people but for many people it does not and will actually slow them down. Linus' behavior has created a closed and insular core team of developers because people without the thick skin have left, which is ironic for something that's called "open".

      It's rather sad that someone gets modded as "insightful" for saying "moron". Let me try that and see if it works: you, sir, are a moron for not understanding that social skills are important to working in a team environment.

  10. Why all the whining in the first place? by CajunArson · · Score: 2, Funny

    Shouldn't we be welcoming RdRand with open arms? It's a mathematically proven high-quality random number generator that lets chips like Ivy Bridge & Haswell produce large amounts of true random data (not a simple PRNG data) at multi-gigabit speeds.

    There are some excellent slides describing RdRand here: http://software.intel.com/en-us/tags/20757

    I would strongly recommend using it wherever feasible as it is a great boon to security in Linux.

    So is some AMD/ARM fanboy saying that it's not fair that AMD/ARM haven't bothered to implement RdRand yet so therefore nobody should be allowed to use it? How about we extend that logic to other pieces of hardware? Say, when AMD comes out with an improved GPU, let's say that Linux shouldn't support it because Intel doesn't have the same hardware.. fair is fair right?

    --
    AntiFA: An abbreviation for Anti First Amendment.
    1. Re:Why all the whining in the first place? by AndroSyn · · Score: 1

      Shouldn't we be welcoming RdRand with open arms? It's a mathematically proven high-quality random number generator that lets chips like Ivy Bridge & Haswell produce large amounts of true random data (not a simple PRNG data) at multi-gigabit speeds.

      I'm guessing they are implying that the stream coming from RdRand isn't actually random, but perhaps an AES encrypted stream that the NSA has the key for. Not that I've ever seen any proof of that, it seems maybe in the tin foil hat realm..but who knows what hides in intel's microcode?

    2. Re:Why all the whining in the first place? by h4rr4r · · Score: 1

      If you mix that with other sources of random then it does not matter does it?

      So long as that is not the only source of random data it should be fine.

    3. Re:Why all the whining in the first place? by pjt33 · · Score: 3, Funny

      It's a mathematically proven high-quality random number generator that lets chips like Ivy Bridge & Haswell produce large amounts of true random data (not a simple PRNG data) at multi-gigabit speeds.

      Maybe. Or maybe it's deliberately weakened by Intel in response to a request from NSA in an effort to produce something akin to the Debian weak key problem. Can you audit your CPU to see whether the implementation is the one which the proof belongs to?

    4. Re:Why all the whining in the first place? by mwvdlee · · Score: 1

      This wasn't about AMD/ARM fanboys. The issue at hand is that RdRand cannot be trusted to produce random numbers. Both sides agree on this. One side argues that it should never be used, the other side argues that it can be used if mixed with other random number sources.

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    5. Re:Why all the whining in the first place? by CajunArson · · Score: 1

      Uh... deliberately weakened from what exactly? The magical multi-gigabit random number generator that doesn't exist in earlier chips?

      It's pretty easy to go look at randomness and test it you know.... and Intel's RNG has stood up to testing and scrutiny by a whole bunch of real security researchers, not just paranoid basement dwellers who see the NSA around every corner.

      If this petition is actually about people who think that an RNG is some evil NSA plot then I have news for you: THE NSA IS PROBABLY #1 IN LINE SUPPORTING THIS PETITION BECAUSE THE RDRAND GENERATOR PROBABLY MAKES THEIR LIVES A WHOLE LOT HARDER COMPARED TO CRAPPY DIY RNGS THAT THE PARANOID BASEMENT DWELLERS "INVENT" TO AVOID BIG-BAD INTEL!!!

      --
      AntiFA: An abbreviation for Anti First Amendment.
    6. Re:Why all the whining in the first place? by Spad · · Score: 5, Insightful

      It's getting increasingly difficult to label people tinfoil hatters given the way the NSA leaks are making even the most ardent paranoid conspiracy theorists look like they've vastly underestimated the problem.

    7. Re:Why all the whining in the first place? by aaaaaaargh! · · Score: 1

      Of course it would matter, it would significantly lower entropy and make entropy estimates incorrect. If RdRand was broken, for which there does not seem to be any proof.

      How do you think RNGs got broken in the past? They got broken by carefully exploiting the fact that people grabbed some not sufficiently random input from the system and "scrambled" it a bit with a block cipher or hash functions, assuming that would suffice.

    8. Re:Why all the whining in the first place? by mrjatsun · · Score: 1

      > It's pretty easy to go look at randomness and test it you know

      Actually, no it isn't.. Your assuming CPU instructions always behave the same.

      > and Intel's RNG has stood up to testing and scrutiny by a whole bunch of real security researchers

      Ha, that's not the problem. Is there a test mode that can be enabled to generate a known
      pattern?

      And lets not even get into the potential security holes that can be injected via a CPU microcode
      update.

    9. Re:Why all the whining in the first place? by CajunArson · · Score: 1

      You know.. I've seen plenty of real security research that says that the RdRand RNG is actually very good and produces very high quality output.

      Here's just one set of results showing that the output is truly random, so-called NSA "backdoors" or not:
      http://smackerelofopinion.blogspot.com/2012/10/intel-rdrand-instruction-revisited.html

      You know what *ISN'T* truly random? When guys just like you who are all paranoid about the NSA went and broke OpenSSL in Debian for over 2 years in the name of "fixing" code: http://research.swtch.com/openssl

      Oh, and are you and the petitioners going to be intellectually honest and demand the complete removal of Via Padlock support from Linux, or is this only an anti-Intel fanboy rant thinly disguised as "sticking it to the man?"

      Guess what the NSA loves: When lemmings throw away real security solutions because they think the NSA engineers every transistor in every piece of hardware. Go ahead and try to put together your own crypto solutions, the NSA *wants* you to do that, because they are a hell of a lot smarter than you are.

      --
      AntiFA: An abbreviation for Anti First Amendment.
    10. Re:Why all the whining in the first place? by Arker · · Score: 1

      In fact we dont know what RdRand does. It is completely un-auditable. THAT is why it should never, ever, be used as a sole source of entropy for any operation.

      --
      =-=-=-=-=-=-=-=-=-=-=-=-=-=-
      Friends don't let friends enable ecmascript.
    11. Re:Why all the whining in the first place? by CajunArson · · Score: 1

      Ooh look.. an AC... do you work for the NSA? Are you here intentionally trying to plant a false flag about RdRand to push people into using crappy RNGs that are easier for you guys at Club Meade to break?

      If I were the NSA, I'd be doing everything in my power to get the paranoid types to *NOT* trust good security solutions because of phantom magical "backdoors" that don't exist, while I would simultaneously exploit *REAL* security holes to spy on those exact same people. Just sayin...

      --
      AntiFA: An abbreviation for Anti First Amendment.
    12. Re:Why all the whining in the first place? by h4rr4r · · Score: 1

      Fine it would lower entropy, but it would not make it totally useless.

    13. Re:Why all the whining in the first place? by CajunArson · · Score: 1

      If you have that level of paranoia, then you ought to just stop using any instruction of any kind on any big-bad Intel CPU (and ARM/ARM/etc. for that matter).

      Basically, you are saying that even though it is easy to verify that the output of RdRand is random (and it is) that RdRand is "unauditable". Well guess what? If one instruction on a big-bad Intel CPU is "unaditable" then they ALL ARE. Add instructions? Can't be trusted. Mul instructions? NSA backdoors. Comparison ops? Obviously doctored to let NSA code sneak through?

      You know what an "audited" software PRNG from a bunch of NSA-hating hackers is? A bunch of instructions that are executed on a CPU, that's what it is. But... we've just shown that all instructions on the CPU are really NSA backdoors, so even your magic "open source" PRNG is just another NSA backdoor! Have fun!

      --
      AntiFA: An abbreviation for Anti First Amendment.
    14. Re:Why all the whining in the first place? by oGMo · · Score: 1

      Actually, no it isn't.. Your assuming CPU instructions always behave the same.

      Wow, you're an idiot. Obviously if you're paranoid that somehow not only has the NSA solved the halting problem and included code analysis on the chip that detects if you're checking randomness (and that this would take such a trivial amount of space on the silicon that intel could even manage it), you can always copy the data elsewhere and check it. Unless you believe they've done the same for every chip. Which is no more stupid, because it's that stupid to begin with.

      (This applies equally to anything that "detects what you're doing with the random data" (making an SSL connection, generating a key, etc) and weakens it.)

      --

      Don't think of it as a flame---it's more like an argument that does 3d6 fire damage

    15. Re:Why all the whining in the first place? by Anonymous Coward · · Score: 3, Insightful

      It's pretty easy to go look at randomness and test it you know.... and Intel's RNG has stood up to testing and scrutiny by a whole bunch of real security researchers, not just paranoid basement dwellers who see the NSA around every corner.

      I don't think you quite get what the issue is, so I'll give you a little thing to try on your own time that might enlighten you a bit.

      Write a small program that increments a counter from 0, in steps of 1, so 0, 1, 2, 3, 4, and so on. Trivial.

      Then include a strong symmetric cipher, like AES.

      Devise your own, very secret, key.

      Apply AES with said key on your counter.

      Collect enough AES-encrypted output to perform statistical analysis.

      Note how it appears to be entirely random. Nice distribution of values. Compare the characteristics of your analysis to any strong PRNG. Observe the uncanny similarities.

      Apply these findings to the *fact* that you cannot dissect the hardware PRNG in rdrand, and others.

      Ponder the consequences.

      Become slightly more enlightened.

      You're welcome.

    16. Re:Why all the whining in the first place? by Xest · · Score: 1

      I think that's the point. The NSA doesn't need to be totally useless, it just needs it to be useless enough for them to trivially crack.

    17. Re:Why all the whining in the first place? by h4rr4r · · Score: 1

      Is there any evidence of this being the case? Not the lower entropy idea, but RdRand being something intel does for the NSA?

    18. Re:Why all the whining in the first place? by Xest · · Score: 1

      I've honestly no idea, it's not something I'd heard about until this article. I'm just pointing out that if it is the case (which given the recent revelations doesn't sound impossible) then there is a valid reason to be concerned and to even outright reject it.

      I think at this point with the shockwaves the NSA revelations have caused a lot of soul searching is going on as to what we really can and can't trust, and if we can't 100% trust something because for example Intel keeps the code/implementation under lock and key then wouldn't it be better to er on the side of caution and switch to something guaranteed to be free of possible compromise?

    19. Re:Why all the whining in the first place? by TechyImmigrant · · Score: 3, Informative

      Well I think I would know about it if it was. I don't recollect the NSA leaning on me to put backdoors in there when I was designing it.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    20. Re:Why all the whining in the first place? by TechyImmigrant · · Score: 1

      Well CRI audited it. Who else do you think is in the pocket of the NSA?
      http://www.cryptography.com/public/pdf/Intel_TRNG_Report_20120312.pdf

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    21. Re:Why all the whining in the first place? by jkflying · · Score: 1

      I'm seeing rant after rant of yours on this. You make hyperbolic statements as 'proof' that you are right. What you conveniently ignore is that the Kernel-based RNGs are open-source, while Intel's ones aren't. That is reason enough not to trust the stuff from Intel, because we have no idea if they are adding backdoors because of a NSL and gag order.

      As you say, the NSA is smart. They would much rather have weak keys to crack when they need it than hope developers make weak encryption implementations.

      --
      Help I am stuck in a signature factory!
    22. Re:Why all the whining in the first place? by fritsd · · Score: 1

      Of course it would matter, it would significantly lower entropy and make entropy estimates incorrect.

      I don't understand this: suppose you have this suspicious RdRand entropy source, and another source that you trust much better, say an external thermometer, and you XOR the two. Suppose the RdRand output is just 0 bits all the time (worst case scenario); this would still give the same entropy after the XOR as if you just used the thermometer only, i.o.w. how has the entropy been lowered? Mixing two random sources that rely on differing physical phenomena would probably improve the randomness, but how can it go down if you XOR it with whatever imperfect randomness?

      --
      To be, or not to be: isn't that quite logical, Slashdot Beta?
    23. Re:Why all the whining in the first place? by aaaaaaargh! · · Score: 2

      Actually, you're both idiots, though you're the bigger one.

      First, the halting problem concerns a program that can check of any input program whether it will halt or not. There is no problem with writing a program that checks whether some given input programs halt or not, conversely, this is done all the time e.g. in formal software verification. Second, there is no way to confirm that a random number generator is cryptographically secure by only looking at its output. In fact, it's completely trivial to write a program that produces pseudo-random numbers in a completely predictable way while passing all statistical tests (like the diehard suite). Every decent modern blockcipher can produce such output. That's what this debate is about, as long as RdRand is a blackbox and does not provide researchers with a way to inspect in the detail how it obtains true random data, it must be considered insecure from a cryptographic perspective. Third, the other guy is also a (lesser) idiot because there would be no need to check what some software does with the RNG. To make the hardware RNG exploitable it suffices to ensure that its actual random source is fairly low entropy and only looks random. The NSA was able to break alleged one time pads during Cold War by exploiting the fact that secretaries were told by the KGB to type letters randomly, a task at which humands are not very good. Or, so the story goes.

    24. Re:Why all the whining in the first place? by CajunArson · · Score: 1

      I'm seeing lots of hyperbolic statements from people like you who:
      1. Are convinced that the NSA runs Intel because... uh... conspiracy?
      2. Are convinced that Via (to name one example) isn't on the NSA list.. which is why this is just a thinly disguised 2 minutes of hate on Intel with a veneer of "it's for the people!"
      3. While you are 100% convinced that every number from RdRand is an NSA conspiracy, you flat out refuse to believe in real security holes that actually happened and that are actually documented.

      --
      AntiFA: An abbreviation for Anti First Amendment.
    25. Re:Why all the whining in the first place? by squiggleslash · · Score: 1

      Basically, you are saying that even though it is easy to verify that the output of RdRand is random

      No, he said the opposite, he believes that the output of RdRand is unauditable. FWIW, the threads I've read concerning RdRand suggest that people in the security field do agree with that assessment and the mathematician in me wonders how easy any random number generator can truly be verified as truly random.

      As far as reprogramming other instructions go to have secret blackhat backdoors, it's hard to see how reprogramming Mul to give blackhat approved answers is going to be practical in a way that would allow normal applications to run unmolested.

      A further problem with all of this is that reprogrammable microcode or even the use of System Management Mode means calls to RdRand could relatively easily be intercepted on a PC an attacker has had physical access to even if Intel's intentions and designs are 100% reasonable. It's a fairly ugly central point of failure.

      --
      You are not alone. This is not normal. None of this is normal.
    26. Re:Why all the whining in the first place? by michelcolman · · Score: 1

      If you have a perfectly random source, and you xor it with anything, the result will still be perfectly random. Pretty much by definition.

      I'm not an expert on cryptography, but I would guess that if you have a pretty good, not quite perfect random generator and you xor it with some other, *unrelated* random generator, the resulting random numbers should be better, not worse. So if you get data from disk drive response times and stuff like that to make something that's reasonably random, and then xor that with the NSA random stream, I would wager that this could only make your random data better, not worse.

      Scrambling random data with ciphers or hash functions before using it is a different matter, since those actually decrease entropy. Also, xor'ing two pseudo-random streams from similar algorithms is probably not a good idea since any similarities might xor into predictable outcomes. But as long as the two streams are from a sufficiently different source, things can only get better by xoring them.

    27. Re:Why all the whining in the first place? by gnasher719 · · Score: 1

      Wow, you're an idiot. Obviously if you're paranoid that somehow not only has the NSA solved the halting problem and included code analysis on the chip that detects if you're checking randomness (and that this would take such a trivial amount of space on the silicon that intel could even manage it), you can always copy the data elsewhere and check it. Unless you believe they've done the same for every chip. Which is no more stupid, because it's that stupid to begin with.

      You're stupid for assuming that you need to solve the halting problem. All you have to do is detect _some_ situations where you can safely replace the results with the ones you want. For example, detect that the code in the Linux kernel generating random seeds is running.

    28. Re:Why all the whining in the first place? by ssam · · Score: 1

      its impossible to prove that a sequence is random. the digits of pi pass most randomness tests, but are easy to reproduce exactly. there are pseudo random number generators that pass random number tests. if you take a know sequence and pass it though an encryption algorithm you will get a sequence that passes random number tests.

      So however remote the possibility is, RdRand may be outputting a sequence that can be reproduced on demand by the the designers.

      The linux kernel acknowledges this and so mixes RdRand output with other sources. If RdRand is genuine and good, then the linux random numbers are much improved. If RdRand is bad, then no harm is done, (and you still get better protection against anyone who is not in on the secret).

    29. Re:Why all the whining in the first place? by Joining+Yet+Again · · Score: 1

      I have read your posts throughout this thread, and you're not very clever.

      Testing for randomness is just testing for an even distribution, and is not the same thing as testing for predictability. A known sequence encrypted with a sufficiently strong cipher will appear to give a random output.

      tl;dr You can't actually prove unpredictability, only predictability.

    30. Re:Why all the whining in the first place? by petermgreen · · Score: 1

      Supplying a stream of predictable but apparently data could cause the kernel to keep producing output on /dev/random even when it has no real entropy left with which to produce it. This could could theoretcally weaken keys generated on the system though I expect it would be very difficult to exploit this in practice as I would expect it would only make the difference between ludicrously strong and extremely strong.

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    31. Re:Why all the whining in the first place? by LordLimecat · · Score: 1

      If you XOR random input with only somewhat random input, Im pretty sure get random output.

    32. Re:Why all the whining in the first place? by LordLimecat · · Score: 1

      According to Linus, it ISNT the sole source of entropy, making this whole discussion pointless.

    33. Re:Why all the whining in the first place? by LordLimecat · · Score: 1

      How, exactly, does mixing pseudorandom data with random data lower entropy? If you XOR 123456789 with a string of 9 random digits, the output will still be completely unpredictable-- that one of the inputs was predictable does nothing to lower the entropy whatsoever.

    34. Re:Why all the whining in the first place? by petermgreen · · Score: 1

      It's pretty easy to go look at randomness and test it you know.

      No it isn't. There are various tests you can do for particular types of pattern but beyond a certain size of seed data/key it becomes computationally infeasible to distinguish between a good CSPRNG/stream cypher and true randomness.

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    35. Re:Why all the whining in the first place? by KiloByte · · Score: 1

      Here's a RNG of a very high quality:

      Make a RSA keypair. Put one in the generator, have it take a sequence: x, x+1, x+2, x+3, ... and encrypt it with the key. As long as initial x is good enough to not repeat during testing, this generator will pass every known randomness test with flying colors.

      But let's see if some three letter agency has the other key in the pair...

      --
      The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
    36. Re:Why all the whining in the first place? by PhloppyPhallus · · Score: 1

      RDRAND may or may not be compromised--without seeing the implementation, it's completely impossible to know. It's very much possible to create a stream that looks like perfect random "noise," but is actually deterministic; that's the whole idea behind encryption, after all. That said, Linus is also right that even if it is compromised, it doesn't hurt the entropy of the random number pool to include it. It would still strengthen the apparent entropy of the pool against anyone who did not possess the "secret" behind RDRAND, and would not weaken the entropy pool against those who did. People are right to be paranoid these days, but there's nothing to be gained by keeping the hardware random number generator out of the entropy pool.

    37. Re:Why all the whining in the first place? by aaaaaaargh! · · Score: 1

      Of course, but if you XOR 4 different not-quite-random sources with each other you will still have not-quite-random. Entropy sources are not totally random.

      The real problem, however, is that traditional random pools can deplete. Formerly, if you did it properly there had to be a delay in this case in order to gather new random data (e.g. the infamous "please move your mouse"). If instead RdRand is allowed to become the only source when other pools are depleted, this opens an attack vector provided that RdRand is compromised. Arguably, this depends on the implementation and I doubt that kernel developers would allow this to happen.

      Anyway, if you don't trust some component in a security system (e.g. because you cannot audit it), then you ought not use, even if you think your use can do no harm. That's just plain common sense. Don't use what you don't trust.

    38. Re:Why all the whining in the first place? by aaaaaaargh! · · Score: 1

      If you have a perfectly random source, and you xor it with anything, the result will still be perfectly random.

      If you already have a perfectly random source, there is no need to mix it with anything.

      Scrambling random data with ciphers or hash functions before using it is a different matter, since those actually decrease entropy.

      Reversible ciphers by definition don't decrease entropy. Hash functions do.

      But as long as the two streams are from a sufficiently different source, things can only get better by xoring them.

      You'd have to show that, especially for the case when one of the sources is fully compromised. (I don't believe RdRand is, just saying it's not that simple...)

    39. Re:Why all the whining in the first place? by pjt33 · · Score: 1

      CRI audited the design and some output provided by Intel. They didn't audit the fab process to confirm that the production run of chips implement the design without modifications.

    40. Re:Why all the whining in the first place? by freeweaver · · Score: 1

      Better perhaps would be to realise that the term "Tin foil hatters" is used by those who at best are currently ignorent of the problems these "tin foil hatters" try to draw your attention to, or, at worst is used by those who deliberately wish to smear that persons credability.

      It has always been, is now, and will always be an Ad hominem. Best to stop using it completely.

      But I'm glad you're going in the right direction

    41. Re:Why all the whining in the first place? by nullchar · · Score: 1

      Even if the RDRAND instruction is not "backdoor'd", it may be in the next gen CPUs after the NSA reads about it in the news!

      I think the point of the article is to be wary of cpu-specific instructions that are not easy to test the output of. (The microcode could be very elusive; if receiving a flood of RDRAND instructions, it would generate random numbers, yet during "normal" CPU use, it attempts to lower entropy.)

    42. Re:Why all the whining in the first place? by mwvdlee · · Score: 1

      Again, this is not about fanboyism. Not ARM, not AMD, not Intel, not anti-Intel, NSA or anti-NSA. Calling somebody a fanboy isn't a valid argument.
      This is about a chain of trust and RdRand, by it's very nature, simply not being 100% trustworthy.
      If you can't detect tampering (by anybody who might be able to intercept CPU instructions, like hypervisor-based malware), you can't trust it.
      Depending on the level of security you need, RdRand may be good enough or it may be an unacceptable risk.

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    43. Re:Why all the whining in the first place? by Xtifr · · Score: 2

      The issue at hand is that RdRand cannot be trusted to produce random numbers. Both sides agree on this. One side argues that it should never be used, the other side argues that it can be used if mixed with other random number sources.

      One side argues out of utter ignorance that it should never be used; the other side argues based on solid math that it can be used if handled properly. Both sides are properly paranoid, but only one has the facts on their side: the dev team.

      As for the people who are complaining about Linus's tone here--I admit that he can be a bit harsh on his fellow developers at times, but this isn't such a case. This is him slapping down an ignorant fool who fully deserves the abuse he got, and perhaps more.

      The simple fact is that not using RDRAND will not lock out the NSA--if they're hacking chips, there are thousands of ways they can subvert your system, and RDRAND is almost too obvious (and too easy to avert, as the kernel devs are doing). If your need for security is so high that you can't trust your chips, your only reasonable alternative is to build your own. Good luck with that. :)

    44. Re:Why all the whining in the first place? by Darinbob · · Score: 1

      Forget AMD/ARM, what about the entire world that is not using or compatible with Ivy Bridge or Haswell? Sort of irrelevant though, since you could use it when available and use an alternative method for the majority of systems (thus you MUST have an alternative to RdRand, that is not negotiable).

      The actual reason given by some to avoid RdRand though has nothing to do with its lack of portability, but because the NSA helped design it.

    45. Re:Why all the whining in the first place? by michelcolman · · Score: 1

      Reversible ciphers by definition don't decrease entropy. Hash functions do.

      Oops, of course.

      You'd have to show that, especially for the case when one of the sources is fully compromised. (I don't believe RdRand is, just saying it's not that simple...)

      If you have a relatively good random stream, and you xor it with the fully compromised stream, the best the NSA can do is xor everything with their known stream and arrive back at your original random stream. How would that ever be worse? And you will still have improved security against non-NSA eavesdroppers.
      The only bad scenario I can think of, is that the NSA would target one specific algorithm, in a known binary, and use the data from certain registers that contain information about the other random number generator or the original plaintext in such a way that the combination of the random numbers is no longer random. But that would be pretty far-fetched imho.

    46. Re:Why all the whining in the first place? by jkflying · · Score: 1

      1. Did I say the NSA runs Intel? No. However, the NSA does have the legal mandate to co-opt Intel. As such, any unverifiable random sources cannot be trusted as a sole random source for sensitive crypto applications. If it is added to a pool, that is fine, because even if it has 0 entropy it doesn't make the entropy any worse for the pool. If it is completely random, without backdoors, then great, we can take full advantage of the entropy it provides. However, trusting that it has the entropy it claims to is providing a single point of failure, ie. a NSL + gag order for the inclusion of a backdoor. Single points of failure, with plausible failure mechanisms, are not something which is acceptable in a crypto environment.

      2. I never mentioned Via or AMD or anybody else. However, they haven't produced an instructions which they claim is perfectly random but which can't be verified. If they did, I don't see why peoples' responses would be any different. Stop trying to turn this into a partisan anti-Intel bash-fest when it clearly isn't.

      3. I'm not 100% convinced. That is your own black-and-white thinking speaking. What I am saying is that it can't be trusted to give the entropy it claims, because we can't verify the microcode and transistor blocks. As to other security holes, of course they should be fixed. But that doesn't mean we should introduce a new one so that we can fix the old ones we don't know about yet. Your logic is faulty.

      --
      Help I am stuck in a signature factory!
    47. Re:Why all the whining in the first place? by jkflying · · Score: 1

      The AC who responded above me has it right. RDRAND is fine to *add* to the random pool, but it can never be trusted as a *sole* source at any point in time. The moment there isn't enough entropy in the pool from other sources, and RDRAND provides a large majority, any application which takes lots of random data can be compromised through a back-doored RDRAND implementation because the entropy from other sources will be quickly 'drained' and RDRAND will provide everything.

      Assuming entropy from any unverifiable source is a recipe for failure, and if the pool thinks it has more entropy than it does because of a back-doored RDRAND, it may provide numbers which it thinks are random but which actually aren't. Basically, to be safe it needs to make the assumption that RDRAND provides no additional entropy, at which point there is no point having RDRAND anyway as you are essentially adding some NOPS into your RNG.

      Basically, entropy(random1 XOR random2) is only as high as max(entropy(random1),entropy(random2)). If you can't prove that random2 provides more entropy than random1, there is no point XORing it in the first place. On the other hand, it doesn't hurt either (except for execution performance), as long as you don't run out of random1 numbers and decide that you'll just have to use random2 by itself for a while.

      --
      Help I am stuck in a signature factory!
    48. Re:Why all the whining in the first place? by TechyImmigrant · · Score: 1

      I guess you need to stop buying things with chips in it then.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
  11. Hmm.... by Andy+Dodd · · Score: 4, Interesting

    There was an incident a few years ago (that led to at least one subsystem maintainer resigning) where RdRand was used as the EXCLUSIVE entropy source for some items if it were present. http://cryptome.org/2013/07/intel-bed-nsa.htm - Matt Mackall resigned over it.

    This is BAD.

    If it is now merely feeding the pool as one of multiple sources, then it's OK. If anything is directly exposed to raw rdrand output, something is very wrong.

    --
    retrorocket.o not found, launch anyway?
    1. Re:Hmm.... by tgd · · Score: 2

      Yes, Matt did the right thing there and Linus' responses on the RdRand issue have seemed entirely out of character for him. So out of character I am sure I am not the only one wondering if he is being blackmailed somehow.

      Yes, its a government conspiracy to keep people from changing a compile-time option for ... um ... secret ... um ... stuff.

    2. Re:Hmm.... by Mashdar · · Score: 2

      That stuff is TOP sercret to you. How dare they not break userspace because a single source of entropy is questionable?!?! I vote we just remove /dev/random entirely. Clearly everyone should write their own entropy algorithms so NSA can't coerce anyone. In fact, lets remove /dev.

  12. Re:Marital/Money problems??? by IamTheRealMike · · Score: 4, Informative

    I think it's more likely that the RDRAND thing has been an ongoing argument/flamewar for a long time. See this thread for an example.

    BTW Linus is right. According to what we know about randomness, even if RDRAND is hacked then mixing it with other entropy can't hurt - at worst, it merely is a no-op and achieves nothing. However, even if RDRAND is backdoored, the NSA is not the worlds only adversary. Given that when mixed with other randomness it doesn't hurt, it's still better to use it against all the other adversaries out there than not.

    Linus' point is, exclusive reliance on RDRAND would be bad, but the kernel doesn't/shouldn't do that.

  13. Re:More Linus buying his own story. by Anonymous Coward · · Score: 2, Funny

    I didn't think God played dice.

  14. Re:Marital/Money problems??? by h4rr4r · · Score: 4, Informative

    Based on what?

    He has always spoken this way to those who deserved it. Notice he does not go after noobs or people who do not ask for it. If you put up a petition to get something changed, you should at least know what you are talking about.

  15. One word: Transmeta by gatkinso · · Score: 4, Funny

    ARM SoC hardware designers world wide smile into their hand.

    --
    I am very small, utmostly microscopic.
  16. Re:Negotiation Skills by Goaway · · Score: 5, Interesting

    There was no negotiation going on. There was a single obnoxious guy calling Linux "an approved partner of the NSA" and complaining about something he knew nothing about. He deserved what he got. In fact, Linus went pretty easy on him.

  17. Re:Mmmh. What is happening to Torvalds? by Ardyvee · · Score: 1

    He complains about discoverable buses, and proceeds to say no. Then, he goes a tells the guy asking for change that he believes linux kernel maintainers/coders knows better (because according to him RdRandom is one of the many inputs to random pool) in his usual tone. Nothing new, and certainly not worth a headline IMO.

    --
    I don't care if I'm wrong. I only care about everyone obtaining something from the discussion.
  18. Randomness not so random by schneidafunk · · Score: 5, Insightful

    I have to admit I didn't know much about the controversy so I went and found some articles.

    Here is an article showing some weaknesses in Linux's random generation: Analysis of the Linux Random Number Generator

    As reported by Bruce Schneier for this Wired article: http://www.wired.com/politics/security/commentary/securitymatters/2007/11/securitymatters_1115

    --
    Some people die at 25 and aren't buried until 75. -Benjamin Franklin
    1. Re:Randomness not so random by schneidafunk · · Score: 1

      Note, check out the date on Bruce's article about the NSA creating a backdoor - 11.15.07

      --
      Some people die at 25 and aren't buried until 75. -Benjamin Franklin
    2. Re:Randomness not so random by LordLimecat · · Score: 1

      That is 7 years ago.

    3. Re:Randomness not so random by Anonymous Coward · · Score: 1

      From the linked article:

      "Our study is based on version 2:6:10 of the Linux kernel, which was released on December 24, 2004."

      In other words, likely irrelevant and interesting only for historic reasons.

    4. Re:Randomness not so random by cryptizard · · Score: 1
  19. Re:Mmmh. What is happening to Torvalds? by afidel · · Score: 1

    Linus has NEVER been courteous, it's why he can effectively manage one of the largest projects on the planet.

    --
    There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
  20. A petition? by macemoneta · · Score: 5, Insightful

    If you believe there's something broken in the kernel (or other open source project), you don't create a petition, you create and submit a patch. If you don't know enough or don't have the skills to create a patch, you're probably not qualified to criticize the implementation.

    "Anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that 'my ignorance is just as good as your knowledge." -- Isaac Asimov

    --

    Can You Say Linux? I Knew That You Could.

    1. Re:A petition? by Anonymous Coward · · Score: 1

      it was already submitted some time ago and one active developer left the team because of that. maybe read more first and then comment about stuff?

    2. Re:A petition? by Joining+Yet+Again · · Score: 1, Funny

      "Being involved in popular science fiction makes me an authority on philosophy." - William Shatner

  21. Excuses, excuses, excuses ! by Taco+Cowboy · · Score: 5, Insightful

    Maintaining your own kernel tree over time is most certainly non-trivial by most peoples standards

    Some people just had to complain about every-single-thing, even if it's downright inane.

    Open source is just that, you can read the source of the programs, and with the source, you have the options to do the following :

    1. Determine if the program has any backdoor / malware embedded

    2. Change/alter the source to your own liking

    3. Learn from the code and perhaps in a latter day you might be able to apply what you have learned in your own program (and I am not talking about cut and paste)

    If all the above are STILL not good enough for you, the offerings from Apple and Microsoft are always available.

    --
    Muchas Gracias, Señor Edward Snowden !
    1. Re:Excuses, excuses, excuses ! by fritsd · · Score: 5, Insightful
      Hey, you forgot an important one:
      • 4. PAY ME to make a kernel package for you that has this RDRAND thingy turned off.
      --
      To be, or not to be: isn't that quite logical, Slashdot Beta?
    2. Re:Excuses, excuses, excuses ! by I'm+New+Around+Here · · Score: 1

      We should have a NO NON-CODERS sign like the NO GIRLS sign on your childhood clubhouse?

      True social misfits never had a clubhouse.

      Poser.

      --
      If you think I voted for Trump because of this post, you're wrong. I voted for Dr. Jill Stein of the Green Party. Again.
    3. Re:Excuses, excuses, excuses ! by vux984 · · Score: 5, Interesting

      Open source is just that, you can read the source of the programs

      I believe the suspicion is the RDRAND cpu instruction itself is a black box from intel that may have been subverted by the NSA.

      As such, no, it can't be audited, and it's source cannot be inspected.

    4. Re:Excuses, excuses, excuses ! by tqk · · Score: 2

      I believe the suspicion is the RDRAND cpu instruction itself is a black box from intel that may have been subverted by the NSA.

      Based on recent news, anyone would be perfectly justified in believing that, and may even be correct. Linus: 1. rdrand: 0.

      --
      "Tongue tied and twisted, just an Earth bound misfit ..." -- Pink Floyd.
    5. Re:Excuses, excuses, excuses ! by couchslug · · Score: 1

      If you don't want your data inspected, never send it over the internet. Not "try to find a safe way to send it over the internet", but NEVER send it over the internet.

      Air-gap every system which sees your data. Disable networking at the hardware level. Store the data where it cannot easily be found. MicroSD cards are cheap enough.

      --
      "This post is an artistic work of fiction and falsehood. Only a fool would take anything posted here as fact."
    6. Re:Excuses, excuses, excuses ! by fritsd · · Score: 1
      True, but if you're paranoid enough, you could:
      • 4. pay me, and two other independent companies in differing countries, to make the package (e.g. in the form of a small, human-readable, debian/ patch file), and next
      • 5. pay three other companies in three other countries to study and test the three patches, with a big fat bonus if any one of them finds anything suspicious.

      All this without informing the contractors about his/her place in the scheme of things, and that their work is going to be thorougly reviewed and compared with others' .

      --
      To be, or not to be: isn't that quite logical, Slashdot Beta?
    7. Re:Excuses, excuses, excuses ! by HiThere · · Score: 1

      Yes, but even if it's not a good source of entropy, it can be combined with other sources of entropy, and the combination, if properly done, should be stronger than either.

      OTOH, I'm not someone who either has or claims to have that kind of skill.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    8. Re:Excuses, excuses, excuses ! by uninformedLuddite · · Score: 1

      We should have a NO NON-CODERS sign like the NO GIRLS sign on your childhood clubhouse?

      True social misfits never had a clubhouse.

      Poser.

      I used to burn down their clubhouses. bastards.

      --
      The new right fascists are bilingual. They speak English and Bullshit.
  22. Re:Marital/Money problems??? by Austerity+Empowers · · Score: 4, Informative

    He has always spoken this way to those who deserved it.

    From his perspective. I would assert he has as little business talking about ARM SoC hardware designers about their design decisions as they have of telling him how to design an OS.

    Anyone who has worked between chip and software teams knows the fights here are epic and unending.

  23. I admire Linus, but... by wjcofkc · · Score: 3, Funny

    I would first like to point out that if you really read this particular response, he was not as flaming as is being reported. Sounds like someone is exaggerating over a grudge. However...

    Of all modern figures, Linus Torvalds is close to the top of my list of people who I respect and admire the most. His work has truly changed the world for the better. Can you imagine what things would be like if Linux had never happened? I shudder at the very notion. Regardless of this, Linus has in fact shown over the years that he can have an unreasonably short fuse. He is not RMS, but he's not far and when he does take a hard-line bad attitude stance, I sometimes fear that it is at the detriment of potential progress. Important, high profile maintainers have quit over the years due to his attitude, and it would be nice if he could be more diplomatic in those situations where he unnecessarily goes off like a stick of dynamite. I think there is a degree where his power has gone to his head. But as long as Linux keeps marching forward, I am happy enough with that.

    --
    Brought to you by Carl's Junior.
    1. Re:I admire Linus, but... by twocows · · Score: 1

      "Can you imagine what things would be like if Linux had never happened?"
      Most likely, some other free kernel would have ended up getting made and used with GNU. Or perhaps Hurd may have reached fruition (aw, who am I kidding with that, Hurd's not getting finished in ANY universe).

    2. Re:I admire Linus, but... by Lincolnshire+Poacher · · Score: 1

      Can you imagine what things would be like if Linux had never happened?

      FreeBSD, OpenBSD, NetBSD, ReactOS, BeOS, Kontiki, ErOS. And that's just a few off my head while I eat breakfast.

  24. Re:Negotiation Skills by Lumpy · · Score: 4, Interesting

    It's not only an obnoxious guy, but an uneducated one. You can easily disable it with a compile time option already.

    --
    Do not look at laser with remaining good eye.
  25. Re:Marital/Money problems??? by h4rr4r · · Score: 1

    I took it more to mean he was complaining about their conflicting pull requests. Not breaking other users use of the kernel is job 1. Getting your shit in is job 2.

    ARM SoCs present lots of problems to everyone who is not their designers I suppose. From the pointlessly closed drivers, oh wow an accelerometer, to the lack of any sort of way to probe hardware on boot. They seem to specialize in being a royal PITA.

  26. asked the Condon and the supports of the petition by Mr+Z · · Score: 2

    "... Torvalds asked the Condon and the supports of the petition ..."

    That's some mighty fine editing there, Lou. FWIW, if that was copy/pasted from the original article, they've fixed it over there. Otherwise... wow.

  27. Re:linux fork by Ultra64 · · Score: 1

    Sure, why don't you get started on that?

  28. The ARM problem is a security problem by Error27 · · Score: 2

    ARM chip designers view hardware as disposable. Why worry about software security updates when you are just going to replace the phone every 18 months?

    Cursing about it on LKML is useless though. Linus should start a change.org petition to address this issue.

  29. Re:Wow, he's so mature. by fritsd · · Score: 1

    I get it, this is just a sexist comment to make us believe that soccer moms don't have any inclination to study C and Linux kernel programming.

    It's probably likely that only a small percentage of the soccer moms have any interest in system-level programming, however you're being terribly stigmatizing to that small percentage.

    I'm a man, so I can't comment, but I'd ask any soccer mom Slashdot reading programmers to give their input here on whether they think Linus acts like a 12-year-old dumbass or whatever.

    --
    To be, or not to be: isn't that quite logical, Slashdot Beta?
  30. Careless statements by Reliable+Windmill · · Score: 3, Insightful

    I'm wondering how clever it is for Linus to make statements like "So if you see any, send them my love, and possibly puncture the brake-lines on their car and put a little surprise in their coffee, ok?"

    With stories of kids getting arrested and sent to jail for saying things like "I'm going to kill someone. Nah just kidding." he may be setting himself up for this. I can imagine U.S gov wanting to take that opportunity, with him being so prominent and open source operating systems possibly proving to be the only guaranteed escape from NSA eavesdropping.

    --
    Signature intentionally left blank.
  31. Re:Wow, he's so mature. by cjjjer · · Score: 1

    Because a fucking soccer mom gives two flying fucks about who developed her operating system...while she is texting away on her android smartphone...

    I agreed until you mentioned Android. Not that I feel that Android is bad but you should have said "while she is texting away on her smartphone..."

  32. Linus, you are a bully by PetiePooo · · Score: 1

    While I respect your technical prowess and make great use of your work, every time you go off like this, you move a little further down the "crackpot" scale. You know, the one anchored firmly by RMS...

    Instead of blowing a gasket, why not nicely suggest that a read of the source code will show that rdrand is just one of the entropy sources used, and it is used in such a way that it cannot compromise the end result. Vitriol is no way to go through life, son.

    1. Re:Linus, you are a bully by PetiePooo · · Score: 1

      I should add that your sentiment of "we know better than you so you should trust us" is exactly what the government is spewing, and you see how well that's working.

      While the kernel source is the epitome of transparency, and the NSA is the exact opposite, there will always be people who cannot or will not read the source. That does not mean they don't want to know some of the details so they can make informed decisions. That curiosity should be welcomed, not derided.

  33. Re:Wow, he's so mature. by tgd · · Score: 1

    Then he wonders why Linux adoption rate on the desktop is nearly zero.

    Any soccer mom reading this will think Linux is an OS developed by some 12-year-old dumbass, and will obviously refuse to use it..

    And believing stupid shit like this might have the slightest impact on why Linux adoption on the desktop is nearly zero and ignoring the real reasons why its nearly zero is why its nearly zero.

    By my reckoning, I think next year will be the 20th year I've heard someone declare to be the year of the Linux Desktop, though, so lets just wait a few months and see!

  34. Re:Marital/Money problems??? by ThePiMan2003 · · Score: 1

    Conveniently you could read either the kernel or the actual comment and get your answer. RDRAND is XOR's with the random data and does not contribute to the entropy pool.

  35. Re:Marital/Money problems??? by Austerity+Empowers · · Score: 1

    Well hardware designers do not have this problem and don't feel the pain. HW guys care a lot about performance, power and cost. How the thing is made to work by SW is not their problem.

    Linus should be bitching at the SW guys involved to fix this problem. Threatening the HW guys with death, while in keeping with his idiom, will have no effect. They're not reading this.

  36. If I wanted TMZ style sensationalist stories... by Rinikusu · · Score: 4, Funny

    I'd read TMZ.

    Man, I can't wait until the /. submitters discover Theo de Raadt.

    --
    If you were me, you'd be good lookin'. - six string samurai
  37. Re:asked the Condon and the supports of the petiti by Redmancometh · · Score: 1

    Well the summary was apparently written with the authors testicles. It hurts my brain.

  38. Re:Marital/Money problems??? by h4rr4r · · Score: 1

    Because they will not give anyone those sheets.
    Many of them go into phones where single microamps don't matter and at $600 each another $1 won't matter.

    Hell, just burn the parts list into some silicon and let a single command retrieve it all. Then you don't need to be able to probe the separate devices at all.

  39. Re:Marital/Money problems??? by h4rr4r · · Score: 1

    The software guys really can't do much about it. If the hardware guys don't plan well. Unless you think the kernel should have multiple redundant drivers. That seems pointless.

  40. Regardless if it is secure or not.... by neorush · · Score: 1

    There are other ways to generate random numbers if you need to do something secure. If you were say, getting a random number for a video game, I don't see any reason why you would care if intel subverted that in some way. I'm not a kernel developer, but it is my understanding that /dev/random does not rely entirely on rdrand. But I would imagine using rdrand is more efficient since it is built into the chip.

    --
    neorush
  41. Whitening on chip by mattpalmer1086 · · Score: 1

    I believe one of the issues with this instruction as a source of random numbers is that the instruction whitens the output with no access to the raw entropy data. Any physical process that acts as an entropy source will have some (possibly small) biases - it won't necessarily appear to be completely random in particular ways.

    This can be audited to see that the output conforms to the physical processes which are described.

    If the instruction whitens the output through some algorithmic transform (e.g. hashing) to give apparently random numbers as output, there is no way to distinguish that from say encrypting a counter with a secret key - whose output will also appear to be random - but is trivially crackable if you know the secret key.

    So it becomes an exercise in trust in Intel, rather than something which an be independently verified. There was a good comment on the cryptography mailing list about this - that it would be better to have hardware entropy sources, leaving the final steps of random number generation to software.

  42. Re:Marital/Money problems??? by gnasher719 · · Score: 2

    BTW Linus is right. According to what we know about randomness, even if RDRAND is hacked then mixing it with other entropy can't hurt - at worst, it merely is a no-op and achieves nothing.

    That's actually not correct. RDRAND is an instruction in an Intel processor. You know what it is _supposed_ to do according to the documentation, but you don't know what it actually does.

    It could install a trap that fires on the next XOR instruction, and if the destination is XOR'd with the result of RDRAND, replay the instruction sequence, but returning a different result for the RDRAND itself, so that the destination is changed to what the NSA wants.

  43. Time for an entropy server? by Okian+Warrior · · Score: 3, Interesting

    The NSA has apparently compromised random number hardware and software packages throughout the industry.

    Could this be fixed by using an entropy server?

    Suppose some group hosted a random number server. A verified source of true randomness which can be trusted by the reputation of the people involved, in the same way that we trust the people who make Tor, Mozilla, and linux.

    It would be a single point of failure, but also a single point of defense. We could put all the best practices and best ideas of security into one place, by means of technology, software and legalities. It could be hosted in a privacy-friendly country, it could be monitored and defended by the EFF using legal means, it could use the best technology for generating randomness and have open and easily-inspected software and procedures.

    To use the system, a client would:

    • Generate a public/private key using whatever entropy is on hand
    • Encrypt the private key using the server's public key and send it to the server
    • The server returns a packet of random numbers, encrypted using the client's key
    • The client generates a new key pair using the returned entropy
    • The client uses that key pair from then on

    This is slightly weak because the NSA could record the conversation and "simulate" the client computer to recover the generated keys, but doing this is much harder than cracking weak keys. In the server model the weak key is used once, instead of being used all the time. Also, simulating a computer (including nuances of software version and hardware quirks) is much harder than finding weak keys.

    (To find weak keys, gather all the keys you can find and calculate GCD on pairs of keys. In practice, about 1 percent of all keys on the net have common factors. Most of these come from systems with low entropy - headless systems (routers, firewalls, servers) with no user interaction for randomness.)

    In one action we could fix the security of much of the software used in the internet.

    Any volunteers?

    (I'd love to, but it has to be outside the US. I'll donate $1000 towards costs if the idea is viable.)

    1. Re:Time for an entropy server? by silas_moeckel · · Score: 1

      Centralized is bad. You would be far better off making a usb entropy source in open source hardware. Multiple eyes looking at the chip design and simple enough to send out to various fabs. Multiple supply chains makes it harder to tamper with. I cant think of anything simple enough to be made with basic parts as to not require a fab but my analog EE foo is weak.

      --
      No sir I dont like it.
    2. Re:Time for an entropy server? by bill_mcgonigle · · Score: 2

      Generate a public/private key using whatever entropy is on hand

      I happened to read a discussion of this on Ted Tso's Google+ last night (stayed up way too late...) and the short answer is that there's not enough entropy on the newly booted system to make the strong keys required to bootstrap the equation.

      To paraphrase, Ted called ISC retarded for creating a DNSSEC where the validation of a key required a strong entropy source on the client. He likened it to needing a private key to validate a GPG signature, which one does not.

      So, the TODO list is to create a replacement for DNSSEC that does not require an entropy source to validate the transaction. I don't think this needs to replace DNSSEC - it can be narrow enough for only this usage. Bootstrapping protocols are often both stunted and useful.

      Since I haven't had time to think about it myself, allow me to invite comments: does an encoded GPG-signed TXT record in plain-old DNS suffice here?

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    3. Re:Time for an entropy server? by TeknoHog · · Score: 2

      A bunch of ring oscillators in an FPGA is pretty good for RNG. Then you just have to trust the FPGA build software...

      --
      Escher was the first MC and Giger invented the HR department.
    4. Re:Time for an entropy server? by steveha · · Score: 3, Informative

      It's an unreasonable idea. First, it requires a reliable Internet connection. Second, the NSA could monitor the traffic, plant back doors in the server, or otherwise compromise an in-the-cloud solution.

      Much better would be a hardware source of randomness, connected to your server, and under your direct control.

      Why not get a cheap webcam and set up your own LavaRnd? There, true random data available to your computer even at boot time.

      http://www.lavarnd.org/what/how-good.html

      LavaRnd has Linux kernel drivers, and it will drop right in and Just Work.

      I'll donate $1000 towards costs if the idea is viable.

      You could buy a lot of cheap webcams for $1000.

      --
      lf(1): it's like ls(1) but sorts filenames by extension, tersely
    5. Re:Time for an entropy server? by Sigurd_Fafnersbane · · Score: 1

      I think you should save your money even though it is a noble idea. Sources of randomness are not that hard to come by if you are on a physical machine and without having read how the linux kernel is doing it I assume it is rather bullet proof. If you only return hashed versions of your pool of randomness and add to the pool at every call it will become impossible to predict what the next output will be without knowing the content of the pool and the random elements you add to your pool. If you at each call to the random() function add samples from the sound card, hash the pool, add free disk space, hash the pool, add cpu temperature, hash the pool, add content of memory location pointed to by lowest 32 bits of the pool, hash the pool. If you use a secure block cipher as hash function it should be peachy.

    6. Re:Time for an entropy server? by steveha · · Score: 1

      Follow-up. I took a look at the LavaRng page, and it hasn't really been updated since 2004. In particular, the list of supported webcams is a list of three no-longer-made models from a decade ago. Also, I tried building the software, and it won't build with a current GCC. (The errors I saw were really warnings, so disabling "treat warnings as errors" might make the build work again.)

      I did some Google searches. I found this nice discussion:

      http://hightechsorcery.com/2010/05/getting-more-entropy-for-virtual-servers/

      For my own mail server, I plan to install "randomsound" to harvest entropy from the sound hardware on my mail server's motherboard.

      --
      lf(1): it's like ls(1) but sorts filenames by extension, tersely
    7. Re:Time for an entropy server? by steveha · · Score: 1

      I just found a cool solution to the problem: the Raspberry Pi has a hardware random number generator as part of the system-on-a-chip, and Linux supports it. So /dev/hwrng works on a Raspberry Pi and should be able to provide a lot of random data.

      I don't think Linux will grab entropy from /dev/hwrng and use it for /dev/random, but you can install rngd (random number generator daemon) from rng-tools; this will pump entropy from /dev/hwrng into the Linux kernel for /dev/random to use.

      So, you could do the "entropy server" idea, but co-located with your other servers, with the server costing about $35 and electricity costs of pennies per year.

      http://scruss.com/blog/2013/06/07/well-that-was-unexpected-the-raspberry-pis-hardware-random-number-generator/

      Or, you could just set up server hardware that has a supported hardware RNG on the chip. "Ivy Bridge" i5 and i7 chips have this. (I only use AMD chips, and this feature isn't enough to make me switch.)

      http://wiki.openssl.org/index.php/Random_Numbers#Hardware

      --
      lf(1): it's like ls(1) but sorts filenames by extension, tersely
    8. Re:Time for an entropy server? by badkarmadayaccount · · Score: 1

      A LED connected in reverse, and an op-amp with a level limiter to prevent saturation. And a ADC.

      --
      I know tobacco is bad for you, so I smoke weed with crack.
  44. right, "cut their car brake lines" = level-headed by SuperBanana · · Score: 1, Insightful

    The first bit regarding RdRand was inappropriate/rude, but the second half regarding ARM SoC developers most was beyond inappropriate without a doubt. He suggests twice that they're worthy of death, suggests specific methods of murdering them. Here's the bit the submitter didn't include:

    "So if you see any, send them my love, and possibly puncture the brake-lines on their car and put a little surprise in their coffee, ok?"

    Linus went out of his way to be nasty and insulting; it is not necessary nor acceptable to treat others in such a way. This kind of behavior has come up before here on Slashdot, and it is still immature, abusive, and mean-spirited.

    Linus is exploiting his social status to bully others and I'm tired of people making excuses for it, particularly because he's in a leadership position and serves as a role model to many. The Linux dev community needs to stand up to language and behavior like this, or otherwise the message to young/new programmers they can/should act this way if they're successful enough, and if they're the target of such nastiness, the community will accept and condone it.

    In general, I'm tired of excuses being made for bullies simply because they're valuable. Linus is no different from the varsity football star who goes around slamming people into lockers; a gorilla beating his chest. Were you ever bullied as a kid in school? Do you have a child in school being bullied? Remember how it made you feel? Yeah.

  45. Re:"I hope that ARM SoC hardware designers all die by TechyImmigrant · · Score: 3, Informative

    Just the ones who put in non discoverable busses. So he got that one about right,

    --
    I should use this sig to advertise my book ISBN-13 : 978-1501515132.
  46. Re:He also said... by allcoolnameswheretak · · Score: 1

    KERNAL, it's where Linus goes to when he gets pissed.

  47. Re:Marital/Money problems??? by TechyImmigrant · · Score: 1

    It's not XORed. It's mixed in with a twisted LFSR which is only less wrong.

    XORing works if the sources are completely statistically independent. Nothing in this world is completely statistically independent. So learn some crypto and use a proper entropy extraction algorithms. Linux should do that too.

    --
    I should use this sig to advertise my book ISBN-13 : 978-1501515132.
  48. Re:Marital/Money problems??? by TechyImmigrant · · Score: 1

    It doesn't do that. What makes you think it does?

    --
    I should use this sig to advertise my book ISBN-13 : 978-1501515132.
  49. Re:Wow, he's so mature. by MysteriousPreacher · · Score: 3, Insightful

    Then he wonders why Linux adoption rate on the desktop is nearly zero.

    Any soccer mom reading this will think Linux is an OS developed by some 12-year-old dumbass, and will obviously refuse to use it..

    Yeah, definitely. I'd be surprised if this doesn't shift at least 30% of soccer moms over to FreeBSD or Haiku. Sure they might keep Linux on some of their servers, but their desktops are almost certainly going to be switched away from Linux. Well done, Linus!

    --
    -- Using the preview button since 2005
  50. Re:Marital/Money problems??? by Austerity+Empowers · · Score: 2

    The SW guys have a job to do in ensuring the the HW guys have proper requirements, it's not all just coding and committing.

    I work at one of these ARM SOC companies, and the software guys complain an awful lot after the fact, but take almost no involvement in design reviews and architectural work for the hardware, and treat design reviews as optional. One guy is known for the mantra "We don't have time for reviews, do what you think is right and suffer the consequences". That may serve him well in software, but for hardware, particularly SoC's, it's far too expensive to change once manufactured.

    I don't expect Linus, the Linux kernel maintainer, should be expected to worry about ARM issues, but he should make it clear to the SW developers who are, that shit stinks and he will hunt and kill firstborns until the problem is resolved. They at least are listening to his rant. Hardware guys are off trying to squeeze 10% more performance out of a memory bus or something, this is way too far out of their ivory tower to concern themselves with unless someone makes it an issue.

  51. Re:Benefit of doubt by Joining+Yet+Again · · Score: 1

    "...after 20 years of work..."

    All the most corrupt people start off as idealists.

    But I've never seen Torvalds as an idealist, so I'm not sure that this is relevant.

    And note that not all idealists end up corrupt - RMS seems to have stuck to his guns.

  52. Here's your debate by Okian+Warrior · · Score: 5, Insightful

    It's not a "cop out" at all. The party that manages the code doesn't want to remove a feature that there's no logical reason to remove. The petition was one sentence, linked to no debate, made no points and didn't even attempt to negotiate. It could have said, "Do it, because we say so." and it would have been just as informative. I think you need to look up the definition of "cop out", because the petition creators could have actually done something useful, and didn't.

    Okay then, lets fix this.

    The NSA has compromised products and devices in the design phase - both software and hardware. We don't know which products are compromised or how, but we do know that some are.

    Random number generators cannot be verified - it's a computationally infeasible problem. If the NSA has subtly tampered with a product, there's no way to tell from the outside looking in. You *might* be able to tell by looking at the generator source. (Note that the linux random number generator has at least one undocumented source of entropy.)

    There is no reasonable way to look at the source code/microcode of the rdrand instruction.

    Additionally, there is no way to verify the underlying source of randomness of the rdrand instruction. There could be vulnerabilities on the silicon die.

    The whole point of open source is that people can peek at the software and see what's going on.

    Since there is no way to inspect the random number generator and no way to verify it's operation, it should not be used by default.

    It's a security risk, plain and simple, and risk management should be up to the user. However small the risk is, forcing everyone to take it multiplies the chance that someone will get burned by it.

    Here's your logical argument. If Linus wants to debate this, let him address these issues. Linus needs to show the premises wrong, or that the conclusion doesn't follow from the premises.

    If he can't, then he should abide by the recommendation.

    1. Re:Here's your debate by phayes · · Score: 3, Insightful

      Linus needs to show the premises wrong

      Says who? You? Linux is Linus's ball. The global consensus is that Linus is doing a good job slamming the people with self entitlement issues that want him to do stuff for irrational reasons. If you want you can fork & make your own distrib. Submit a story to /. in 6 months telling us how that went, we could all use a laugh.

      --
      Democracy is a sheep and two wolves deciding what to have for lunch. Freedom is a well armed sheep contesting the issue
    2. Re:Here's your debate by Chemisor · · Score: 4, Informative

      Random number generators cannot be verified - it's a computationally infeasible problem.

      Then how do you know the software RNG in the kernel is random? By using randomness tests, that's how, like the diehard suite. Diehard has been run on RdRand; try it yourself if you want.

    3. Re:Here's your debate by gox · · Score: 1

      If Linus wants to debate this, let him address these issues. Linus needs to show the premises wrong, or that the conclusion doesn't follow from the premises.

      If he can't, then he should abide by the recommendation.

      This is why he is calling people ignorant.

      If you want to debate this, address the responses he's made. Why do you think the random pool doesn't automatically destroy any potential back-doors?

    4. Re:Here's your debate by u38cg · · Score: 1

      You have a point, but after the last few days worth of NSA revelations I don't think anyone that isn't seriously paranoid is thinking carefully enough. I know bugger all about the implementation of Linux's random, but my question is simply this: what are the consequences if an attacker were able to manipulate rdrand at will? If the answer is not nothing, well, something needs tackled.

      --
      [FUCK BETA]
    5. Re:Here's your debate by Ragica · · Score: 1

      I appreciate your attempt to apply logic, but apparently Linus did already prove the premises, as stated in your post, to be incorrect (or incomplete).

      Your premises seem to assume rdrand is the sole source of random numbers; Linus explained that it is not the source of random numbers, but just one possible source which is mixed up with other sources in such a way that a single input is essentially meaningless. "Long answer: we use rdrand as _one_ of many inputs into the random pool, and we use it as a way to _improve_ that random pool."

      Now, you (and they) need to prove that LInus' premise and/or conclusion is false.

    6. Re:Here's your debate by chill · · Score: 1

      Random number generators cannot be verified - it's a computationally infeasible problem. If the NSA has subtly tampered with a product, there's no way to tell from the outside looking in. You *might* be able to tell by looking at the generator source.

      While the generator may not be able to be verified, the output should be. Generating a large amount of random data from the questioned source, then testing for randomness should allow you to establish a level of confidence in the generator.

      See: http://www.stat.fsu.edu/pub/diehard/

      --
      Learning HOW to think is more important than learning WHAT to think.
    7. Re:Here's your debate by behrooz0az · · Score: 1

      You would lose a lot of enteropy.

      --
      Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion. -- Spazmania (174582)
    8. Re:Here's your debate by Anonymous Coward · · Score: 2, Informative

      No, black-box RNGs and PRNGs cannot feasibly be verified, beyond ruling out particularly bad cases. Passing Diehard is a good start, but designing a stream that can pass Diehard while being 100% predictable is cake -- applying any strong block encryption to the values (1,2,3,...) in sequence ought to work. If you want people to trust your RNG or PRNG, you need to open up the design and let the appropriate experts (cryptographers, scientists, whatever) take a crack at it. A system that is mass produced isn't secure unless it's secure even when the whole system is understood (except for the secret key, for systems whose security is meant to depend on that).

      However, the grandparent comment saying RdRand should be discarded is also off-base, as a commenter on the site already pointed out. RdRand is only a liability if it interacts negatively with the other sources it is XORed with, and that would be difficult to pull off -- it almost implies that the RdRand implementation understands its role in the larger program and knows how to subvert that. Not impossible, but unlikely.

    9. Re:Here's your debate by Atzanteol · · Score: 1
      --
      "Ignorance more frequently begets confidence than does knowledge"

      - Charles Darwin
    10. Re:Here's your debate by Richy_T · · Score: 1

      Which would tell you whether the generator *was* supplying good or bad random data at the time you ran the test. Then a preset alarm is triggered or a certain sequence of instructions is executed in the correct order or whatever and the NSA is in your data, eating your cheeseburgers.

    11. Re: Here's your debate by chill · · Score: 1

      So, test the data before using it.

      --
      Learning HOW to think is more important than learning WHAT to think.
    12. Re:Here's your debate by phayes · · Score: 1

      You admittedly know bugger all about how how RdRand is used In the Linux kernel, much like everyone who voted to remove it.
      Imagine for an instant that you know little about gasoline & that your sleeve had just caught fire. Someone yelling that you should douse yourself in gasoline might seem to be a good idea...
      Your problem (along with the others who voted on a subject they knew nothing about) is that "something needs to be done" does not mean that the proposed solution isn't worse than the problem.

      --
      Democracy is a sheep and two wolves deciding what to have for lunch. Freedom is a well armed sheep contesting the issue
    13. Re:Here's your debate by hyperfl0w · · Score: 1

      NSA employs more mathematicians than anyone.
      NSA uses linux for their data farms.
      NSA is a code breaking agency.
      NSA has worked with many tech companies, from wintel to google, stellar wind to TIA, etc, etc.


      Occam's razor: which is more likely?
      A) NSA worked with intel to provide a known hardware key OR
      B) NSA did not work with Intel and chose instead to work with Microsoft, Google, Yahoo, Verizon, ISPs, etc, etc, etc


      A is more likely.

    14. Re:Here's your debate by Ash+Vince · · Score: 1

      Since there is no way to inspect the random number generator and no way to verify it's operation, it should not be used by default.

      Even if it is only used as a way of increasing the entropy of a random number generator not to exclusively provide the result?

      You should go and read this:
      https://linux.slashdot.org/comments.pl?sid=4191765&cid=44811495

      and this:
      http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c2557a303ab6712bb6e09447df828c557c710ac9

      --
      I dont read /. to RTFA, I read /. to offend people in ignorance.
    15. Re:Here's your debate by u38cg · · Score: 1

      Tiresome analogy is tiresome. And you're rather misrepresenting my question, which is: what if rdrand is actively malicious?

      --
      [FUCK BETA]
    16. Re:Here's your debate by phayes · · Score: 2

      We have a winner! Someone who complains that /. is fucked up but then adds his little heap of dung to the pile...

      You're not just ignorant of the subject, you're also too self involved to learn by analogy & too lazy to learn by reading through the comments here. Even if RdRand is NSA compromised, it is at worst a no-op for the NSA & AS IT IS NOT USED ALONE, SECURITY IS NOT COMPROMISED. Also, the NSA isn't the only reason people use RdRand & until someone figures out precisely if/how it is compromised it is still valuable for all these uses.

      you might want to reread the part in uppercase above a few times so that it can get trough all the screens you have setup to avoid learning...

      --
      Democracy is a sheep and two wolves deciding what to have for lunch. Freedom is a well armed sheep contesting the issue
  53. Re:Marital/Money problems??? by Grishnakh · · Score: 2

    That wouldn't be so bad if there actually were a datasheet, but instead everything's closed and proprietary, leading to pointlessly closed drivers as h4rr4r complained about.

  54. Re:Marital/Money problems??? by LordLimecat · · Score: 1

    If you take one bit from one source, then one bit from the other source, and one of the sources isn't random, you lose half your randomness.

    Thats not how it works. If one of those sources is unpredictable and random, it does not matter how predictable the other source is-- you will have no additional info on what the output is.

  55. Re:Marital/Money problems??? by Bill+Dimm · · Score: 1

    According to the follow-up question in the petition by Dale Emmons it is XOR.

  56. die in some incredibly painful accident. by Kaenneth · · Score: 1

    Like Hans Reiser's Wife, eh?

  57. Re:Negotiation Skills by gweihir · · Score: 4, Informative

    And by disabling RdRand, you can only decrease security, so it would be pretty stupid to do so. But that requires actually understanding how an entropy pool works, something the petitioner does not. Basically, the only sane reason to disable it is for tests.

    In fact of the sheer stupidity of the request, Linus was pretty friendly in its answer. He is also 100% right.

    If you look at what Intel apparently wanted, namely drop the entropy pool and only use RdRandom (https://plus.google.com/117091380454742934025/posts/SDcoemc9V3J), _that_ would have been highly problematic. But Theodore Ts'o actually understands how these things work and refused. I thought it was a pretty good call back then (and I seem to remember that Linus called this one wrong but learned better), and now it looks like it prevented a world of trouble. On the other hand, we now have strong indication that some Intel engineers have been compromised by the NSA.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  58. Re:Marital/Money problems??? by Austerity+Empowers · · Score: 1

    You're confusing two issues here:
    1) autodiscovery - I agree with you, except 1) it helps only in limited quantity if each SoC out there does this (and does it differently), 2) we know from PCI & USB that better solutions exist. This probably needs to happen within ARM (as they own the AXI/AHB bus IP usually implemented), and as such ARM SoC HW designers are customers themselves with no control. Yes, ad hoc may be necessity for now, IF the right people know of the problem.
    2) Hiding datasheets is an entirely separate issue. There are many reasons for this, most have to do with our "friends" over in China and other places whose labor costs are so low, and whose employment conditions are so horrid that they are a threat to the tremendous investment done in the western world. The traditional solution is to hide as much as possible, and force them to steal (which they do a lot) or recreate it. They then stay far enough behind that R&D costs are recouped. This usually ends up wrapped in legal agreements. It seems like an accelerometer is trivial to you, but there's probably a 100 person shop in california somewhere that spent a million or two to develop, harden and characterize it, and who may need 5 years to make that back.

    Hardware doesn't always jive well with open-source. But again, Linus's particular concern probably could be resolved in several different ways and he may not care if the accelerometer support never shows up, as long as it's discovered cleanly and ignored rather than through mutually exclusive and abusive hacks.

  59. Re:Marital/Money problems??? by bill_mcgonigle · · Score: 1

    That's actually not correct. RDRAND is an instruction in an Intel processor. You know what it is _supposed_ to do according to the documentation, but you don't know what it actually does.

    And you can't even get to RNDRAND directly - you have to access it through Intel's "magic box in the middle that salts the hardware RNG with some magic FIPS algorithm involving some "secret" Intel key" - Jake Hamby.

    But, sure, mix it in to the pool.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  60. Replacement? by LihTox · · Score: 1

    I don't know anything about how RDRand works so this may be a stupid question, but would it be possible for someone to write a drop-in replacement for it?

    1. Re:Replacement? by Todd+Knarr · · Score: 1

      No. RDRAND isn't software, it's an instruction on Intel CPUs to access the built-in hardware random number generator. The code in question is code to make use of RDRAND in cases where random numbers are needed regardless of whether there's sufficient entropy to generate good-quality random numbers. Using it doesn't degrade security because what it replaces would simply return poor-quality (ie. non-random) results if there wasn't sufficient entropy accumulated (which is the case during system startup when there just hasn't been enough time to accumulate significant entropy).

      The random-number source here is separate from the regular /dev/random source used by most software, which guarantees good results even if it has to block and force your call to wait until enough entropy has been accumulated.

  61. Re:Marital/Money problems??? by KiloByte · · Score: 1

    The problem is, not all places in the kernel mix RDRAND output. After GKH's fixes, /dev/random does, but get_random_int() does not.

    --
    The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
  62. Re:Marital/Money problems??? by ebcdic · · Score: 1

    *Unless* the other source is correlated with the random one.

  63. Correct title of this should have been... by fzammett · · Score: 1

    "Linux Torvalds says something AGAIN that would get him fired from VIRTUALLY ANY COMPANY ON EARTH, and Slashdot fanbois rush to SUCK HIS DICK so hard it breaks".

    Look... Linus is a super-genius that has accomplished more in half a lifetime than most of us will accomplish in our ENTIRE lifetime (and this is coming from someone who has 7 published tech books and an 8th on the way- an accomplishment that itself dwarves most other peoples', yet is almost nothing next to what Linus has done)... he is virtually always right when he says something technical and he deserves to be listened to on any technical topic he chooses to speak. His name will echo through the halls of technology history for decades to come, and rightly so. He deserves every accolade he gets.

    Yet, with all of that being true, he's a socially-inept bully, plain and simple. If only he could solve that problem with clever algorithms and architectural knowledge, he'd probably be up for sainthood already. Instead, he embarrasses himself every time he opens his mouth in this way, and so do you if you defend him. Belittling people, even when they are completely, amazingly, HOPELESSLY wrong about something, is simply not acceptable.

    --
    If a pion (n-) collides with a proton in the woods & noone is there to hear it, does lamdba decay into the source pa
    1. Re:Correct title of this should have been... by fzammett · · Score: 1

      Of course, I meant LINUS in that title... my bad, mental typo obviously.

      --
      If a pion (n-) collides with a proton in the woods & noone is there to hear it, does lamdba decay into the source pa
    2. Re:Correct title of this should have been... by Insomnium · · Score: 1

      That's just how you feel about it. It's not his problem you don't approve. Please stop imposing your fantasies about utopia on others. I don't want to be there.

  64. BULLRUN vs BULLMOUNTAIN by WaffleMonster · · Score: 1

    Aside from codename coincidence is there objective evidence RdRand is compromised?

    Some degree of paranoia is healthy, certainly Eugen's stand against RdRand bypass of the entire entropy pool is sensible if for nothing else than to protect systems against any innocent defects which may exist in RdRand.

    It is however difficult in the absence of supporting evidence to see how unbounded paranoia can be useful.

    For all I know removing RdRand outright out of unsubstantiated fears is what the NSA is banking on.

    1. Re:BULLRUN vs BULLMOUNTAIN by 0123456 · · Score: 1

      Aside from codename coincidence is there objective evidence RdRand is compromised?

      Doesn't matter. No US hardware or software can be trusted any more... particularly when it's just a black box.

    2. Re:BULLRUN vs BULLMOUNTAIN by Burz · · Score: 1

      Aside from codename coincidence is there objective evidence RdRand is compromised?

      Myopic much? The objective evidence points to American vendors intentionally compromising their crypto features.

      Intel is somehow above this?! You--and Intel-- prove it to us.

    3. Re:BULLRUN vs BULLMOUNTAIN by WaffleMonster · · Score: 1

      Myopic much? The objective evidence points to American vendors intentionally compromising their crypto features.

      Intel is somehow above this?! You--and Intel-- prove it to us.

      I am mearly asking for evidence to support the position RdRnd is compromised.

      You are asking me to support a position I have not taken. I have no idea whether RdRnd is trustworthy nor have I ever made a claim that it should or should not be trusted.

      My only assertion is that paranoia in the absence of evidence is a pointless endeavour. US citizens kill other citizens, US corporations commit crimes... this does not mean all citizens and corporations are bad actors nor does it mean they are good actors. You need the frickin evidence to support your specific claims...otherwise you deserve to be ignored.

    4. Re:BULLRUN vs BULLMOUNTAIN by WaffleMonster · · Score: 1

      Doesn't matter. No US hardware or software can be trusted any more... particularly when it's just a black box.

      You are free to make your own value judgements however computers are a global affair with parts and expertise sourced globally... good luck finding something produced entirely under the jurisdiction of a "trustworthy" government. Remember it just isn't the product itself but the means of production and outlay of technology required to produce any modern shit. If means of production is compromised then it can be transfered to the final product as we have seen demonstrated in compromised compilers.

      Even if everything were "open" none of us have the capability or time to check everything to verify no tampering or backdoors have been inserted.

      Nor can we get access to production and supply chain to verify strict conformance to specification with no additional circuits added or modified during fabrication.

      Do I think US technology companies should be automatically trusted? Especially all telcom/ online/cloud shit HELL NO. I just think think those making blanket assertions in either direction without specific evidence are not making useful contributions.

    5. Re:BULLRUN vs BULLMOUNTAIN by Burz · · Score: 1

      No, you're asking us to ignore the actual stakeholders and how they've degraded their own reputations. The establishment has shown it will go after what it wants in an unprincipled and possibly unconstitutional fashion, picking the largest and most reputable vendors to carry out their abuse of trust. This is not paranoia; its precaution.

      RdRand is of special concern because subtle tampering can't realistically be detected (nor can good output be verified) with that type of data. It rests entirely on reputation and trust. Virtually any other type of tampering would show up from accidental triggering in heterogenous environments and scientific applications where correct output can be verified.

    6. Re:BULLRUN vs BULLMOUNTAIN by HiThere · · Score: 1

      IIRC, China is making it's own computer system out of parts that are mainly, if not entirely, sourced locally.

      Germany probably could, and may. It'll take awhile, though. Don't know about France or Britain. Possilbly there will be a pan-eurpoean model, with customization for each country.

      An interesting question would be "What about strong encryption?". I doubt that many countries would be happy with encryption being used within their boarders that they couldn't control. Canada might not mind, and perhaps not New Zealand, but Austrailia seems to be nearly as paranoid about that as the US, and once you get outside of the Commonwealth countries...well, the only ones that don't care are the ones that can't afford to run an electronic spying system. E.g., Vanuatu probably doesn't care.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    7. Re:BULLRUN vs BULLMOUNTAIN by david_thornley · · Score: 1

      For security purposes, the question you're asking is irrelevant. I know of no positive evidence showing RDRand is compromised. That doesn't mean I trust it.

      If you're interested in security, the questions are "Is there objective evidence it isn't compromised? Is there any reason to trust it?". Another useful question would be, "If I can't trust it, can I use it anyway safely?". I know of no objective evidence saying it isn't compromised. About the only analysis we can do is observing the output, and one thing we can't test random numbers for is some form of predictability. Linus has pointed out that it can be safely used to potentially improve randomness, so it's still useful.

      Linus's reasoning isn't unbounded paranoia. It's a matter of deciding how much to trust things. If you're doing security, anything you trust can screw you up, so you need to try to figure how much you trust every single thing. Given the NSA's activities as revealed by Snowden, you should not trust any cryptographic or random-related thing from the US that you can't get verified independently. (Not that I trust any other government in this, but I know something of what the NSA does.)

      The suggestion to dump anything that might be compromised is stupid, of course, since pretty much anything might be compromised. You did that security audit in-house? How do you know you did it right? You got it done from a reputable outsider? Who else is paying that outsider? Dumping RDRand entirely reminds me of reading of Islamist terrorist organizations refusing to use Western crypto on the grounds that it meant trusting the West, and instead using easy-to-crack ciphers.

      --
      "When you have eliminated the unacceptable, whatever is left, however improbable, must be the truthiness" - Holmes
  65. Re:Negotiation Skills by UnknowingFool · · Score: 2

    There are parts of the kernel that were written by Google, IBM, Oracle, etc. Guess Linus is in a conspiracy with everyone! Here's the point you missed: All the NSA parts are open source and were reviewed before acceptance. It's not like they snuck in code when no one was looking. Many people have reviewed the code and found that it improved security. If you have evidence otherwise, submit. Otherwise, it is just paranoia on your part.

    --
    Well, there's spam egg sausage and spam, that's not got much spam in it.
  66. Re:right, "cut their car brake lines" = level-head by NoImNotNineVolt · · Score: 1

    Not all of us are as excited as you about the politically correct world we increasingly find ourselves surrounded by.

    There was a time when being mean-spirited towards people based on their religion, their language, or their skin color was deemed socially acceptable. Those days are long gone.

    Now we're approaching an era when being mean-spirited towards people based on their incompetence or their ignorance is socially unacceptable. Pretty soon, it won't be acceptable to be mean-spirited towards anyone. Not idiots, not rapists, not murderers.

    Some of us dread that day. Some of us see the argument that you set forth and want nothing more than to say "Fuck you, Nancy. Fuck you very much."

    I'm tired of society bending those of us who are thick skinned and can handle hearing critical messages to the will of the weak. If you can't grow a pair and brush off offensive language, that's your problem. It's rather inconsiderate for you to burden the rest of us with your weakness.

    --
    Chuuch. Preach. Tabernacle.
  67. Re:Marital/Money problems??? by LordLimecat · · Score: 1

    A random source by definition is not correlated with anything. If it is, then it isnt random.

  68. Re:Marital/Money problems??? by ebcdic · · Score: 1

    Given a random source, you can produce another source correlated with it.

  69. Evil Things RDRAND Could Do by billstewart · · Score: 3, Informative

    Yes, RDRAND could do evil things. It could go play Towers of Hanoi when you execute it. It could Halt and Catch Fire. It could email your MAC address to the KGB. So could any other instruction, if Intel wanted to be malicious, just when you thought it was safe to go back in the register pool.

    If the NSA has convinced Intel to do evil things with RDRAND, the most likely one would be to hand out low-quality entropy when claiming that it's high-quality. It's still useful, and like any entropy source, it shouldn't be the only entropy source you use, and you shouldn't use it without hashing it together with a bunch of other hopefully-not-broken entropy. But it's still useful, and as somebody said, the NSA isn't your only enemy.

    Especially when you're starting up a machine (physical or virtual), you really need good entropy and you don't have a lot of sources available yet. If you don't trust RDRAND, or even if you do, hash it together with some secret password and the clock and whatever else you've got.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  70. Blunt != abusive by Beryllium+Sphere(tm) · · Score: 1

    When dealing with computers, spell things right. When dealing with people, don't insult them unless there's an unusual reason. When dealing with people who are wrong, all that you need to say is "You're wrong".

    1. Re:Blunt != abusive by oztiks · · Score: 1

      When dealing with people, don't insult them

      My point exactly. There are too many sensibilities that can be triggered amongst various people that in most cases will end badly for the "insulter" based on the "insultee's" reaction.

      When dealing with people, don't insult them

      Well don't accuse people for working for the NSA. Especially a Finnish man who writes software that's supposed to trump "the man" so-to-speak. It's all how you see it right?

      If being accused of ignorance is the worst they endured, they didn't endure enough!

    2. Re:Blunt != abusive by HiThere · · Score: 1

      If he really honestly knows what he is doing, and this is completely his intent, then his actions and intent combined form damaging malice for trying to destroy all encryption under Linux, knowingly willingly and purposely.

      Nonsense. There are other sources of random numbers, and IIUK, the kernel routines actually use those sources in combination with the CPU instruction. If they combine them properly, this should strengthen the randomness. But even without the (possibly subverted) RdRand instruction, the other sources of randomness would allow encryption to exist....but it might require that you type a sentence or so, so that there would be enough randomness stored in the system. IIRC, some systems used to require that when they ran low on entropy.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    3. Re:Blunt != abusive by oztiks · · Score: 1

      My second QUOTE was supposed to be

      When dealing with people who are wrong, all that you need to say is "You're wrong".

      I wasn't addressing the same sentence. Sorry. Just picked up on it then.

    4. Re:Blunt != abusive by Frank+T.+Lofaro+Jr. · · Score: 1

      Believing him moves him firmly into an active threat against the entire free world, and thus should be treated as such, forced out of and not allowed to interact with society since he wants only to see all societies fall and be destroyed.

      I'll let him pick exactly how fucked in life he really wants to be, but for his sake I sure hope he is just an asshole that is wrong instead of a force that has done more harm than people we currently put to death for today.

      Chill out, we are talking about Linux kernel coding, not Assad gassing people in Syria or Osama bin Laden having attacked the US 12 years ago!

      --
      Just because it CAN be done, doesn't mean it should!
  71. Re:UK petitioning USA government? by Jerslan · · Score: 1

    change.org is an independent site. It may have a mostly US focus, but it certainly does not serve solely to petition the US Government... Also once you vote for an issue, they spam you with all sorts of stupid crap like "My Sister got fat eating McDonald's Fries and then got diabetes and then lost a foot to neuropathy! We need to do something about this!".... Sure there are good causes out there, but most of them follow a "I want to complain about my own poor life choices or the poor life choices of a loved one! Find me someone to blame who will pay me millions in damages!" trend...

    Maybe you confused it with the White House's "We the People" petition system? The one where the White House has to respond with an official statement (or non-statement) to anything with more than 50,000 unique signatures?

  72. Re:Marital/Money problems??? by Anonymous Coward · · Score: 1

    One could argue that, but that would be stupid.

    Let's recount: if rdrand is not compromised, we're getting a huge boost in entropy, if it is - we're still getting a boost in entropy, at least vs. those not having keys to rdrand's possible backdoor, and by mixing it with other sources we're not helping those too.

    It _doesn't_ stand to reason to remove a component that's only "suspect" in sense of "Well, Intel's a big US company, amirite?..", but which is a net gain whether suspicions are true or not. It is like chopping off your hand because you scratched a finger just now and fear gangrene.

  73. Re:right, "cut their car brake lines" = level-head by Anonymous Coward · · Score: 2, Insightful

    Let me spell this out for you. I'll use small words.

    There is a style of humor where one says ridiculous things, with the understanding that these things are so patently ridiculous that the audience can understand that the things are not meant literally. Often, practitioners of this style of humor will go really over-the-top, mostly because this makes the joke funnier but also to make it crystal-clear that it's a joke.

    This is one such example. If I genuinely thought Linus was setting up a murder on the ARM SOC designers, I would be concerned and upset. If I even thought there was a culture of fear and bullying, causing the ARM SOC designers to be unhappy, I'd be concerned. As it is, I was amused.

    I suppose you were also upset over his trash-talking of CVS and Subversion in his Git lecture? "The problem with 'CVS done right' is that it leaves you nowhere to go... it's impossible to do CVS right." I think I laughed out loud at that one, but Nervous Nellies on /. were wringing their hands over this horrible hatefulness.

    Let me predict your response. "Oh sure, the brake-cutting thing is a joke, but it's a mean, hurtful, hateful joke that will make people feel bad." I have to disagree. It's so wildly disproportionate that it's impossible for anyone to take it seriously, and I can't believe the ARM SOC designers are going to really worry about it.

    Also, even with over-the-top dark humor, there are lines one doesn't cross; and Linus hasn't crossed those. It is not funny to joke about murdering or raping someone's family, for example; it's not funny to make jokes that remind people of horrible real-world atrocities; it's not funny to use offensive epithets related to race, etc. Linus didn't go there.

    Also, if one or more of the ARM SOC designers were to trash-talk Linus back, he wouldn't get all bent out of shape about it; he'd be amused. (The Linux kernel is nontrivial, therefore it has some dark corners that are ugly. Someone could poke fun at Linus over those.)

    Now if you will pardon me, I need to get back to work. Some of these bugs are so bad I'm going to hunt down the coders and remove their livers with a rusty spoon.

    Were you ever bullied as a kid in school? Do you have a child in school being bullied? Remember how it made you feel? Yeah.

    I was bullied sometimes. Mostly it was words but it got physical at times. Not a fond memory.

    This is not remotely similar.

  74. Re:Duct tape - it stops tinfoil from slipping! by gweihir · · Score: 2

    Well, in that case these Intel people would be completely incompetent with regard to security. You are right, possible they had that thought and are completely unaware of the consequences or they are so in love with their product they have gone blind to the real world. That would be even more dangerous.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  75. Re:Duct tape - it stops tinfoil from slipping! by gweihir · · Score: 1

    Don't be lazy, read the discussion for yourself. The gist of it is that in gathering entropy for crypto, it never is a good idea to only use one source of entropy. That this is a black-box source that could have easily been tampered with is besides the point. If you want to know more, read up on cryptographic PRNGs and the countless broken implementations of the past. And no, /dev/random is fundamentally different, because it uses multiple, different sources and it is not a black box.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  76. Bullrun? Bull Mountain by hazeii · · Score: 1

    Check out the code names.

    Kind of hard to believe Intel could be coerced into including a sneaky key into their hardware.

    Either trust it - or use something else.

    --
    All your ghosts are just false positives.
  77. -1 Overrated by Burz · · Score: 1

    ...there's bigger issues at[sic] foot with things like microcode.

    RDRAND is the bigger issue because trying to validate RNG output is essentially impossible. OTOH, most other types of CPU output are easily verifiable and any accidental triggering (easy to do in a general-purpose part put into thousands of different configurations and applications) of surreptitious behavior in some CPUs would eventually happen under the watch of people who know how to detect and single-out discrepencies (i.e. there's too high a risk that other types of tampering would show, especially when most environments are bound to have significant numbers of both compromised and non-compromised CPUs).

    AES belongs in the verifiable category: Give different AES implementations the same (random-seeded) input, and you should get identical output. Its nothing like random number harvesting in that regard.

    I agree with Linus' take that XOR'ing RDRAND with the rest doesn't compromise the kernel's random output--it can only push it toward more randomness, not less-- though relying on one reasonable assumption: That the chipset is not rigged somehow to reduce the randomness of the timings of data flows. I believe there is very little room for tampering here (after all, it would not do to cause large delays or even screw-up data in the process) and the difference in the raw data's quality should be detectable.

  78. Re:Negotiation Skills by Burz · · Score: 1

    You're basically right. However...

    I've got to wonder if its possible for the chipset to starve the kernel of randomness as well, by making the timing of data flows more regular. These days, the chipset maker is usually the same as that for the CPU.

    It seems like that would be detectable (and would degrade system performance, too)... but would they try it?

  79. That's exactly right by Animats · · Score: 1

    If it is now merely feeding the pool as one of multiple sources, then it's OK. If anything is directly exposed to raw rdrand output, something is very wrong.

    That's exactly right. Even if the hardware RdRand has a "work reduction factor" built in, i.e. it's not as random as it seems to be, there's some randomness there, and it can be fed into the entropy pool along with other sources of randomness.

    Randomness sources inside deterministic computers are scarce. Disk timing, clock jitter, network arrival times, etc. are useful, but generate random bits at a low rate. Thus, "/dev/random" will block if not enough random bits are currently available. This usually isn't a problem, but if every TCP connection you open is SSL and you need random bits for key generation, the supply could run out. If, say, you wanted to fill a DVD with random bits for a one-time key system, /dev/random would probably be a bottleneck. Is Torvalds making that argument?

    There's another application of randomness. The only known theoretically unbreakable cryptosystem is a one-time key system where 1) the keys are truly random and 2) are used only once, 3) then destroyed. One time key systems have been broken in practice due to violations of each of those rules. Venona violated rule 1 and 2, and there have been spy cases where the spy hadn't destroyed their keying material when captured.

    A reasonable cryptosystem is to make two identical DVDs of random bits. Each party has a DVD, and they can communicate as many bits as they have random bits in common. This is a pain, but it works. Such systems are used by the US for embassy-to-capital links. In the paper-tape era, this was a huge pain, but a DVD can store enough data for a thousand hours of phone calls.

    Any reduction in randomness in a one-time key system makes it very vulnerable. It doesn't take much to provide an entry into the cypher.

  80. Sigh... here we go again ... by inkcogito · · Score: 1

    1. Random numbers exist in theory not reality. 2. Given #1 We settle for "sufficiently" random. 3. Our tools for #2 are predictable, given the method and parameters at time of generation, we only need to corrupt or derive the seed. 4. Given #3 we either use the tool that creates #2 or we create one that is as "good" as #2. 5. Some idiot who believes #2 or #4 is an infallable solution needs to relearn statistics and probablity and rethink #1. (The answer is 42) All "random" generation systems can be corrupted into predictability. The fact that a CPU instruction can be subverted through design or microcode does not negate "good enough".

  81. Re:"I hope that ARM SoC hardware designers all die by Anonymous Coward · · Score: 1

    Just the ones who put in non discoverable busses. So he got that one about right,

    If you follow the thread a bit you'll find some reasonable explanation why we have non-discoverable buses. The vast majority of sensors and devices use stuff like I2C and SPI, which simply does not support discovery and never will. It has nothing to do with ARM SoC.

    The whole point of a SoC is to as cheaply as possible make a system that does one particular thing and make it as small and power-stingy as possible. Every system is by definition a custom one-off. It will have random I2C devices on random pins, and a bunch of magic arbitrary GPIOs that control stuff.

  82. Re:Negotiation Skills by gweihir · · Score: 1

    Not really. But something far worse can happen: The environment can be virtualized. In such a case RDRAND is highly desirable, as it still works at full capability (whatever that may be), while a lot of other entropy sources become significantly degraded.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  83. Re:Negotiation Skills by Burz · · Score: 1

    Yes, this was an ongoing concern with Qubes for a while, then Xen got a patch to address the problem.

  84. We really can't test it? by cen1 · · Score: 1

    So.. some comments say that we can't know for sure if RdRand is flawed because NSA could tell Intel to do it etc... but can't we really? There are standard methods for checking if RNG is working OK or not.. the most simple one is to run a huge number of tests and see if the result is uniformly distributed. Surely it would be hard to see the actual implementation on hardware level but we don't need to see it.. we only need to know if it is statistically random. What am I missing? See also http://en.wikipedia.org/wiki/Randomness_test, http://en.wikipedia.org/wiki/Diehard_tests

  85. Re:right, "cut their car brake lines" = level-head by Obfuscant · · Score: 1

    Now we're approaching an era when being mean-spirited towards people based on their incompetence or their ignorance is socially unacceptable.

    I think we've been in an era for a long time where it is inappropriate to wish others dead simply because they design computer hardware in a way that you don't like. Designing embedded computers in a way that is appropriate for embedded computers but not desktop systems is neither ignorant nor incompetent, per se. To paraphrase so many of the posters here regarding RdRand, "if you don't like that hardware, don't use it."

    Your desire to classify this as simply "being mean spirited" is the era we do not want to approach. Refraining from wishing others dead "in painful ways" is hardly political correctness, especially when the reason you want them dead is a disagreement over a CPU design. It's called basic human decency, and it will, I hope, never disappear no matter how much you'd like it to.

  86. Re:Marital/Money problems??? by binary01 · · Score: 1

    If you bothered to read the e-mails from the actual hardware designers in the linked thread (I know, I know, I'm new here and I should know that nobody ever reads anything), you would have seen that the things you are saying in your posts have no relation to the reality of the situation. The hardware people said that they know very well the way they're doing things makes it difficult for the software and they gave their reasons for doing it this way. Whether we agree that the reasons are valid is a seperate question, but your claim (that they are not aware of the fact that this causes the software to be a mess) is simply wrong.

  87. Re:right, "cut their car brake lines" = level-head by Darinbob · · Score: 1

    But attacking ARM SoC makers wasn't an attack on ignorance or stupidity. He's just annoyed because their design isn't the design he'd prefer to have. He wants these ARM boards to be like PCs with a big system style rather than the chaotic world of embedded systems and SoCs. The outburst is more of a sign that Linus is over stressed and needs a long vacation (or retirement) rather than someone doing something stupid that needed to be pointed out.

    It also means that many people who would otherwise want to port Linux and contribute to it might head off to platforms like NetBSD instead. A willingness to endure abuse may be a requirement as a side show act but it shouldn't be necessary to participate in open source development.

  88. Re:Marital/Money problems??? by Darinbob · · Score: 1

    Those aren't the chips he's complaining about though. Most ARMs go into small special purpose embedded systems. They may be $3-$10 each, with people fighting to get the cost even lower. The software knows exactly what the software and what devices are connected to it. Very often the company using the ARM has contracted with someone to create a SoC to their specifications. And yes, you always get the datasheets if you're the system designer (and easy to find if you're not).

    If you want to see fights, see the ones between software/firmware people fighting their fellow employees who designed the hardware. It's an old problem. System gets designed as bare bones as possible then software/firmware has to work around the problems with it. Even when there are outright bugs in the hardware the designer just shrugs shoulders and says "deal with it". Worst part is I think the hardware people design based on requirements and plans in year X but then software starts implementing in year X+1 after the requirements have changed.

  89. Re:The price of godhood by HiThere · · Score: 2

    Troll or astroturfer?

    The first couple of times this post appeared, I was willing to give the poster the benefit of the doubt. (Disagreeing with me isn't proof of anything, except, occasionally, common sense.) But essentially the same post has now repeated several times.

    I'm beginning to tilt towards astroturfer.

    --

    I think we've pushed this "anyone can grow up to be president" thing too far.
  90. Re:right, "cut their car brake lines" = level-head by HiThere · · Score: 1

    Perhaps some BSD derivative might be more appropriate. The impression I got (admittedly, I'm full of ignorance on the subject) is that Linus though the ARM SoC designers were intentionally designing systems to be incompatible. Perhaps I'm wrong?

    OTOH, various past experiences have prepared me to believe that LOTS of companies want to set up a walled garden, and want someone else to provide the software to make it work. I have scant sympathy for any misfortune that happens to someone like that.

    --

    I think we've pushed this "anyone can grow up to be president" thing too far.
  91. Re:Negotiation Skills by gweihir · · Score: 1

    Xen does /dev/random pass-through? Good to know!

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  92. Re:right, "cut their car brake lines" = level-head by Darinbob · · Score: 1

    Most embedded systems are not designed to be compatible with each other, that's true. But that's also normal. They're not being built as general purpose computers. Not that they're intentionally incompatible but because there's no need to be compatible.

  93. "Linus Responds ... With Scorn" by NikeHerc · · Score: 1

    I have used Linux personally and professionally since 1996. I have immense respect for Linus and his amazing operating system.

    Because I have a lot of experience with the innards of operating systems, last year I began a personal project to [re]develop a small part of TCP/IP that has been excluded from the network stack, with the idea of convincing the Linux folks to merge this bit of code back into the stack.

    However, after seeing numerous reports of Linus' behavior, I ditched the project and decided to go into ham radio instead. I don't need anyone screaming at me, irrespective of the quality of the code produced.

    The ham radio community is generous with their time and knowledge and I haven't met the first screamer.

    --
    Circle the wagons and fire inward. Entropy increases without bounds.
    1. Re:"Linus Responds ... With Scorn" by Anonymous Coward · · Score: 1

      You don't say!

      Even though I never experienced that myself and doubt I would, but because Linus have sometimes been blunt to people doing stupid things I decided to drop programming altogether and go into knitting. Them old ladies are a pleasant bunch and cookies are DELICIOUS.

  94. Good Ol' Linus by carys689 · · Score: 1

    Nice guy.

  95. Re:Negotiation Skills by Lumpy · · Score: 1

    This is linux, it is trivial to create a random number generator hardware device and have it a part of /dev/random anyone relying on any commodity hardware is NOT truly interested in security.

    http://www.robertnz.net/true_rng.html

    I really like the "random number CD" that has a pregenerated 600mb of numbers, kind of like a 1 time pad. actually that would be brilliant, mail your reciever the CD and use it as the 1 time pad source for all your communication.

    --
    Do not look at laser with remaining good eye.
  96. Re:Are you satisfied of merely being a freeloader by Frank+T.+Lofaro+Jr. · · Score: 1

    Some people contribute to the world in ways other than Linux kernel development.

    Stop being a coder snob.

    --
    Just because it CAN be done, doesn't mean it should!
  97. Linux not maintream? by Nivag064 · · Score: 1

    Not to mention that Linux runs on more types of hardware than any other O/S kernel.

    Linux also dominates the embedded, mobile, & server markets.

    If you count actual instances of Linux installed across all devices, then Linux is more more mainstream than all the other O/S's put together!

    So how is Linux _NOT_ mainstream?

  98. Re:Negotiation Skills by Frank+T.+Lofaro+Jr. · · Score: 1

    Can we use a Justin Bieber CD? It is mostly white noise.

    --
    Just because it CAN be done, doesn't mean it should!
  99. Re:Wow, he's so mature. by Nivag064 · · Score: 1

    Anyone who thinks that Linux is an OS developed by some 12-year-old dumbass, does not deserve from the benefit of using Linux.

    I wish I was good enough to writer something like Linux, at any age! Hell, I wish I was at least good enough to submit a patch and have Linus be rude to me - if my patch was either totally useless or perfect in all respects, then I would hear nothing back.

  100. Re:right, "cut their car brake lines" = level-head by Frank+T.+Lofaro+Jr. · · Score: 1

    It simply means not being a petty, insulting git.

    Linus named his source control program "git", was it in "honor" of himself?

    --
    Just because it CAN be done, doesn't mean it should!
  101. Re:"I hope that ARM SoC hardware designers all die by TechyImmigrant · · Score: 2

    But this means it needs a custom kernel so adds complexity to an open source kernel like Linux when it has to work on a million different ARM based chips with undiscoverable busses.

    --
    I should use this sig to advertise my book ISBN-13 : 978-1501515132.
  102. Re:right, "cut their car brake lines" = level-head by NoImNotNineVolt · · Score: 1

    Yes, it was:
    Quoting Linus: "I'm an egotistical bastard, and I name all my projects after myself. First 'Linux', now 'Git'".

    --
    Chuuch. Preach. Tabernacle.
  103. Re:right, "cut their car brake lines" = level-head by NoImNotNineVolt · · Score: 1

    I think we've been in an era for a long time where it is inappropriate to wish others dead simply because they design computer hardware in a way that you don't like.

    Die in a fire.

    --
    Chuuch. Preach. Tabernacle.
  104. Re:right, "cut their car brake lines" = level-head by NoImNotNineVolt · · Score: 1

    There is absolutely no reason to be "mean spirited" to any person at any time.

    Die in a fire.

    --
    Chuuch. Preach. Tabernacle.
  105. Re:right, "cut their car brake lines" = level-head by NoImNotNineVolt · · Score: 1

    I agree with all of your points regarding the ARM SoC issue, but regarding the RdRand issue Linus was spot on.

    However, my point wasn't so much about Linus being justified in his actions or not. It was about society becoming emasculated.

    The other two replies to my comment really highlight this fact; overly sensitive people whining about how something is "inappropriate" or appealing to "basic human decency" or calling out "mean spirited bullies" or fretting about "dehumanizing people". Our ever-more-comfortable society has led us to become so far removed from natural existence that talk like this has become commonplace. People feel butthurt about Linus calling people names as though it's some crime against humanity, forgetting about the existence of things like sex slavery, wars, or genocide.

    All I'm saying is (and this isn't directed towards you, Darinbob): if Linus's rants hurt your feelings, I hope you never have to feel real pain. It would crush you.

    --
    Chuuch. Preach. Tabernacle.
  106. Don't sign a petition you don't understand by nobaloney · · Score: 1

    California (and probably many other states as well) allow the [i]public[/i] to create and present to the voters, laws which the legislature never considers. Many such laws have been passed. The end result is a few good laws get passed, tens of millions of dollars get spent on elections, and many laws get passed, overturned by courts, and otherwise just don't work.

    While Linus may or may not be arbitrary, may or may not be obnoxious, may or may not be overbearing, he almost certainly knows more about the subject and it's viability than people who come across and sign a petition on change.org withoout taking the time to fully understand it.

  107. Re:Marital/Money problems??? by bonniot · · Score: 1

    It doesn't do that. What makes you think it does?

    Parent it saying it's not supposed to do that, but it *could*. What makes you sure it couldn't?

  108. It's not random anyway by cwsumner · · Score: 1

    Randomness is a resource, you have to obtain it from somewhere. CPUs are explicitly designed to -Not- be random, in operation. To use a CPU to generate a number, is not something that should be depended upon to be random.

    A real random number generally requires separate hardware, such as noise from a stressed diode.

    That said, if a program wants to use a documented instruction it should be able to. If you want good crypto just don't use that instruction. It is not the job of an OS to prevent programs from running.

  109. Re:Marital/Money problems??? by TechyImmigrant · · Score: 1

    >What makes you sure it couldn't?

    I designed it (the SP800-90 part - much credit goes many other people for other parts). I understand the organization within which it was designed and manufactured. I know the vectors through which it could be subverted. It hasn't been subverted. I'd notice.

    --
    I should use this sig to advertise my book ISBN-13 : 978-1501515132.
  110. Re:Marital/Money problems??? by bonniot · · Score: 1

    Good for you! Interestingly, your message confirms RdRand *could* be subverted. Luckily now we also know that you would notice, and I'm sure in that case you would let us know ;)