This week at LWN: The 2006 Ottawa Linux Symposium
|
|
|
Comments (50)
eye-opener
Also, make sure you read stable_api_nonsense.txt referred to in the slides (link: http://developer.osdl.org/dev/robustmutexes/src/fusyn.hg/Doc...). A great read as well.
"Yes, that's right, we support more things than anyone else. And more than anyone else ever has in the past."
I posted that there Kroah - Hartman talk to LXer when I read it!!! I kept looking for it here in the news page thinking that someone would recognize its brillance but --- NOOOOOO!!
Sheesh!!!
(Just giving you guys a hard time!!!) ;-)
Don K.
I searched through the 300+ stories that were rejected between now and Jul 20 (before the keynote) and didn't find any with "Kroah" in them. (That's about as unique a word to this story as I could think of). I don't know what happened.
Check my lxer page. It's listed there. Maybe I'm not understanding something correctly?? If so, I'd like to know . . . .
Don K.
I'm the one who is not understanding. I went looking through the deleted stories because you said, "I kept looking for it here in the news page thinking that someone would recognize its brillance but --- NOOOOOO!!"
However, when I look at your page I see the title, "Myths, Lies, and Truths about the Linux kernel", which appeared on the Newswire on July 26, posted by you.
I don't understand the complaint -- how can it not show up on the "news page" and yet also have been posted?
Now, I'm not sure that I understand the distinction between the newswire and LXer Linux News. I had thought that this would go on the LXer Linux News front page which is where I was looking for it. I completely missed the newswire. Pardon my confusion. Maybe a word of clarification within the story submission guidelines as to the distinction between the two (if there is any) would be helpful here.
Don K.
The Newswire is just that big column of news scrolling down the front page. Your submission showed up on the front page in the middle of the night, U.S. time. With approximately 2 stories popping out at the top of the page every hour, it would have scrolled off the bottom in about half a day.
Your submitted story is part of the database, accessible at http://lxer.com/module/newswire/view/65830/index.html
BTW, "Ottawa Linux Symposium 2006 Keynote Presentation about the myths and truths of linux kernel development" is even more understated than Corbet's description. Neither gives a glimpse of the sledge-hammer blows Kroah-Hartman used against those myths. ;o)
Grouch, I thank you and hope you understand my confusion. For future reference, is it necssary to have two newswires repeating each other on the same page? Seems a little redundant . . . .
Sorry to have hijacked this thread. I hope we can continue on with the discussion of Kroah-Hartman's presentation.
Don K.
http://www.linuxsymposium.org/2006/linuxsymposium_procv1.pdf
It starts on page 441 of the pdf.
Read it and then consider how it can be reconciled with some of the "truths" we hold so dear:
1. With many eyeballs, all bugs are shallow.
2. Open source code quality is better than proprietary due to better peer review.
3. Open source security is better because anyone can see the flaws and report them.
Dave presents many examples of FOSS code doing egregiously improper things that even the authors didn't know about. And it's not like these are obscure programs that get little use or attention. And if these, relatively simple code bases have these problems, I shudder to think what could lie undiscovered in Firefox and OO.o.
I've heard this presentation refered to as "humorous". I don't find it funny at all.
Better is better, not perfect.
Still, some of this, I believe can be traced back to Computer Science programs that preach some nonsense about how it is bad to do "premature optimization."
Of course, that inevitably gets carried to, "well, everything is so fast these days, a cycle here or a cycle there won't matter"
which leads to simply not paying any attention.
You know where that leads.
Steve:
What Dino said. :)
Look at it another way. If the open source code (freely available to all to review), has so many problems, think how bad the closed code (with a much more limited review) must be.
I'm not ready to just discount the embarrassing evidence like that. After all, we're not talking about a few cycles here or there. We're looking at long-standing pathological behavior in ubiquitous FOSS apps which apparently no one has noticed in... how long? 'Perfection' isn't exactly in this neighborhood.
At any rate, this is something that can be tested. There is really not much that Dave did that required the source code. Strace, ltrace, and systemtap work just as well on closed source binaries as open.
Closed source does not completely obscure black box testing.
For example, when Michael Zalewski got the radical idea of actually *testing* how FOSS's most popular desktop app and security darling actually handled unexpected (random) input ( http://tinyurl.com/43dm8 ) he found a similarly embarrassing situation in which FF blew up in seconds or minutes whereas IE could handle hours of testing without suffering potentially exploitable crashes.
Took the gloat out of my sails for a while. Then again, maybe they don't teach basic input validation any more, either.
I certainly don't mean to diminish the importance of good design and validation for free software projects.
I very certainly do not defend laziness in that regard.
Wish I knew how many times I've posted (sometimes with very nasty flames as my reward) that we should not get complacent, that there is nothing about free software or linux or anything that makes us immune to bugs, stupidity, or vulnerability.
Let us not forget...
Some of the best software ever written was written by employees of companies writing closed-source proprietary software.
Remember Y2K? At least part of that problem came about because there were mission critical systems out in the world that had been running with relatively few changes for thirty or more years. No -- of course I don't mean continuously. But in this era of constant re-factoring (I sometimes think initial design should just be called pre-factoring or preliminary-re-factoring), that is pretty mind-boggling.
There is no substitute for good practices applied by conscientious people, whether the source is open or closed.
I think open source has additional benefits, but it still depends on quality people.
Ok, I'm lost again. What two newswires? There is the Newswire (main, wide column) and the RSS version with just title, date and discussion count (small, right-hand column).
Don K.
hmmmm.....I rather missed the point about stable APIs
12 earlier comments in the full thread.
No, I wasn't. You were claiming that stable APIs could "be stable without being forever frozen", whatever the hell that means. You claimed Kroah-Hartman introduced his own myth.
IF you read his presentation, then you know that he compared Microsoft's stable API to Linux's constantly changing one.
Suddenly, you introduced IBM and Sun, as if they haven't recognized that Linux is on track to displace all of the old UNIX systems in every place.
dinotrac: >"They are arguing from a standpoint of what's best for kernel developers, which may or may not be what's best for Linux and those who wish to use it."
It appears that the focus of Linux developers is what's best for Linux and Linux users. I don't see where you get your argument to the contrary.
>And as a bonus, Linus' crew will review your driver for potential problems before it's put on kernel.org, and they do your interface maintenance too!
That is actually part of the problem. Bad drivers can adversely affect the reputation of good hardware. A manufacturer might not want others messing with its code, even if they don't mind making it open.
Sounds odd, but I can understand it.
As to the proprietary core within a GPL'd shell -- there is nothing in the GPL to make that illegal if you are the owner of the shell IP.
I welcome you, however, to provide some basis for calling the proprietary core illegal, given this fact scenario:
1. The shell compiles and links without the core 2. The core can interact with a previously compiled and linked shell 3. The core uses no headers, etc, from GPL'd code other than the shell, for which the core developer is the copyright owner.
Just exactly whose rights are violated? Who has standing to sue anybody in such a sceneario? For that matter, who do you sue? The hardware manufacturer for writing code that doesn't violate anybody's license? Maybe it's the user, for combining the pieces in a way that makes you unhappy....except that.... The GPL gives users lots of freedom to use GPL'd code so long as they don't distribute it.
Quoting:I welcome you, however, to provide some basis for calling the proprietary core illegal, given this fact scenario:
From teh GNU GPL FAQ at http://www.gnu.org/licenses/gpl-faq.html#MereAggregation
Quoting:If modules are designed to run linked together in a shared address space, that almost surely means combining them into one program.
The GPL'ed wrapper shell for video drivers has been designed to work specifically with the binary blobs. It's not a reasonably common interface. Therefor the divers and GPL shell can be considered to be one program, which should as a whole be under the GPL. The FAQ also says:
Quoting:What constitutes combining two parts into one program? This is a legal question, which ultimately judges will decide.
This hasn't happened yet. Nvidia believes that what they do is legal. Most kernel devs think it's not. Unfortunately the kernel devs can't/won't sue over it (probabely lack of $$). Someday it will be decided in court and I personally think that nvidia will loose.
Any one of them *could* file suit against the makers of binary kernel modules wrt their own copyrighted code, but they don't out of respect for project policy.
This is not to say that Linus likes binary modules. He certainly doesn't go out of his way to make things easy for their creators. The lack of a stable driver api is but one example of that. But he does not believe in going after them legally.
The other problem is that one needs a legal basis for saying something can't be done.
You must have a breach of contract, a violation of law, and ifringement of rights, etc. In the case of contracts it gets tricky because a contract term may not be legally enforcable.
The fact scenario I set up, for example, exceeds no legally granted rights.
The one reasonable question would be whether you could distribute GPL'd code together with the proprietary and closed binary core that gets invoked by the GPL'd shell.
The GPL seems to say that you can't. On the other hand, I'm very skeptical that a court would say that you can't, for example, include the binary on a separate CD in a physical distribution or separate directory in a downloadable distribution.
@steve: Even Linux is bound by the GPL. If he says binary blobs are okay, but a judge rules otherwise then he's out of luck. His statements that binary blobs are okay could be brought up in court to state the "intent of the author" and would be weighed in by the court, but the judge has the final call.
@dino: If the core and the shell are designed to work together pretty much exclusively the it can be seen as a single program. If a judge says that is the case, then the core would have to be GPL'ed.
But anyway, both sides of the arguement can be discussed indefinately. Only a judge can bring clarity, everything else are just opinions.
It doesn't matter how you see it. You breach, violate, or infringe. So they can be seen as a single program? What does that breach, violate, or infringe? Who is the breacher, violator, or infringer?
As to opinions -- yes and no. If somebody wishes to go into court and file a complaint, they will be compelled to specify the elements of the offense. If they cannot do that, the complaint will be tossed.
So, let us put it this way:
If you were going to tell a judge that some action violated some law, breached some provision of some agreement, or infringed some right, what action would that be? What provision, law, or right would be at stake? Who would be the violator?
if you can't answer those questions, you can't even get into court.
And in user space.
Actually, do proprietary drivers that use DRI have a problem at all? The drm kernel module just does relatively basic things with the hardware that need to be done from kernel space, right? That shouldn't be particularly revealing of the hardware or subject to third party licensing. So GPLing that part shouldn't be that much of a problem.
And Xorg is under an X11 license. So the proprietary user space module is a slam dunk.
NVidia does not use DRI.
How does ATI's fglrx handle things?
And let us not forget that the GPL itself permits interaction between GPL'd and non-GPL'd code over an interface that is in the nature of I/O.
Quoting:A judge can force Linus and the other kernel developers to sue binary module distributors?
No, but there are quite a few kernel devs out there who think binary blobs should be illegal, regardless of what Linus says. One of these might eventually sue and get the matter in front of a judge.
So, let's say this happened. Say some guy who contributed a bit to the block layer code, which has nothing to do with video, decided to sue Company X over copyright infringement in the form of a proprietary video driver module. Exactly how would that work?
It wouldn't.
There is no copyright infringement if Company X made no use of the guy's work. He might try to sue for a GPL violation, but he's got a different problem.
He's got to figure out who violated what.
For example, was it the folks who wrote the video driver?
Maybe -- if there was some reason why they had to include a header with some of his (sorry for the presumption, but, in the world of kernel coders, it's pretty safe) code in order to compile their module.
But probably not:
1. The header might not rise to the level of authorship needed to trigger copyright protection. Headers tend to be pretty straightforward sets of definitions and the like. If it isn't protectable, the coder doesn't even need a license to use it.
2. The GPL grants coders the right to use the code. You or I can develop pretty much anything we want and incorporate GPL'd code to our heart's content. All the really snarly stuff happens when you try to distribute the code. That's when all of the no-binary without source and freedom to re-distribute stuff kicks in.
3. Although the coder might need to use GPL'd block code to ensure that his driver works (You know -- run linux and make sure everything happy) , that's ok. The block code developer granted a GPL license to use his code. The coder is also free to put his binary driver -- the one with no pretectable GPL'd code -- up on an ftp server all by itself. Nobody violates anything by downloading it.
How about the distributor?
Now the distributor seems to violate the GPL...presuming that the proprietary driver is distributed along with Linux. The license pretty clearly doesn't permit that.
I suspect, however, that a court would put some boundaries on that. For example, they might permit a separate DVD, or, if need be, a separate shrink-wrapped package, or what have you. From there, though, it becomes a slippery slope from the legal standpoint -- and the law can be surprisingly practical this way -- If you can throw a second package in the envelope when you ship it, what's wrong with including an extra DVD in the original package? if you can throw in an extra DVD, why not simply set up a separate directory, etc. Or, a court might decide that the distribution provisions with regard to including non-infringing proprietary software with GPL'd software to be unenforceable.
At any rate, a genuine claim of license violation could be made against the distributor. That goes out the drain if the distributor doesn't distribute the binary driver, relying, perhaps, on the coder's ftp site.
Well, then, how about the user who goes up to the coder's ftp site and pulls down that nasty old driver?
Sorry. GPL permits that.
Quoting:Exactly how would that work?
What dino said, there's no infringement of X's work. And contrary to what dino says he can't sue for GPL infringement. There's no such thing as infringing the GPL. There's only copyright infringememnt. The GPL merely determins what is and is not a copyright infringement.
Quoting:The header might not rise to the level of authorship needed to trigger copyright protection.
The Linux headers clearly fall under the GPL. That's exactly the reason everybody tries it with a GPL'ed shell around a binary blob.
Quoting:The coder is also free to put his binary driver -- the one with no pretectable GPL'd code -- up on an ftp server all by itself. Nobody violates anything by downloading it.
There's no such thing as "no protectable GPL code". If it's not protectable then it's public domain and the coder is in the clear. If there is GPL'ed code then he's distributing, thus infringing copyright. The downloaders are *always* in the clear since the act of downloading it isn't distribution.
Quoting:Now the distributor seems to violate the GPL...presuming that the proprietary driver is distributed along with Linux. The license pretty clearly doesn't permit that.
There is no difference between the distro distributer and the coder who uploaded the binary blob. Either it's copyright infringement for them both or it isn't. I think you are referring to the reason why video drivers have to be downloaded separately. That's not about GPL issues but it has to do with the fact that the license on the binary blobs doesn't allow redistribution by third parties.
So, let's say Linus, Andrew, and the gang decide they want to stamp out these nasty proprietary kernel modules.
Company X develops a proprietary video driver module and makes it available via online download.
Redhat decides they've had enough of being conservative old fuddy-duddies and download the driver and distribute it in RHEL5 Gaming Edition, which the license from Company X permits.
Meanwhile, Linspire has a visitation from the Lord and refuses to touch the sinful module.
Linus could sue Redhat and have a case.
Linspire is obviously in the clear.
Joe Gamer installs Linspire and downloads the module from Company X's ftp site and loads it, and he's in the clear, too.
And Company X, the one's that created the filthy module in the first place, are completely in the clear on all counts.
Is that a fair restatement?
In the case of the GPL, a license violation means copyright infringement. The GPL grants permissions beyond copyright. If you violate the GPL, copyright law is all you have to fall back on and it doesn't give you permission to copy, modify and distribute.
WRT: "no protectable GPL'd" code.
In much the same way that QT is licensed under both the GPL and a non-free license, a developer of GPL'd software may release his code without regard to whether it is actually protectable. The protectability of code is a legal determination that the coder may not wish to make or may not be able to make. Ditto for potential users. As the author, if the code is not public domain, the developer has the power to grant access under the GPL. Users can use it with confidence so long as the adhere to the GPL.
If a header file or some such thing is later ruled to lack protectable content, nothing changes for anybody except that the author is unable to restrict use of the file. The GPL becomes irrelevant for that particular piece of the pie.
As to the binary driver without protectable GPL'd code: That merely means that it contains no GPL'd code, or code that, upon scrutiny, would be deemed protectable and hence requiring a grant of rights under the law.
Quoting:There is no difference between the distro distributer and the coder who uploaded the binary blob.
There is a huge difference. Remember that the coder has not infringed anybody's copyright or violated anybody's license. The coder is not distributing a combination of the driver with anything else.
I presume that you are a pretty recent arrival to the world of free software, and the GPL in general. If you had been around 5-6 years ago, you would remember a time when Debian refused to distribute KDE because QT, the toolkit upon which KDE is based, was distributed under a license ( a free license, no less, and one officially deemed as free by the FSF) that was incompatible with the GPL.
The issue was a claim that the GPL would not permit GPL'd software to be distributed together with software that was restricted in the particular manner (I now forget what the problem provision was) that QT was.
A distributor who combines GPL'd and non-GPL'd software runs the same risk.
Quoting:And Company X, the one's that created the filthy module in the first place, are completely in the clear on all counts.
That is up to the court to decide. Because the GPL shell and the binary blob were designed to work together as a whole exclusively, a court may well find that the whole constitutes one program, in which case the GPL affects both the shell and the binary blob. So far it is pretty clear that a distributer distributing the blob + shell as one whole violates the GPL. The running arguement is wether the blob itself is in violation as well. Linus thinks not. Other people disagree.
My explanations above hinge on the fact that the blob itself is in violation. Dinotrac's explanations are based on the fact that the blob on it's own is legal, but not when distributed alongside the shell. Different sections of the GPL affect each scenario with potential different outcomes if it ever gets tested in court.
If the blob itself is in violation of the GPL, everything becomes very simple. The original copyright infringement means that the coder/distributor/user -- everybody in the entire chain is violating the law.
I don't believe there is any way to violate the GPL -- presuming that you are relying on the GPL for your grant of rights -- without also violating copyright law. The reason for that is the GPL's automatic termination provisions. Basically, if you violate the GPL, it rescinds all grants of rights. That leaves you infringing.
illegal, unworkable, unethical
No rationalization of nVidia's and ATI's actions can get around the explanations of why closed kernel modules are "illegal", "unworkable", and "unethical".
Post a comment
A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.
Your message:Sign up and post (it is free) or Log in and post

That's understating it by a mile. I'm on an enfuriatingly slow dial-up connection and it was worth waiting for each and every slide in Greg Kroah-Hartman's presentation.
It's just fantastic.