Slashdot Mirror


Missing Kernel Patches

BlueEar writes: "There is an interesting, short story posted on the Gentoo Linux site. It talks about kernel patches created by Linux distributors that while publically available never get submitted. It even gives an example of one 'no brainer' patch that has been sitting over a year, without being incorporated into the 2.4.x distribution. The article ends with an appeal to Linux community to keep those patches flowing to Marcelo."

159 comments

  1. They Don't Get There By Themselves by Anonymous Coward · · Score: 5, Insightful

    What most people don't realize that someone who puts together these releases like Linus or Marcelo is by no means omniscient. The kernel is a huge piece of work, and no one person can know what's happening in every corner of the thing. Most of Marcelo's time goes to merging patches, so he surely cannot go around the net looking for what ever fixes some distributor might have used or even checking out how come some fix that was circulating around before was never submitted to him.

    What's nice is that nowadays there seem to be a couple of "patch harvesters" on the lkml who create their own releases (Alan Cox is now one of these people!) and persistently keep submitting forgotten patches.

  2. The quality? by Anonymous Coward · · Score: 4, Insightful

    Many of the distributor's fixes are ad hoc kludges that are designed to quickly making the thing *work*, ignoring elegance and maintainability... even when they do fix things, in the long run we don't want to take all of them into the kernel.

    1. Re:The quality? by supine · · Score: 4, Informative

      Many of the distributor's fixes are ad hoc kludges that are designed to quickly making the thing *work*, ignoring elegance and maintainability...

      I don't understand why a distro would bother shipping a kernel (or app for that matter) with a patch that was "ad hoc". It wouldn't exactly endear their customers to provide repeat business.

      I think you will find that most distros test their patched kernels thoroughly before releasing them to the world. This would include not only checking that the patch fixes the problem, but that it compiles on all supported architectures and does not jeopradise future modifications to the same bit of code or adjacent or related pieces of code.

      Why they don't submit all the patches to the kernel maintainer I don't know? Maybe the patch was submitted and was passed over or missed and then not resubmitted.

      marty

      --
      "I can't buy want I want because it's free. Can't be what they want because I'm me." -Corduroy, Pearl Jam
    2. Re:The quality? by shippo · · Score: 2, Informative

      I remember when Redhat attempted to modularise the sound drivers for one of the 4.x releases. They ended up with Soundblaster drivers working as modules, but every other card driver was completly broken.

    3. Re:The quality? by SpinyNorman · · Score: 2

      I wouldn't be so sure about that... For example the only 2.4 VMs that work are in distributor kernels (e.g. 2.4.9-RedHat), and RedHat's "2.96" gcc also contained a whole slew of important fixes.

    4. Re:The quality? by windlord · · Score: 1

      If the developers are giving more piority to dressing up the code and "making it look nice" rather than functionalty, then i think that something is wrong.

      True, I arn't the one whos gonna work on it in future... but when its BROKEN, it's BROKEN! Whatever happened to the days of 0 day patches to fix even the smallest typo errors?

    5. Re:The quality? by bero-rh · · Score: 3, Informative

      I don't understand why a distro would bother shipping a kernel (or app for that matter) with a patch that was "ad hoc"

      Easy: Because a kludgy workaround is preferrable over a bug, and we don't always have the time to fix things the right way.

      I think you will find that most distros test their patched kernels thoroughly before releasing them to the world. This would include not only checking that the patch fixes the problem, but that it compiles on all supported architectures and does not jeopradise future modifications to the same bit of code or adjacent or related pieces of code.

      This is true - but it doesn't include checking for stuff that's just a workaround for a bug with a relatively bad code quality.

      Why they don't submit all the patches to the kernel maintainer I don't know?

      Because the guy who wrote the article either didn't check the facts or lied.
      At least as far as Red Hat is concerned, patches do get submitted.

      --
      This message is provided under the terms outlined at http://www.bero.org/terms.html
    6. Re:The quality? by Anonymous Coward · · Score: 0

      thats a crock. The current VM's beat redhats, and gcc-2.96 is a kludgy mess. Granted, it does have some important bugfixes etc, but also has problems and the patches are messy enought that many are unlikely to ever find their way into gcc.

      3.0.x etc. are much cleaner, and fix more problems than 2.96. There is still work to be done, but 2.96 is a dead end.

    7. Re:The quality? by Anonymous Coward · · Score: 0

      The current VM still does wierd things under heavy server load. You'll find that it fails RH's QA.

      Red Hat bashing is just so 2001, don't you know.

  3. These patches can hardly be critical by Yakman · · Score: 4, Interesting

    Based on that sample patch they gave it seems that an unpatched system allocates one more page of memory than it actually uses. Sure it's not nice in terms of resource use but it's hardly going to affect the operation of the kernel.

    Obviously with the number of people (especially "power" users) who run the "generic" kernel any critical flaws are going to get uncovered and patched. I think these kind of issues, that directly affect the stability of the kernel are more important than "clean up" type patches this article describes.

    Obviously they're nice to have, but it's hardly a priority when there are bigger fish to fry.

    1. Re:These patches can hardly be critical by GSV+NegotiableEthics · · Score: 1
      Based on that sample patch they gave it seems that an unpatched system allocates one more page of memory than it actually uses

      I'm no kernel expert, and this is no place for a kernel argument, but doesn't that code actually fail to reserve a page that it's supposed to? It looks like a potentially serious bug, though I'd have to see the reserve loop in context to decide one way or the other. What if eidx is stored somewhere as the highest reserved page, and some other code relies on that page being available for use? We'd have the kernel overwriting a page that may contain vital data.

    2. Re:These patches can hardly be critical by Anonymous Coward · · Score: 0
      Then the [unpatched] code is utter crap. Without
      a comment to the effect of your possibility, one
      must assume it is not the case.


      ps, I love any argument that starts, "this is no place for xyz" and then goes ahead and does exactly that. foo.

    3. Re:These patches can hardly be critical by Alan+Cox · · Score: 5, Informative

      Precisely. This patch was in fact submitted and the consensus was thats its tricky to prove correct, its 1 page of memory and it was better to wait for 2.5 before doing that work.

    4. Re:These patches can hardly be critical by GSV+NegotiableEthics · · Score: 1
      So if this patch, which was given as an example of an unsubmitted patch, a no-brainer, was in submitted and delayed for very good reasons, how can we get a handle on the magnitude of the problem, or be sure that there is, in fact, a substantive problem? I wouldn't expect that every single commercial distribution patch would be submitted to the kernel maintainers, for reasons that others have given on this thread. So is there really a huge amount of kernel patches that the lkml and kernel maintainers have the capacity to deal with, but are not getting submitted because kernel janitors don't have the numbers or time?

      I don't doubt that the kernel janitors does a great job and that it's a useful resource for kernel maintainers, but the article seems to have given a false impression of the nature, and possibly the scale, of the work to be done.

    5. Re:These patches can hardly be critical by jeremyp · · Score: 3, Interesting

      consensus was thats its tricky to prove correct, its 1 page of memory

      So nobody can actually figure out whether this eidx thing points to the last page or just beyond the last page. I find that quite worrying...

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
    6. Re:These patches can hardly be critical by Anonymous Coward · · Score: 0

      Newsflash!

      Time is a limited resource.

    7. Re:These patches can hardly be critical by jeremyp · · Score: 1

      And your point is?

      My point was that the purpose of any variable should either be obvious from the context or documented (heard of comments anyone?). e.g. if somewhere in this piece of code there was a line that said:

      eidx = NumPages - 1 ;

      or

      /* eidx points to the last page */
      eidx = obscure_variable_name ;

      you'd know whether the patch was correct or not.

      Alan Cox was effectively admitting that parts of the 2.4 kernel are very poorly written and OK this part might not be that critical, but I worry because it might be a reflection of the quality of the whole kernel.

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
  4. Everyone should start helping? by Anonymous Coward · · Score: 4, Funny

    Yeah, that's what Marcelo needs, every clueless dweeb bombing them with endless copies of "this rmap vm is so 1337 why dont j00 include it in 2.4.19!"

    1. Re:Everyone should start helping? by scorcherer · · Score: 3, Funny

      Andrea to Linus: "This VM is so 0x539 why don't j00 #include it in 2.4.10!"

      --

      --
      The Cap is nigh. Time to get a fresh new account.

  5. Patches might narrow focus by Krellan · · Score: 5, Insightful

    An example of why a particular patch might not be accepted, even though it seems like a "no-brainer", is because it would be for too specific a purpose. It might optimize the kernel for one particular application, at the expense of others. One of the best things about Linux is that it is general-purpose: suitable for everything from palmtops and embedded systems to servers and enterprise applications.

    A patch to aggressively cache the disk in memory, for instance, might be good for servers but not for embedded systems. So, I could understand how a patch would be rejected in this case.

    As an example, a company I once worked for made many minor changes to the Linux kernel. Since Linux is GPL, I made a webpage publishing these changes, and unlike the company, my webpage is still in existence!

    Splash Open Source Page

    These changes would be too narrow in focus to apply to the Linux kernel for everybody, so we never submitted them.

    1. Re:Patches might narrow focus by Anonymous Coward · · Score: 2, Insightful

      No, that should never happen. If a patch is good, but has narrow application, you #ifdef it and make its inclusion a config option.

    2. Re:Patches might narrow focus by pr0nbot · · Score: 0, Redundant
      An example of why a particular patch might not be accepted, even though it seems like a "no-brainer", is because it would be for too specific a purpose. It might optimize the kernel for one particular application, at the expense of others. One of the best things about Linux is that it is general-purpose: suitable for everything from palmtops and embedded systems to servers and enterprise applications.

      But couldn't applying certain kernel patches be made optional when configuring the kernel build? (I mean, in the same way that you can enable/disable SMP when making the source.)

    3. Re:Patches might narrow focus by Anonymous Coward · · Score: 0

      Why do people think you have to release the code if you change a GPL'd product?

      Unless you're distributing the kernel outside your organisation, you don't have to release all your code. This is how the GPL gets a bad rap. I mean, some people think that just looking at GPL code some how taints your organisation... sheesh

      Or course, in your case maybe your were releasing/selling a new kernel.

    4. Re:Patches might narrow focus by Anonymous Coward · · Score: 0

      these patches will certainly narrow your focus!

    5. Re:Patches might narrow focus by Anonymous Coward · · Score: 0

      So you end up with a soup of a kernel, with ten times the config options it has now, for rather dubious benefits to an unknown number of people.

      Well thought out.

  6. I am wondering... by hokanomono · · Score: 2, Insightful

    I am wondering if the distributors themselves don't have too much interest in offering patches upstream, not only with the kernel. Commercial distros have a chance to become "pseudo-proprietary" this way.

    I think this is a rather childish behavior and use Debian instead.

    --
    This sig is a true statement, but I cannot prove it.
    1. Re:I am wondering... by Anonymous Coward · · Score: 1

      You might wonder, and you'd be wrong.

      Read lkml thouroughly for a while and see why.

      Using debian or *bsd doesn't endow anyone with any moral superiority. Deal with it.

    2. Re:I am wondering... by mark_lybarger · · Score: 2

      that, or they have better things to do with their time. why would they want to expend effort making sure their patches get applied to the "official" kernel, when chances are, it won't (the rik vm comes to mind). the kernel source management system is in need of, and has been for quite some time, a serious re-engineering in and of itself. i think talks have begun on implementing semi-automated procedures, which is a step in the right direction. i think it needs to go much further, and faster. i imagine there are quite a few trusted individuals would could have write access to their maintained areas of the kernel source.

    3. Re:I am wondering... by Anonymous Coward · · Score: 0
      Well, I could spend time chasing down packages, or even compiling from source myself, but I'm busy. I have better things to do than to waste my time with this when the problem has already been solved.

      Have fun in dependency hell. I'll spend my time being productive, thank you very much.

    4. Re:I am wondering... by bero-rh · · Score: 5, Informative

      I am wondering if the distributors themselves don't have too much interest in offering patches upstream

      This plain isn't true, and whoever wrote the article on gentoo.org just shows he doesn't have the slightest hint of a clue.

      There are some good reasons not to blindly apply distributor patches into the main kernel (for example, we have quite a few workarounds for bugs, but the right way to fix them in the official kernel is to fix them, not to add workarounds), and there are some other things preventing other patches from getting in (e.g. Linus not having the time to handle them immediately).

      Other stuff is controversial (such as Red Hat Rawhide kernels putting in the Rik VM rather than the AA VM currently in upstream).

      The patches are sent upstream, but at least Red Hat doesn't believe in forcing upstream maintainers to accept all patches we send.

      --
      This message is provided under the terms outlined at http://www.bero.org/terms.html
    5. Re:I am wondering... by Strog · · Score: 5, Funny
      I'll spend my time being productive, thank you very much.

      Then why are you posting on /.?

    6. Re:I am wondering... by Anonymous Coward · · Score: 0

      You mean like when you need to upgrade libpng in order to install a package, which then requires upgrading the entire system and trashing it in the process? Yeah, great job with that one. That was the last straw with Debian for me, BTW, I've moved on to a real distribution (one with releases and QA).

    7. Re:I am wondering... by Arawak · · Score: 1

      The article was written by Dan Robbins, who is the head honcho for Gentoo Linux.

      And he certainly does have a clue.

    8. Re:I am wondering... by ezzewezza · · Score: 1

      Oh really? I had never noticed that. He is, in fact, the sole reason I walked away from Gentoo. I actually recommend people not read what he says as anything close to The Truth.

    9. Re:I am wondering... by evil_one · · Score: 1

      Alan Cox works for redhat, and he is using the Rik vm in his kernel series. That is a big part of the rawhide kernel situation.

      --
      Desperation is a stinky cologne
    10. Re:I am wondering... by dup_account · · Score: 1

      Is there an official kernel bug list (using bugzilla :) )? If there isn't, why not? Either way, I would think that an official bug must exist before a patch can be submitted. This way, the patch could be attached to the bug. This then gives the maintainers a clear list of all the bugs and how they are fixed. The bugs could be prioritized and voted on so that the maintainer can work from the highest priority down when determining how to spend his/her time.

  7. eR: no - These patches can be critical by dackroyd · · Score: 2, Insightful

    Actually the pre-patched code seems to be reserving one LESS page than is actually needed, and forgetting to reserve the last page required.

    Admittedly this can't be giving that bad an effect, as it would have been fixed in the main kernel but it looks like it could make the system go BOOM !

    --
    "Free software as in beer, copy protection as in racket" - Telsa Gwynne
  8. Not just linux by cperciva · · Score: 3, Insightful

    The same thing sometimes happens to the BSDs, where a bug will be fixed (usually in Open) and nobody gets around to integrating the same fix into the others.

    It seems to me that much of this could be automated... for each patch which gets added into the xBSD source tree, compare the contexts to the yBSD and zBSD source trees and alert a human if it looks like there's a match.

    But for this to be effective, I think that patches would have to have labels attached, since it's really only bug fixes for which this is necessary.

  9. Re:you get what you pay for ! by boa13 · · Score: 2, Informative

    > why doesn't someone start a Linux code review project ???

    Then, what is http://kerneljanitors.org, mentionned at the end of the article?

  10. Sounds like something from a big business to me... by Fortyseven · · Score: 5, Interesting

    Out of all the people involved with this on the planet, not one person could be assigned the task of doing this sort of sweeping up? Lots of busy folk out there, certainly, but those people were found to do the major stuff in the first place... And please, save the "well why don't you do it, smarty man?" responses for someone that sort of backwards logic will work on, thanks, I'm just making an observation, not an accusation.

  11. Re:Sounds like something from a big business to me by realnowhereman · · Score: 4, Interesting

    "Out of all the people who moan that these sort of issues should be fixed by someone else isn't there someone who could be ordered to do this in their own free time instead of having fun to fix this for small minded whingers like me?"

    Yes, fortunately the kerneljanitors project does this. And I think they do it out for altruistic reasons rather than because someone assigned them to.

    This is not backwards logic. I am not suggesting you do it. I am suggesting you stop whining about there being noone else to do it when you can't be bothered either.

    --
    Carpe Daemon
  12. O, Henry? by kzinti · · Score: 2, Offtopic

    There is an interesting, short story posted on the Gentoo Linux site.

    No, there's a short article posted on the Gentoo Linux site. A ``short story'' is a form of fiction. (Not that anyone at Slashdot cares, but some of us can't help tilting at windmills.)

    --Jim

    1. Re:O, Henry? by bero-rh · · Score: 2

      Actually the term was chosen correctly - "Red Hat does not submit its patches" is certainly nothing more than a piece of fiction. ;)

      --
      This message is provided under the terms outlined at http://www.bero.org/terms.html
    2. Re:O, Henry? by MrBlack · · Score: 1

      a "short story" MAY be a form of fiction, but what about a short "story"? Dictionary.com defines story as
      1. An account or recital of an event or a series of events, either true or fictitious

  13. Re:you get what you pay for ! by Anonymous Coward · · Score: 0

    You're bereft of clue, sir.

    Red Hat, for example, QA's it's products to death.

    And anyway, isn't BSD also free as in beer?

  14. Re:What do you expect without revision control? by boltar · · Score: 0

    Lets face it , 2.4 has been botched from the start so having Marcello simply continues that
    trend. Frankly I hope Linus learns some lessons from all this and makes the 2.6 rollout a far more
    professional activity and hopefully then 2.4 can be buried and forgotten.

  15. Re:What do you expect without revision control? by MartinG · · Score: 2, Flamebait

    And was Linus "too young and inexperienced" when he totally botched the 2.2.x series?? (arount 2.2.9 IIRC)

    What kind of quality assurance is that
    It isn't. Read the licence. It's called the GNU GPL. I'm surprised you haven't come across it before. There is no "quality assurance" If you need someone to hold your hand, or you are using Linux for production purposes, go and talk to Redhat or another distributor who will provide the quality assurance you seem to want. They test all their kernels with test suites and simulated production workloads.

    --
    -- MartinG To mail me: echo kewyjlcxyzvjfxbqwh | tr bcefhjklqvwxyz .@adgimnoprstu
  16. Issue by mrfiddlehead · · Score: 5, Informative
    Since the patch doesn't show how eidx has been calculated it's not immediately obvious that this patch should even be applied. That is, if the bug was subsequently "fixed" by incrementing eidx, when it was calculated, then this patch would make matters worse. So you'd have to go get the 2.4.3 source and verify that the calculation of eidx has not itself changed.

    Careful.

    --
    :wq
  17. Re:you get what you pay for ! by boltar · · Score: 0

    Yeah , BSD is so stable and professionally maintained. That would be why the floppy disk
    kernel crash bug (a mounted floppy with corrupt sectors will crash the kernel when read from)
    STILL hasn't been fixed because apparently "no one wants to do it" presumably because its not
    bleeding edge and exciting. To be honest I find the attitude of the FreeBSD maintainers to fixing
    bugs in legacy code worrying and has led me to not move my systems from Linux to FreeBSD as I
    was considering doing a while back.

  18. Re: plz don't make fun of my head brace plz, k? by Fortyseven · · Score: 0, Troll

    This is not backwards logic. I am not suggesting you do it. I am suggesting you stop whining about there being noone else to do it when you can't be bothered either. I also have no genitals, but seek a deep meaningful relationship with household appliances.

    Great idea, but I don't work on the kernel actively myself, yet others find the time to do it. It's not "whining" to ask why there's so many who are willing to work on the big things, but can't be bothered to fix the little things.

    Besides, you operate under the assumption that I haven't contributed anything to the kernel, which would be wrong.

  19. Re: plz don't make fun of my head brace plz, k? by Paelon · · Score: 4, Interesting

    Besides, you operate under the assumption that I haven't contributed anything to the kernel, which would be wrong.

    I think the assumption he operates on is that you can't be bothered to go through and submit patches, as you were complaining that someone should to do it.

    It's not an issue that people aren't working on the kernel enough, it's that there are too many mad scientists, and not enough henchmen.

  20. one possible explanation... by bob@dB.org · · Score: 4, Informative

    could be that whoever produced the patch (Mandrake in this case) got tired of having to submit it over and over, only to have it ignored bye (for example) Linus. i'm not complaining here, but i think at least part of the solution to this "problem" relates to how the patches are handled by the maintainers.

    --
    Acts@core.mailboks.com Acrux@core.mailboks.com Adam@core.mailboks.com Adar@core.mailboks.com Ada@core.mailboks.com
  21. Re:you get what you pay for ! by Anonymous Coward · · Score: 0

    Well, it has been fixed long ago, you still get annoying messages on the ttys unless you specifically turn them off. Either way, floppies are dead, I've not used them for 3 years.

  22. Re:you get what you pay for ! by boltar · · Score: 0

    It has not been fixed, I tested it on a 4.4 system last month and it died. And FYI floppies
    are not dead. Who cares whether you use them or not? The OS is for everyone , not just you pal.

  23. Not only the kernel.. by Anonymous Coward · · Score: 0

    How many of us haven't changed a little bit of code ('hey, this doesn't compile on my ObscureBox, just because of ..') and forgotten to submit it to the original author? There are hundreds of reasons - no time, unknown quality, no testing - why good patches get lost.. :(

  24. Patches? I don't need no stinkin' patches! by SpinyNorman · · Score: 1, Troll

    You've never used Solaris have you?

    The only thing I've seen that was more patched than Solaris were some of Novell's products.

    I'll stick with Linux, thanks.

  25. Not only kernel phenomenon! by Anonymous Coward · · Score: 0

    I'm convinced that happens with every project, I know it for sure for KDE.
    Perhaps someone could setup a service which extracts only the diff files from srpms of major distributions so that they are easily available to developers.

    1. Re:Not only kernel phenomenon! by bero-rh · · Score: 2

      Actually I commit every patch I make to KDE into CVS right away, unless it's something that simply doesn't make sense for everyone (like changing a default setting to match Red Hat Linux, or making stuff run through consolehelper which isn't avaliable on many other OSes (even other Linux distributions)).

      --
      This message is provided under the terms outlined at http://www.bero.org/terms.html
    2. Re:Not only kernel phenomenon! by Woko · · Score: 1

      Does using CVS as compared to the lkml method of submitting patches make a difference in terms of quality/stability of code and speed in which bugs get fixed?

      I figure since theres been so much speculation, its probably better to ask somebody whos likely to have done both.

      --
      ---
      Silence is consent.
  26. Automate it with Visual Sourcesafe by Otis_INF · · Score: 3, Interesting

    No, this is not a troll. Hear me out. This is an example how this work can be done using a good tool. I use Visual Sourcesafe here as an example, but any tool with the same functionality described below will do:

    Visual Sourcesafe has the ability to merge back changes automatically in branch B from branch A when they have the same parent.

    Say, you have the kernel v2.4.10. You branch off another project from it, call it v2.5.0. When you fix a bug in 2.4.11, you can merge it back into 2.5.0 without a hassle, it can be automated or you can do a visible merge when there are conflicts. The other way around also does work. So you can do this even further: branch of a prerelease 2.4.11-pre branch and a 2.4.11 branche from the 2.4.10 branch. Create fixes in 2.4.11-pre, merge them back into 2.4.11 after testing and when you're done, release 2.4.11 and get rid of 2.4.11-pre.

    This is inside a versioncontrol system, you don't have to hassle around with a lot of files you have to merge by hand which will increase the risk for errors.

    Of course, Visual Sourcesafe is just 'a' tool, you could use another which has the same functionality and is perhaps Open Source (I don't know of any but I'm sure others will). Doing this job by hand TODAY is erm... not understanding why we have computers in the first place. That's right: to serve mankind.

    --
    Never underestimate the relief of true separation of Religion and State.
    1. Re:Automate it with Visual Sourcesafe by crouchingpenguin · · Score: 2, Insightful

      I would stay away from visual sourcesafe if your repositories grow beyond a normal size. We had database corruption at a former company once a week as some of our databases where getting huge.

      We pushed and pushed for a change (2/3's of us wanted vanilla cvs over VS!) but management would never listen. And in fact we could not do any remote development with VS as it was not TCP aware... it only worked across MS networks (netbios). We later found another product that integrates TCP support into VS for you. But that added another point of failure for our remote developers (across the country). And those of us that preferred a unix workstation where SOL.

      Basically we never used any features that make VS compelling over cvs. And its lack of support for anything but Netbios is unexcusable (especially for java developers who need that cross platform support). The parent poster has probably never used another version control system, and is just pushing MS products.

    2. Re:Automate it with Visual Sourcesafe by ArtDecayed · · Score: 1

      Where I used to work we used to call VSS 'Visual Sourceunsafe'. We would always get database corruptions - and you know why? because the damn thing is based on netbios. This means that anyone browsing the network drive via Windoze Explorer can accidentally trash the source repository, by inadvertantly dragging and dropping a folder to the wrong place. (Which is a very easy thing to do with explorer).

      If you have a choice to use VSS - just say no.

      --


      'The best thing about deadlines is the wonderful WHOOSHing sound they make as they go by.' - Douglas Adams
    3. Re:Automate it with Visual Sourcesafe by ethereal · · Score: 3, Informative

      I'll agree with the versioning/branching comment, although I'd say that ClearCASE, cvs, pretty much anything would be more stable than VSS. Also, VSS doesn't make it nearly as easy to branch as ClearCASE - in VSS you seem to have to branch the whole project, in ClearCASE you can branch individual files and directories, so you never have to merge more than you need to.

      Unfortunately, the Linux kernel configuration management paradigm seems to be more of developers maintaining separate trees, and then handing off patches between trees instead of patches that move between branches. I think this is because for a branching scheme like ClearCASE, you need a centralized authoritative repository to say who has branched from where, and when. Linux has no central branch directory like that, and the patch format commonly used doesn't encode this sort of information. So you can't do automatic conflict resolution (or at least you can't do as much as you'd like) without a branch directory under central control.

      Branches make sense to me - I use them every day. But Linux, at the moment, isn't set up to use them very well. And in moving to bitkeeper they're going even farther down the path of handling trees rather than branches.

      --

      Your right to not believe: Americans United for Separation of Church and

    4. Re:Automate it with Visual Sourcesafe by Mr.+McGibby · · Score: 1

      The parent poster has probably never used another version control system, and is just pushing MS products.

      No, actually, he's just using it as an example:

      I use Visual Sourcesafe here as an example, but any tool with the same functionality described below will do

      --
      Mad Software: Rantings on Developing So
    5. Re:Automate it with Visual Sourcesafe by swagr · · Score: 1

      This is getting more offtopic but:
      you should check out SOS if you're still using VSS.

      --

      -... --- .-. . -.. ..--..
    6. Re:Automate it with Visual Sourcesafe by Anonymous Coward · · Score: 0

      visual source safe corrupts itself regularly.
      Use CVS, Clearcase or Perforce instead.

    7. Re:Automate it with Visual Sourcesafe by Anonymous Coward · · Score: 0

      AFAIK, Marcelo uses CVS.

      Linus is currently trialling BitKeeper (which does seem to be "better" than CVS although I don't have experience with it yet. I admin CVS) and AFAICS seems pretty happy with it.

      But source control does not guarantee some random patch from a distribution gets intergrated into the mainline linux kernel (I'm not implying that you said that, you didn't, just pointing it out).

      Cheers
      AndyM

  27. Re:What do you expect without revision control? by Anonymous Coward · · Score: 0

    Ok i understand what you say here.
    But I think that you should ask yourself "WHO AM I?"
    If you're not too stupid, you should come to the
    conclusion that you are just a poor slashdot reader,
    proudly playing Ktetris under X11, to impress your
    friends, using linux because it's just und4gr0unD.
    I bet you are one of these guys that make businesses
    like THINKGEEK possible. You probably think you matter,
    but actually you dont.
    Look your face in a mirror, think about how ridiculous
    you are.

  28. Vendor patches by Captain+Zion · · Score: 4, Informative

    Marcelo is certainly well aware of the existance of many patches that never get included in the main kernel tree, as he maintains Conectiva's kernel package which contains a large amount of vendor patches. He certainly has his reasons for not including the patches to the official kernel -- it certainly would make his life much easier if he reduced the number of vendor patches in Conectiva's tree applying some of these to the main tree. Marcelo is being very conservative regarding the 2.4 tree, and I believe that's the way it should be, considering it's a "stable" kernel.

    1. Re:Vendor patches by Anonymous Coward · · Score: 1, Insightful

      What good is a stable tree if all vendors have to apply 500 patches to it for it to be useful?

  29. GPL fault? by Anonymous Coward · · Score: 0

    Isn't this an inherent flaw of the GPL license? When you make a patch, you are not forced to tell the original author (you could even fork the development of a program without telling anybody).
    I'm sure there are licenses which don't have this problem. I'm not sure, but if I remember correctly QPL (Qt Public License) addesses this problem: you MUST forward all the patches to TrollTech.

    1. Re:GPL fault? by J'raxis · · Score: 1

      This is one of the problems Ive always had with the GPL (although I use it on my code; I think everything the GPL provides else outweighs this minor issue). A clause that requires one who makes public modifications to GPLed source should be required to, at the very least, make a good effort to contact the original author/maintainer and supply him with the modifications. Now, RMS is right that having this as an absolute requirement is bad if the original maintainer disappears, it would suddenly lock people out of using their code. Therefore, one should merely be required to contact the email or website credited in the copy of the source they are attempting to modify if the address is dead, the requirement is nullified.

  30. These are no special purpose patches by gotan · · Score: 2

    The article is concerned with patches that big Linux-distros apply to their kernels. The kernels they put in their distributions, not special purpose kernels. Redhat (and other Linux-distributors too i suppose) do extensive testing on those kernels before they get included with their distributions. So if they find a bug and patch it, or if they find that a patch has issues in testing (and leave it out) it would benefit the whole Linux-Community (themselves too, since they would have fewer patches to manage) if that information somehow made it back to the kernel-maintainers.
    --

    --
    "By the way if anyone here is in advertising or marketing... kill yourself." -- Bill Hicks
  31. It would make things *easier* for them by gotan · · Score: 3, Insightful

    ... because once their patches are included they wouldn't have to maintain them themselves. So i don't see, how it could be a waste of time to send obvious patches in, or alert the kernel-maintainer of problems with recent patches that came up in their testing.
    --

    --
    "By the way if anyone here is in advertising or marketing... kill yourself." -- Bill Hicks
    1. Re:It would make things *easier* for them by mark_lybarger · · Score: 2

      the kernel maintainers don't respond. only the persistant get their code included. the distributions most likely choose to spend their time on polishing and testing.

  32. Re: who maintains it? You? by fferreres · · Score: 1

    I'd tend to agree, but it easy to say "accept everything" good disregarding who and how it will be maintained. I think that bug fixes beign dropped are a problem, patches not beign included DEPENDS. If they can't maintain it, Linux stalls and we all lose. So the problem is, as Linux said (and i didn't see it inmediately) sending the patch to the people that actually maintain the stuff beign patched. Just my 0 cents (i am broke)

    --
    unfinished: (adj.)
  33. Should have vote for kernel features by Anonymous Coward · · Score: 0

    It would be nice to have a vote for Linux kernel features similar to the way Sun has a vote for Java bugs and features.

    In most cases these patches have already been written - it's just a matter of applying them and dealing with the fallout. You've got to admit, Linus' choices about what goes into the kernel is pretty darn arbitrary.

    Realtime patches to the stock kernel would certainly get my vote.

    1. Re:Should have vote for kernel features by ethereal · · Score: 1

      That would be a neat idea in your Linux distribution - why don't you go and do it?

      For now, the "real" Linux is a benevolent dictatorship of Linus for Linus (and sometimes not all that benevolent either :). I'm not saying this is a bad thing, it just means that what you get is exactly what Linus wants, either because he likes the idea or because people he trusts talked him around to liking it.

      I'm not sure he could maintain that oversight if people were voting in changes all the time. Although I could see a system where various patches get votes, and then the winner(s) are given a chunk of Linus precious time for him to consider them. The big stumbling block in the Linux kernel process at the moment is not lack of patches, it's lack of time for Linus to consider them and integrate them.

      --

      Your right to not believe: Americans United for Separation of Church and

    2. Re:Should have vote for kernel features by Anonymous Coward · · Score: 0

      Kernel preemption is already in 2.5.x. A realtime stock Linux kernel could be on the horizon.

      But servers don't need such patches. So it's a disablable option.

  34. Re:DOES LINUX REALLY WORK? by Anonymous Coward · · Score: 0

    It works best in "Windows Compatability Mode" with Microsoft software. A quick way to check - right click on My Computer|Properties. If it says Windows - you are okay. This is the correct Linux distribution.

  35. another possible explanation... by Eugene+O'Neil · · Score: 1


    Another possible explanation is that there are a small group of whiny people who are tired of Linus controlling the linux development process just because he happens to have invented it in the first place, and are waging a propaganda campaign to replace him with a committee that will rubber-stamp every ill-concieved patch submitted from anywhere on the internet, with little or no review. Goodness knows, any time any random undergrad or script kiddie changes a few lines of code in the linux kernel, it must be an incredible improvement that we cannot live without. What does Linus know about kernel development, anyway?

    1. Re:another possible explanation... by opkool · · Score: 1

      Absolutely.

      And then, people in black helicopters, payed by the Melissa and William Gates Foundation continuosly harass Andrea, Alan and Linus, so the Kernel work gets disturbed.

      And there's a special comission of the CIA that manipulates the coffee beans used by those people, so they are decafeinated cofee beans, agravatting the situation.

      Nevertheless, RMS is behind the situation. He is orchestrating an alternative-media based advertisement campaing that will reveal the isze of Bill's and Steve's undergearments. This will surely make MS developers stop fixin bugs and go back to develop new features and buffer overflows in Microsoft applications.

      Also, a team of mutant ninja turtles ha been seen with spray cans on Redmond, WA, trying to change (defacement) all the advertisements from ".Net" ot ".Slash".

      Goodness only knows who will win this battle. But rest assured, it will show up on the Season Finale of X-Files.

  36. Re:For anyone running at 1024x768 or lower.. by scorcherer · · Score: 3, Funny

    I was running at 80x34 first. I had to maximize the terminal to 129x44 to be able to read it. I doubt your terminal is even close to 1024x768 characters...

    --

    --
    The Cap is nigh. Time to get a fresh new account.

  37. This hardly applies to just the kernel! by hardaker · · Score: 3, Insightful

    As a maintainer of a package which is distributed via many linux and *BSD distributions, I'd like to complain on the behalf of software authors everywhere. The linux distributions are nutoriously bad about applying patches to their rpms (say) but never submitting them back to the authors of the package themselves. The BSD distributions are just as bad. The infamous FreeBSD port tree also frequently houses patches that never make their way back to developers.

    I'm not sure how this could ever be considered a good thing, as the project authors must spend time searching through distribution source releases looking for patches, which takes time. The distributions must continually apply their patch to a changing source tree (and I'm sure it'll eventually break and need reworking), so they loose time as well. This is one case where communication really could be a very positive thing.

    sigh... It's about time I went to search for patches again...

    --
    The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
    1. Re:This hardly applies to just the kernel! by cobar · · Score: 2

      Not to deny that your comments are valid, but in some cases, what I've heard is also that sometimes the authors won't apply patches sent by BSD package maintainers. In some cases the authors won't accept patches because they're only interested in Linux. Certainly both sides need to work harder, but it's not just the port maintainers' fault.

    2. Re:This hardly applies to just the kernel! by teg · · Score: 2

      FWIW, I'm sure that varies. I certainly try to upstream generic patches myself for the packages I maintain at Red Hat for Red Hat Linux, and many others try to do the same. When it gets accepted, there's less maintenance for me.

    3. Re:This hardly applies to just the kernel! by hardaker · · Score: 2

      I have no doubt that some maintainers are only interested in platform X. However, in my case at least, that's not true at all (since we advertise it as being supprted on FreeBSD, etc). Typically the only changes I ever reject are ones which break other architectures due to impropeer ifdeffing. That's a whole other problem, actually. Most people really aren't expereienced in writing portable code.

      --
      The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
    4. Re:This hardly applies to just the kernel! by hardaker · · Score: 2

      The first time I looked into a redhat distribution, I was amazed to see 3 patches I'd never seen before. Since then I've tried to make it a point to check what the maintainers there have done every once in a while.

      On a side note, the redhat bug database really needs a way for me to be able to say "send me mail for any problem from package X". Sure, you can subscribe to a particular bug, but I need to subscribe to an entire package. Last I checked, this isn't possible. It would certainly be an easier way to help keep package authors in sync with the distribution packagers.

      --
      The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
    5. Re:This hardly applies to just the kernel! by Anonymous Coward · · Score: 0

      Example, please?

  38. Re:you get what you pay for ! by James+Youngman · · Score: 1
    I followed the link to the kerneljanitors website. It's an interesting project. It suggests the auditing of a lot of things, e.g. all code paths including functions get_X() should also call release_X() and so on.

    Interestingly, however, much of this stuff can be achieved with LCLint, which if I recall correctly has a mechanism which can be used to extend it to statically check almost anything. Now that sounds like a good idea (tip: if running lclint for the first time on a program, use the -weak command-line option!)

  39. If Redhat and Debian had a fight ... by zangdesign · · Score: 2

    If vendors have semi-proprietary systems by virtue of applying patches that aren't making into the mainstream ...

    And if one wants to ensure that one is running the most stable, but well-patched system ...

    Then who has it - Redhat, Debian, Mandrake, etc.?

    Or is this even a fair comparison? And should one make this comparison when planning a Linux install?

    --
    To celebrate the occasion of my 1000th post, I will post no more forever on Slashdot. Goodbye.
  40. Re: plz don't make fun of my head brace plz, k? by Anonymous Coward · · Score: 0

    That was what his original post was trying to say, before it was labeled as whining.

    People on this board get too defensive and judge too quickly. The original poster even tried to warned not to take the dumbass approach ("Why don't you do it and stop whining") that he knew he would get from people not reading his post, and he got it anyway.

    And that post was modded up?

    The comprehension and analytical ability of the readers and moderators here astounds me at times.

  41. Agreed on the article by clump · · Score: 4, Interesting
    I would have to agree with Bero in that the article is a tad mislead. If you listen to the mainstream Linux media as of late you would likely believe that there is a huge wealth of wonderful patches that are being dropped by Linus. This just simply isn't how kernel development works.

    From Kerneltrap's wonderful interview with Andrew Morton:
    there has been quite a lot of talk lately about kernel development processes, patches getting dropped, etc. I think it's all terribly overblown. The people who aren't being heard (and who aren't even bothering to comment) are the _users_ of that system - the developers. We're all just rolling our eyes and waiting for it to stop. The current system could be more efficient, but it mostly works OK; it is very unlikely to change and anything like a kernel fork is hugely improbable, even if Linus gets bored of it all and decides to do something else.


    The above article should be required reading for those following/concerned about kernel development.
  42. Mod this AC up: Re:Vendor patches by opkool · · Score: 1

    What good is a stable tree if all vendors have to apply 500 patches to it for it to be useful?

    Exactly.

    Mod this A.C. up!

    1. Re:Mod this AC up: Re:Vendor patches by ChadN · · Score: 1

      Because vendors want features, FEATURES, *FEATURES*! They dump in XFS, low-latency, JFS, ALSA, etc. etc. which is fine if THEY are willing to support it. The mainstream kernel would rather wait to accept patches when they have a clearer idea of how maintainable things will be in the long term. Eventually, many or most of the popular and useful patches do get in. Linus believes very much in the vendor model; it allows him to focus more on future development rather than current featuritis.

      --
      "It's overkill, of course. But you can never have too much overkill." - Anonymous Slashdot Coward
  43. Thats absurd by clump · · Score: 4, Insightful
    I am wondering if the distributors themselves don't have too much interest in offering patches upstream, not only with the kernel. Commercial distros have a chance to become "pseudo-proprietary" this way.

    I think this is a rather childish behavior and use Debian [debian.org] instead.

    It is extremely difficult to be proprietary when you are bound by the GPL. If your referring to Red Hat's using Rick's VM, there would be no stopping you from nabbing a .srpm and making a diff.

    I also use Debian and must tell you that they make changes to the kernel. That is good, however. It just isn't practicle for a distro to try and update to the latest kernel. Plus if you like me, the first thing you do on any distro is nab a tarball from ftp.kernel.org.
  44. Re:DOES LINUX REALLY WORK? by Anonymous Coward · · Score: 0

    Define "work", "hard to use", and "tried", please.

  45. Glad I'm not the only cranky one by Anonymous Coward · · Score: 0

    I thought I was the only one bugged by "story" versus "article".

    Where has the art of editing gone? Is grammar and such not taught in schools anymore?

    Oh, wait, these are from people who have degrees, meaning that their university skimped on things. Probably made them take an intro English course, and that's it.

  46. QA by Aapje · · Score: 2

    What kind of quality assurance is that
    It isn't. Read the licence. It's called the GNU GPL. I'm surprised you haven't come across it before. There is no "quality assurance" If you need someone to hold your hand, or you are using Linux for production purposes, go and talk to Redhat or another distributor who will provide the quality assurance you seem to want. They test all their kernels with test suites and simulated production workloads.


    Open source software is no excuse for a lack of QA. There are people who want to use Linux for serious work, there should be a -stable that is truly stable. That's the point of concurrently having a 2.4 and a 2.5 release. Red Hat's job is to create a distro from various components and test them together. They can't be expected to transform an unstable kernel into a stable one. Their job is hard enough as it is (keeping track of hunderds of packages is not easy).

    Of course there is always a compromise between stability and (fast) progress, the *BSD's are far more focussed on stability. IMHO Linux is focussing far too much on progress, creating great instability. The newest developements belong in the unstable releases for the adventurous to use and test (new VM's for instance). Kernels in the 2.4.x tree should be well-tested before they are released into the open.

    --

    The Drowned and the Saved - Primo Levi
  47. Re:Patches? we don't need no stinkin Patches! by rfphill · · Score: 0, Offtopic

    Geez, a little warning would be nice... That link just about got me fired. Seriously... Now pardon me, I have to go gouge out my eyes...

  48. This is why *linux is dying by Anonymous Coward · · Score: 0

    This is one of the reasons why *linux is dying:
    the Linus is God syndrome gating the progress
    of computer science has finally been publicized.
    The genie cannot be put back into the bottle.
    More and more people will realize that *linux
    is nothing new and in fact is playing catchup
    to BSD in stability and performance in vm and
    networking. This is despite a decade of chest-
    thumping about how reliable *linux is---the truth
    finally comes out about the antiquidated vm and
    networking instabilities.

    1. Re:This is why *linux is dying by Anonymous Coward · · Score: 0

      Progress of computer science?

      Deary me.

      You're bilnd hatred is showing, sport.

    2. Re:This is why *linux is dying by Anonymous Coward · · Score: 0

      "Your", of course. Sheesh.

  49. Shameless Gentoo Plug by Hornsby · · Score: 1

    I just wanted to mention that Gentoo is the coolest distribution that I've ever tried. It has quite a time consuming install process because everything is compiled from scratch; however, that's the power behind the distro. _EVERYTHING_ is compiled specifically for your hardware, and you specify global compiler optimisations that you want applied to each and every package. The package manager, portage, is based on the FreeBSD port system, but it's rewritten in Python with many added features (i.e., better handling of dependencies, fine-grained package management, "fake" (OpenBSD-style) installs, safe unmerging, system profiles, virtual packages, config file management, etc...). It has the ease of Debian's apt mixed with the better performance of custom compiled binaries, and let me tell you, it flies! It includes custom patched kernels with the preemptive, scheduler, XFS, and many other features already patched in! Running Gentoo and Win2k Pro dual boot on my machine, I can tell you that Gentoo (w/ KDE2) is noticably faster and more responsive, and I never thought I'd say that about X under Linux, but it's true! If you haven't done so, try Gentoo today!

    --
    A musician without the RIAA, is like a fish without a bicycle.
    1. Re:Shameless Gentoo Plug by dvNull · · Score: 1

      I am a Gentoo user since rc5

      In simple terms : Gentoo rocks.

      The package system is amazing. I had apt-get like features, FreeBSD ports like features, its compiled for YOUR system. (there is a binary distro in the works) and most of all, the people in #gentoo arent the elitist bastards you find in #freebsd and #debian. You ask for help, you get help.

      I also try to support the project in any way I can. I cant code. I dont have bandwidth to give. I donate the only way I can, which is to send money or if I have spare computer parts which can be used by the Gentoo team, I donate those as well. And I try to tell as many people as I can about Gentoo.

      dvNull

  50. Re: plz don't make fun of my head brace plz, k? by Fortyseven · · Score: 1

    It's not an issue that people aren't working on the kernel enough, it's that there are too many mad scientists, and not enough henchmen.

    Actually, this is almost exactly what I was trying to say. :)

  51. Re: plz don't make fun of my head brace plz, k? by Fortyseven · · Score: 1

    Bless you, sir. *sniffle*

    :)

  52. What about vendor branches in BitKeeper? by Mulligan · · Score: 2, Informative

    It seems like it would be trivial for vendors to maintain their patches in their own BitKeeper repository. If done consistently across vendors, it would allow the kernel maintainers to merge patches into the standard distribution with minimal effort.

    Moreover, this would probably make it easier for anybody to track different sets of patches. Imagine being able to use an SCM tool to help minimize the pain of tracking patches through several kernel revs. Many of us do this on a daily basis anyways and would love to see such tools used properly in the open source community.

  53. Exactly :) by Otis_INF · · Score: 2

    I've used CVS and VSS, plus some own made tools but these were never up to par with what other tools could offer. The mention of sourcesafe was indeed as an example. I know VSS isn't made for very large projects, even microsoft uses a different system internally afaik, but the functionality it has (i.e. the branching/merging) is IMHO what should be used in Linux development/management.

    --
    Never underestimate the relief of true separation of Religion and State.
  54. This would never happen in *BSD... by pschmied · · Score: 3, Informative

    ...And no, I'm not trolling.

    People talk about the exchange of ideas between the BSDs and Linux, and I think that a core group like FreeBSD's would be a great idea for the Linux world.

    It seems like we are running into more and more scaling issues with the people behind Linux than with Linux itself. This is no fault of theirs. Linux is too big a project for a "the buck stops here" kind of person like Linus.

    Obviously, Linux is Linus's brainchild, and he can do whatever he likes with it (yes, I know the GPL allows forking, but think of how a kernel fork would be recieved on /.).

    I don't believe that Linux can attain the kind of consistency (and that is not the goal anyway) of FreeBSD or NetBSD, I think they might be able to fix some of the kernel patching and architecting problems if an elected core team could work on this.

    -Peter

    1. Re:This would never happen in *BSD... by renoX · · Score: 2

      Plllleeeeaaasssee!
      There has been already reports of bugfix in one BSD distribution which hasn't been reported in another distribution.

      So the "this would never happen in *BSD" is just wrong, and presumptuous.

  55. Anyone but me get the Amiga refference? by Anonymous Coward · · Score: 0

    Come on people it was a cute reference. The Amiga was the best system of it's day by far. I wish it had lived.

  56. Re:What do you expect without revision control? by Anonymous Coward · · Score: 0

    Of course, that cuts both ways, Mr Computer Scientist.

  57. No revision control, no peace. by Anonymous Coward · · Score: 0
    As much s I love Linux, the truth is that it really needs to make use of revision control and configuration management software. Allowing key companies and developers to commit ug fixes directly would avoid the recent problems. As another example look how the release of 2.4.18 was totally botched.

    I'm sorry but I never had confidence in Marcello. He is too young and inexperienced to be a release engineer. He has made several big mistakes in his short tenure. And his lame excuse was even worse than the mistake:

    ``Don't worry, it doesn't really affect x86 machines only other architectures.''
    Whoa! What kind of quality assurance is that !!? I mean let's get it right Marcello -- ZERO DEFECTS. No excuses.
  58. Re:Patches? we don't need no stinkin Patches! by Anonymous Coward · · Score: 0

    So looking at that picture violates your company internet usage policy but reading Slashdot doesn't?

    How odd.

  59. Re:What do you expect without revision control? by Anonymous Coward · · Score: 0

    The GPL is no excuse to throw lame code out at the world. It's a license, pure and simple. Read the GPL, I'm surprised you haven't come across it before. If you need someone to hold your hand or better yet read it to you, I'm sure we can find someone who can help you.