back to article Linus Torvalds pens vintage 'f*cking' rant at kernel dev's 'utter BS'

Linux overlord Linus Torvalds has fired off an expletive-laden rant of the sort that only he seems to find acceptable. His post to the Linux Kernel mailing list takes aim at a chap named Kees Cook, who The Register believes to be a Google employee working on security for the company's Pixel phones. Cook appears to have earned …

Page:

  1. Anonymous Coward
    Anonymous Coward

    Big egos make bad code.

    No amount of defending bad code you wrote makes it good code.

    Good code is not elegant, uncommented, utilising recondite features of a compiler.

    Good code is regular, lowest common denominator stuff written in a style that everybody understands including all compilers, that has stood up to being trashed by users' idiocy until its pretty much bullet proof.

    Good code is not the creation of a genius, but of sober humble writers working long hours to create and even longer hours to debug.

    If Linus has to use a few F-bombs to get egos out of Linux, so much the better. Its a pity that they didn't work with Lennaert...

    1. wolfetone Silver badge

      Re: Big egos make bad code.

      Exactly. There have been a tonne of instances where the developers have written shit code and pushed it through to the build, only for Linus to find them and kick off about it. They're simple issues, and they're issues that a developer really should be on top of. Blaming the checker at being at fault is like me going to the shop and saying the lottery machine is wrong when it says my "winning" lottery ticket doesn't have a single number on it.

      1. DrRobert

        Re: Big egos make bad code.

        A tonne of instances? Don't you mean 1000kg ?

        1. msknight
          Trollface

          Re: Big egos make bad code.

          Surely you mean 1.1231 great white sharks? Or 0.0222 Australian trams?

        2. wolfetone Silver badge

          Re: Big egos make bad code.

          I could've meant 1,000Kg.

          I could've meant 2,204.6lbs.

          I could've meant 1.10 short tons

          I could've meant 0.984 long tons.

          I could have also meant 1,016Kg if speaking about ton.

          I could've also meant 907Kg if speaking about ton to our North American friends.

          But, hopefully, you'll still be able to get the idea that I meant he got a metric shit ton of instances.

          1. Chronos

            Re: Big egos make bad code.

            What's that in imperial arse-loads?

            1. wolfetone Silver badge

              Re: Big egos make bad code.

              "What's that in imperial arse-loads?"

              42.

      2. Sil

        Re: Big egos make bad code.

        No one is blaming the checker for finding real faults in others' code.

        The question is, can you check code and hold people responsible for their bad code, while being decent and not unnecessarily virulent, foul mouthed or offensive about it.

        The question is, how many good devs did Linux loose, or will never have, based on Linus' insistence on behaving like a non-educated three years old.

        1. Mark 65

          Re: Big egos make bad code.

          @Sil: The world already has far too many delicate little flowers in it whose parents convinced them over the years that "mummy's little soldier is special" and that they can do no wrong. I suffer this crap daily having to deal with clueless tits that just will not accept that they don't have a fucking scooby what they are doing. They are productivity detractors.

          The man is trying to get shit done and doesn't suffer fools gladly. I have no problem with this. I feel the world would be a better place if there was less tolerance of whiny little twats not more.

    2. Citizen99

      Re: Big egos make bad code.

      I remember, back in the '70s, my boss telling me the following anecdote:

      The Chairman of the Gas Board (as it then was in the UK) issued the following edict "Sack all clever programmers"

      :-D

  2. Flocke Kroes Silver badge

    Re: Counter argument

    Where is respectfulkernel.org or politelinux.net? Show me a kernel fork making constructive progress without rants and the counter argument is made.

    1. Doctor Syntax Silver badge

      Re: Counter argument

      "Show me a kernel fork making constructive progress"

      Microsoft appear to be trying it. https://www.theregister.co.uk/2017/07/31/windows_subsystem_for_linux_to_debut_in_windows_10_fall_creators_update/

      Whether it's making constructive progress is a different matter.

      "without rants"

      And as it's behind closed doors we aren't going to know.

      1. Ken Hagan Gold badge

        Re: Counter argument

        I don't think this is a kernel (fork or otherwise).

        It almost certainly is without rants, however, since MS have to pay lip service to the norms of US employment. On the other hand, they probably sack the lowest performing 5% of their team every so often, which I'd argue was an even worse way to treat your devs.

        1. katgod

          Re: Counter argument

          Ken,

          Do you think that ranting at a coder about his or her bad code will make him a better coder?

          If that works maybe you should tell teachers about your new teaching method.

          1. Mark 65

            Re: Counter argument

            Given the behaviour, or rather lack thereof, currently observed in classrooms and the quality of the "educated" product that eventuates I'd say teachers are the last people to talk to about what works.

            Those who can...do, those who can't...teach.

  3. jake Silver badge

    As I've said before ...

    Wouldn't YOU be fucking pissed off if a so-called "professional" tried to pass off junk as working code, and expected you to put YOUR name on it? Frankly, given some of the egregious errors I've seen on the KML, and the lengths that the owners of those errors go to justify their junk, I'd say Linus shows extreme restraint!

    1. Anonymous Coward
      Anonymous Coward

      Re: As I've said before ...

      Hmmm, well so far as I can tell all the chap has done is point out that, at the very most, there is some illogicality to the way faults are reported. He's not even written any code, this is old established code that could do with some improvement. Perhaps his only mistake was to assume that asking Torvalds for guidance would be worthwhile...

      I'm wondering just how long Linux has got left as a cohesive, foundational project. RedHat / Pottering are trying to steal it. Google must be wondering why the hell they're bothering. Intel have had staff walk away from the project.

      And then there's the more existential stuff; Rust as a language is really coming along, and the Redox OS written in Rust has made some stunning progress in a very short time. The whole idea of a kernel written in C is rapidly becoming anachronistic, not that many people realise it. Linux risks becoming a technological back water, though with a lot of momentum.

      Other fundamental stuff needs changes. Everyone acknowledges that the network stack performance is below par, and it needs to be moved out of the kernel. That's a massive architectural change that's not happening because probably no one wants to raise the topic with Torvalds.

      1. sabba

        Re: As I've said before ...

        I have no problem with the kernel being written in C. Good, and bad, code can be written in any language. I do take exception to Linus' approach to handling anything he deems to be critical of his work. That smacks of a God complex and that rarely works out well for anybody. Over the years I have heard many bullies justify their actions by saying it gets things to. The question is, does their approach cause things to get done in an expedient (fast delivery) or appropriate (robust) manner and at what cost?

        1. Mark 65

          Re: As I've said before ...

          I do take exception to Linus' approach to handling anything he deems to be critical of his work. That smacks of a God complex and that rarely works out well for anybody.

          I look forward to a comparison between the Linux kernel overseen by a man with a God complex and a rival one that is "designed by committee". That never works out well.

      2. keithpeter Silver badge
        Coat

        Re: As I've said before ...

        Redox...

        https://github.com/redox-os/redox/releases

        https://www.reddit.com/r/Redox/

        Looks most interesting. Getting close to self-building, and they have ported gcc so there will be some applications to run on their GUI when it is a bit more stable. My favourite quote: "I am currently struggling with getting autotools based builds to work on Redox (warning: trying to read and understand a ./configure script may cause mental illness)."

        Wondering if the focus is a GUI/desktop or server workloads, obviously shiny motivates the younger contributors but a minimal system that can sit somewhere on a network and run an application or two written in the system language could provide a niche that encourages adoption and a show-case implementation.

        The more the merrier, but I think Linux has a significant incumbent advantage over the BSDs, Illumos based OSes and new ones like this.

        Coat: 9front for the win!

      3. bombastic bob Silver badge
        Devil

        Re: As I've said before ...

        "I'm wondering just how long Linux has got left as a cohesive, foundational project"

        a long time, I'd say.

        "RedHat / Pottering are trying to steal it."

        let them try. systemd kernel? HA HA HA HA HA! that's a laugh!

        "Intel have had staff walk away from the project."

        rage-quitters should STAY 'quit'. it's likely they were unproductive anyway. My $.10.

        1. Pirate Dave Silver badge
          Pirate

          Re: As I've said before ...

          "systemd kernel? HA HA HA HA HA! that's a laugh!"

          Never underestimate the power of the Dark Side...

        2. Anonymous Coward
          Anonymous Coward

          @bombastic bob - Re: As I've said before ...

          I wouldn't dismiss the RedHat trying to steal Linux. It is always good when you can lock-in customers and get rid of competition.

          1. fobobob

            Re: @bombastic bob - As I've said before ...

            Sounds more like a Oracle play, they pretty much stole ksplice from the industry at large.

          2. bazza Silver badge

            Re: @bombastic bob - As I've said before ...

            I wouldn't dismiss the RedHat trying to steal Linux. It is always good when you can lock-in customers and get rid of competition.

            Quite. If enough kernel devs end up being RedHat employees, they own Linux. Linus is good at driving people away from the project, leaving it vulnerable to a group with a plan and the money and the motivation to dominate the project.

            If that happened, and they then forked Linux and went their own way, everyone else has to follow. "You wanna desktop, use our fork. Use Linus's original if you want but there's no desktop for you". It's worked with systemd, it would work with the kernel too. There's simply not enough people who care enough about the specifics of the lower layer stuff to resist it. Most people just want a working system and don't give a damn if the code itself was personally blessed by Linus.

            The longer Linus keeps ranting at hardworking kernel devs, the more likely we'll end with Pottering being in charge of the only fork of Linux one can actually use.

            1. bazza Silver badge

              Re: @bombastic bob - As I've said before ...

              Ps that's an outcome that I'm not so keen on, to put it mildly...

      4. frobnicate

        Re: As I've said before ...

        The amazing progress of Redox OS includes re-writing the kernel from scratch, because existing virtual memory sub-system caused multiple memory corruptions and crashes in user land (https://www.redox-os.org/news/this-summer-in-redox-15/) that developers couldn't fix. So much for "safe" languages.

        1. bazza Silver badge

          Re: As I've said before ...

          @frobnicate,

          I think you're missing the point. Crashes are good, they're Rust's way of pointing out bugs in your code. C is nasty because unless you do something spectacular to cause a segment fault or similar, your code will run quite happily causing mayhem that you might learn abroad during development, or you might not.

          Rust itself is still evolving, but is a very good systems language. It's pretty hard to code for, because it doesn't let you get away with mistakes. That's its strength. You write junk code, you're going to be told all about it straight away.

          Unlike C, where bugs lie dormant for decades undiscovered.

          If ISO standardises Rust, it will become the language of choice for low level stuff like kernels.

          I'm a long time C programmer, I love it to bits, but Rust is the writing on the wall. The speed with which Redox has gone from nothing to a running desktop is hugely impressive. The fact that they could bash out a whole new kernel very quickly, and apparently it's pretty bomb proof already, shows that it's a language where you can concentrate on ideas instead of worrying about memory all the time.

          Large C projects like Linux will be seen as just too demanding of resources. There's a lot of people spending a lot of time chasing down problems in Linux that simply don't exist if Rust was used instead.

          1. frobnicate

            Re: As I've said before ...

            @bazza,

            Rust safety features (as well as similar features of other languages) are mostly irrelevant in the context of kernel development. They rely on the underlying model of fully separated protected address spaces. And kernel's task is to *implement* this model, so it cannot rely on this model. The bugs in the Redox where not some kind of wild pointer dereferences or use-after-free-s (these are eliminated by the language), they were perfectly legitimate memory accesses, but they still caused crashes, because the memory locations in question happen to contain page tables or DMA setup structures, etc. That is, those were not typical "segfault" kind or errors, they were logical errors, from which Rust protects no better than C. (And yes, such errors can stay dormant for years.)

            I spent (<counts with fingers...>) about 10 years doing kernel programming for multiple operating systems and I can say that chasing pointer errors definitely wasn't anywhere close to the top problems.

      5. oldcoder

        Re: As I've said before ...

        I don't think Linus would object to the network code moving out of the kernel...

        As long as it works, and has equal performance, and doesn't change the userspace interface.

        He might even give a sigh of relief at not having to put up with it anymore.

        1. Alan Brown Silver badge

          Re: As I've said before ...

          "As long as it works, and has equal performance, and doesn't change the userspace interface."

          Linus isn't the only one who'd heave a sigh of relief. Some of those decisions made a long time ago when we were younger, more foolish and had less grey hair seem less smart with 20+ years of hindsight. kernel NFS in particular must die.

    2. Fruit and Nutcase Silver badge
      Coat

      Re: As I've said before ...

      I've come across "professional" programmers that makes amateurs look good, in fact, very good.

      1. Gary Bickford

        Re: As I've said before ...

        "Some people have 20 years of experience. Others have one year of experience 20 times."

  4. Will Godfrey Silver badge
    Unhappy

    I think I'd be less than delighted

    A supposed professional doesn't accept that his own code generates a false positive and dumps everything. Yet the lead developer who's reputation is then being questioned is expected to act 'reasonable'.

    Too many snowflakes around these days.

    1. bombastic bob Silver badge
      Thumb Up

      Re: I think I'd be less than delighted

      "Too many snowflakes around these days."

      You, sir, deserve, MANY THUMBS UP for THAT one!

      /me takes a FLAMETHROWER to the snowflakes. Look, a puddle!

      1. Jamie Jones Silver badge
        Boffin

        Re: I think I'd be less than delighted

        You do know that it's a proven fact that usage of any of the following words/phrases in their "PC" / political context indicates a lower IQ, and the tendency to follow the leader, sheep-like?

        snowflake, triggered, libtard, "safe space", SJW (as currently used), "fake news"... and more...

        Further studies show that users of such phrases are unaware that whilst using them shows up their stupidity, they ironically think it makes them look clever. Unable to think for themselves, they cling onto whatever "facts" are explained to them with single syllable words.

        Typically paranoid, and easily scared, give them a " bogeyman" to fear, and they are even easier to control. However, protagonists in this field have urged caution, as it is very easy for such brainwashed people to have views even their own side thinks absurd, such as the government is out to get them, and there could virtually be terrorists hiding under the bed, and that their penis is abnormally small (though this latter point is usually true)

        1. Anonymous Coward
          FAIL

          "proven fact" and "studies show"

          are also on the shitlist. Just sayin'.

          1. Jamie Jones Silver badge
            Facepalm

            Re: "proven fact" and "studies show"

            Errr. Both you guys.. That was sorta the idea

            1. Anonymous Coward
              Coat

              Then... use a different icon, maybe? Instead of the one that suggests you take yourself seriously and so should we?

        2. Anonymous Coward
          Anonymous Coward

          Re: I think I'd be less than delighted

          @Jamie Jones: Dude, you're sounding like a condescending twat.

  5. david 12 Silver badge

    >that only he seems to find acceptable.<

    I take that to mean "that no editor would find acceptable", and I take that to mean "in published print, although it would be normal in some newsrooms"

    As such, it's a perfectly reasonable (though strangely ignorant) opinion of a journalist.

    1. Anonymous Coward
      Anonymous Coward

      Re: >that only he seems to find acceptable.<

      "I take that to mean..."

      You are adding a qualification where none is needed; this just confuses things.

      Every time El Reg's APAC editor posts an article about the way Linus manages the LKML the majority of the comments here support Linus. In view of this, when El Reg's APAC editor claims that Linus works in a way "that only he seems to find acceptable" he [EL Reg's APAC editor] knows it to be untrue; it's just click-baiting.

      Personally, I'd sooner work with someone who is straight and honest than someone who resorts to misrepresenting the facts in order to pursue a personal vendetta.

      1. Mark 65

        Re: >that only he seems to find acceptable.<

        @LeeE: Do you think there may be a denied pull request in there somewhere?

  6. John Smith 19 Gold badge
    Unhappy

    Remeber folks this is only news because it happens quite rarely

    I think it's good someone is using a code checking tool.

    But if Torvalds is right then like all tools its output must be read with care.

    I'm guessing he's usually right.

  7. Lee D Silver badge

    The tone of the article isn't at all judgemental, Reg.

    The LKML is far from a workplace. It's a public forum.

    Linus isn't employed, as such, so he's not working and not in a workplace.

    And idiocy like this attracts comments like that even in my workplace. Sure, they won't appear on any HR complaint because you make sure they are issued to the right people - like he did here as the response was precisely "fair enough"!

    How to cook the article to make Linus the villain again, because he swears a bit. I'm much more concerned about a president who thinks it's appropriate to tweet about nuclear proliferation, tick off China, threaten his staff with the sack etc. than someone saying "This is rubbish, change it".

    This BUG() - the article doesn't say it - just kills your machine stone-dead with no way to continue. Sure, it's in debug code, but you DO NOT WANT your machine to just die if it hits a problem. You want at least a way to bail out, an error, and a way to get back to a debugger and test again rather then "Oh well, I have almost no information on what happened, I'll just reboot and hope it never happens again despite the fact I'm supposed to be doing these people a favour and testing their code for them".

    And it's picked up by an automated bot, in a commit whose description is "add the option of fortified string.h functions". Things shouldn't bring an entire machine to a grinding half because someone added an option and didn't test it properly (and, reading between the lines, decided not to error-handle, but just to "warn" in the log, then BUG() which kills the machine).

    This type of thing might be acceptable in an internal project while testing, it shouldn't be pushed to a kernel where others are trying to get work done (even if that work is debugging that exact problem!).

    1. sabba

      There are ways and means. Linus is a throwback to the bad old days when IT was king. He needs to learn some social skills.

      1. Arthur the cat Silver badge

        Linus is a throwback to the bad old days when IT was king.

        Personally I think Linus is actually a performance art collective.

      2. Alan Brown Silver badge

        "He needs to learn some social skills."

        He's got plenty of social skills. The harsh reality is that being "nice" and using "soothing" language simply results in clues bouncing off the clueless.

        Adding a few barbs tends to make them stick.

      3. Hans 1
        Paris Hilton

        He needs to learn some social skills.

        He is leaning social skills:

        https://www.youtube.com/watch?v=iYWzMvlj2RQ

  8. Anonymous Coward
    Anonymous Coward

    is it never possible that Linus is wrong? Does he never say BS?

Page:

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like