* Re: incorrect taint of ndiswrapper
@ 2006-10-25 20:11 Pavel Roskin
2006-10-25 20:30 ` Alan Cox
0 siblings, 1 reply; 45+ messages in thread
From: Pavel Roskin @ 2006-10-25 20:11 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
Hello, Alan!
>
> > non-GPL-due-to-transitivity going to be checked? Why does module loader mark
> > only couple of modules as non-GPL, when there are other drivers that load
> > some sort of binary code? It is understandable to mark a module as non-GPL if
> > it is lying about its license, but as far as that is concerned, ndiswrapper
> > (alone) is GPL.
>
> Yes. I don't think the current situation is neccessarily correct, but if
> it uses EXPORT_SYMBOL_GPL then the "now taint me" ought to fail and the
> driver ought to refuse to load a non GPL windows driver.
Why is that? I don't see any reasonable argument behind this
requirement. "now taint me" is not an equivalent to "I was lying about
my license". It means "I'm going to to something that kernel developers
don't want to debug".
I don't see any legal reasons behind this restriction. A driver under
GPL should be able to use any exported symbols. EXPORT_SYMBOL_GPL is a
technical mechanism of enforcing GPL against non-free code, but
ndiswrapper is free. The non-free NDIS drivers are not using those
symbols.
Neither do I see any technical reasons. Tainting already means that the
kernel developers are not interested in possible problems created by the
driver. Imposing further limits on functionality of ndiswrapper makes
no sense. It only creates problems.
How is this situation different from denying other capabilities to the
drivers that have used GPL symbols? How can I be sure that my driver
will be able to request firmware from userspace even though it uses
sysfs functionality via EXPORT_SYMBOL_GPL? What if somebody decides
that it's immoral or questionable for a GPL driver to do so?
Regardless of whether ndiswrapper can work around the limitations
imposed on it, it sets a very bad precedent when kernel developers are
arbitrarily and deliberately breaking existing functionality of an
external driver without having any excuse whatsoever.
I hope the offending code will be backed from the kernel for 2.6.19. In
my opinion, further changes in that direction (if they are needed)
should be based on more solid reasons.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 45+ messages in thread* Re: incorrect taint of ndiswrapper 2006-10-25 20:11 incorrect taint of ndiswrapper Pavel Roskin @ 2006-10-25 20:30 ` Alan Cox 2006-10-25 20:40 ` Kyle Moffett ` (2 more replies) 0 siblings, 3 replies; 45+ messages in thread From: Alan Cox @ 2006-10-25 20:30 UTC (permalink / raw) To: Pavel Roskin; +Cc: linux-kernel Ar Mer, 2006-10-25 am 16:11 -0400, ysgrifennodd Pavel Roskin: > I don't see any legal reasons behind this restriction. A driver under > GPL should be able to use any exported symbols. EXPORT_SYMBOL_GPL is a > technical mechanism of enforcing GPL against non-free code, but > ndiswrapper is free. The non-free NDIS drivers are not using those > symbols. The combination of GPL wrapper and the NDIS driver as a work is not free (in fact its questionable if its even legal to ship such a combination together). ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-25 20:30 ` Alan Cox @ 2006-10-25 20:40 ` Kyle Moffett 2006-10-25 21:04 ` Alan Cox 2006-10-25 21:06 ` Pavel Roskin 2006-10-26 3:59 ` Andrew Morton 2 siblings, 1 reply; 45+ messages in thread From: Kyle Moffett @ 2006-10-25 20:40 UTC (permalink / raw) To: Alan Cox; +Cc: Pavel Roskin, linux-kernel On Oct 25, 2006, at 16:30:26, Alan Cox wrote: > Ar Mer, 2006-10-25 am 16:11 -0400, ysgrifennodd Pavel Roskin: >> I don't see any legal reasons behind this restriction. A driver >> under GPL should be able to use any exported symbols. >> EXPORT_SYMBOL_GPL is a technical mechanism of enforcing GPL >> against non-free code, but ndiswrapper is free. The non-free NDIS >> drivers are not using those symbols. > > The combination of GPL wrapper and the NDIS driver as a work is not > free (in fact its questionable if its even legal to ship such a > combination together). Assume the existence of two programs, Foo and Bar (ndiswrapper and vendor-NDIS-driver). If Foo and Bar are different licenses (GPL vs proprietary) it is not legal to distribute them as part of a single work unless you convince the copyright owners to relicense. It _is_ however, perfectly legal for an end user to download Foo from www.foo.com and Bar from www.bar.com and combine the two on his computer, whether or not that does anything useful. Since the ndiswrapper driver was not based on any particular driver but on a defined standard, using ndiswrapper with a proprietary NDIS driver is just as legal as using a proprietary database server on a GPLed Linux system. The technical issues of which ring the code runs in is irrelevant as long as the user obtained both pieces separately and neither is a derivative work of the other. Besides, if the user does not distribute it then copyright law is irrelevant. Cheers, Kyle Moffett ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-25 20:40 ` Kyle Moffett @ 2006-10-25 21:04 ` Alan Cox 0 siblings, 0 replies; 45+ messages in thread From: Alan Cox @ 2006-10-25 21:04 UTC (permalink / raw) To: Kyle Moffett; +Cc: Pavel Roskin, linux-kernel Ar Mer, 2006-10-25 am 16:40 -0400, ysgrifennodd Kyle Moffett: > Besides, if the user does not distribute it then copyright law is > irrelevant. > That would be sane but in most jurisdictions loading into memory to execute is "copying". ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-25 20:30 ` Alan Cox 2006-10-25 20:40 ` Kyle Moffett @ 2006-10-25 21:06 ` Pavel Roskin 2006-10-25 21:33 ` David Weinehall 2006-10-26 3:59 ` Andrew Morton 2 siblings, 1 reply; 45+ messages in thread From: Pavel Roskin @ 2006-10-25 21:06 UTC (permalink / raw) To: Alan Cox; +Cc: linux-kernel On Wed, 2006-10-25 at 21:30 +0100, Alan Cox wrote: > Ar Mer, 2006-10-25 am 16:11 -0400, ysgrifennodd Pavel Roskin: > > I don't see any legal reasons behind this restriction. A driver under > > GPL should be able to use any exported symbols. EXPORT_SYMBOL_GPL is a > > technical mechanism of enforcing GPL against non-free code, but > > ndiswrapper is free. The non-free NDIS drivers are not using those > > symbols. > > The combination of GPL wrapper and the NDIS driver as a work is not free > (in fact its questionable if its even legal to ship such a combination > together). So, the problem is on the legal side. But I have to ask - which NDIS driver? I can write a free NDIS driver and use it with ndiswrapper. You can say it's a stupid thing to do, but once you talk about the legality, the only argument should be legal/illegal. Besides, it may be a not such a bad idea for a ReactOS developer writing a ReactOS driver to test it with Linux. Also, nothing should prevent me from combining ndiswrapper with any Windows driver in the privacy of my home as long as I don't distribute anything. GPL doesn't have use restrictions (although the driver may have an EULA). Since the problem is with USB symbols, I can split the USB part from ndiswrapper and call it ndiswrapper-usb. Then ndiswrapper-usb will be calling the GPL-only symbols while ndiswrapper will be loading the non-free modules. Good luck catching that! It's actually a change that makes sense technically. Imagine what a change specifically intended to fool Linux would do! I don't see how the kernel can detect the cases where GPL is actually violated without creating problem for honest users. Kernel code is not a police department, let alone a court of law. Let's not create out own DRM right in the kernel! Companies that ship ndiswrapper with non-free modules may be breaking copyright laws already. But it's not something that should be fought by kernel patches. -- Regards, Pavel Roskin ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-25 21:06 ` Pavel Roskin @ 2006-10-25 21:33 ` David Weinehall 2006-10-25 22:02 ` Pavel Roskin 2006-10-25 22:58 ` Alan Cox 0 siblings, 2 replies; 45+ messages in thread From: David Weinehall @ 2006-10-25 21:33 UTC (permalink / raw) To: Pavel Roskin; +Cc: Alan Cox, linux-kernel On Wed, Oct 25, 2006 at 05:06:32PM -0400, Pavel Roskin wrote: > On Wed, 2006-10-25 at 21:30 +0100, Alan Cox wrote: > > Ar Mer, 2006-10-25 am 16:11 -0400, ysgrifennodd Pavel Roskin: > > > I don't see any legal reasons behind this restriction. A driver under > > > GPL should be able to use any exported symbols. EXPORT_SYMBOL_GPL is a > > > technical mechanism of enforcing GPL against non-free code, but > > > ndiswrapper is free. The non-free NDIS drivers are not using those > > > symbols. > > > > The combination of GPL wrapper and the NDIS driver as a work is not free > > (in fact its questionable if its even legal to ship such a combination > > together). > > So, the problem is on the legal side. > > But I have to ask - which NDIS driver? I can write a free NDIS driver > and use it with ndiswrapper. You can say it's a stupid thing to do, but > once you talk about the legality, the only argument should be > legal/illegal. Besides, it may be a not such a bad idea for a ReactOS > developer writing a ReactOS driver to test it with Linux. > > Also, nothing should prevent me from combining ndiswrapper with any > Windows driver in the privacy of my home as long as I don't distribute > anything. GPL doesn't have use restrictions (although the driver may > have an EULA). > > Since the problem is with USB symbols, I can split the USB part from > ndiswrapper and call it ndiswrapper-usb. Then ndiswrapper-usb will be > calling the GPL-only symbols while ndiswrapper will be loading the > non-free modules. Good luck catching that! It's actually a change that > makes sense technically. Imagine what a change specifically intended to > fool Linux would do! > > I don't see how the kernel can detect the cases where GPL is actually > violated without creating problem for honest users. Kernel code is not > a police department, let alone a court of law. Let's not create out own > DRM right in the kernel! > > Companies that ship ndiswrapper with non-free modules may be breaking > copyright laws already. But it's not something that should be fought by > kernel patches. No matter how the legal situation looks like: do we *want* to support drivers that use an API totally alien to Linux concepts? Personally I feel that no matter if they are legal or not, we should not cater to such drivers in the first place. If it's trickier to use Windows API-drivers under Linux than to write a native Linux driver, big deal... We don't want Windows-drivers. We want native drivers. Regards: David Weinehall -- /) David Weinehall <tao@acc.umu.se> /) Northern lights wander (\ // Maintainer of the v2.0 kernel // Dance across the winter sky // \) http://www.acc.umu.se/~tao/ (/ Full colour fire (/ ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-25 21:33 ` David Weinehall @ 2006-10-25 22:02 ` Pavel Roskin 2006-10-25 22:54 ` Alan Cox 2006-10-25 22:58 ` Alan Cox 1 sibling, 1 reply; 45+ messages in thread From: Pavel Roskin @ 2006-10-25 22:02 UTC (permalink / raw) To: David Weinehall; +Cc: Alan Cox, linux-kernel On Wed, 2006-10-25 at 23:33 +0200, David Weinehall wrote: > No matter how the legal situation looks like: do we *want* to support > drivers that use an API totally alien to Linux concepts? The word "support" is overloaded. I think tainting was striking the perfect balance between the two meanings. The driver would work, but the kernel developers could ignore problems with the driver. What is going on now is making sure that the driver doesn't work. At least that's my understanding of Alan's intention not to allow code loading for modules that have used GPL-only symbols. And that's what I think is way over the top. It's akin looking for process called "wine" (or detecting it by its behavior) and denying it access to some syscalls. > Personally I feel that no matter if they are legal or not, we should not > cater to such drivers in the first place. If it's trickier to use > Windows API-drivers under Linux than to write a native Linux driver, > big deal... We don't want Windows-drivers. We want native drivers. The only non-native part of ndiswrapper is NDIS, as opposed to bare hardware access. ndiswrapper implements quite a lot of functionality in the free code. Discouraging the ndiswrapper developer is especially unfair because he did much better job at supporting such features as WPA, compared to what some of us, myself included, did with the free drivers. I'm not against free and fully open drivers, but they won't appear overnight. Sometimes ndiswrapper is a good starting point to understand what the hardware can do and whether it's functional at all. It could also be used for reverse engineering. -- Regards, Pavel Roskin ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-25 22:02 ` Pavel Roskin @ 2006-10-25 22:54 ` Alan Cox 0 siblings, 0 replies; 45+ messages in thread From: Alan Cox @ 2006-10-25 22:54 UTC (permalink / raw) To: Pavel Roskin; +Cc: David Weinehall, linux-kernel Ar Mer, 2006-10-25 am 18:02 -0400, ysgrifennodd Pavel Roskin: > And that's what I think is way over the top. It's akin looking for > process called "wine" (or detecting it by its behavior) and denying it > access to some syscalls. On the contrary there is little likelyhood that wine is a derivative work, and even if it was the note with the kernel explicitly deals with that by saying "we don't intend a judge to interpret it that way" ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-25 21:33 ` David Weinehall 2006-10-25 22:02 ` Pavel Roskin @ 2006-10-25 22:58 ` Alan Cox 2006-10-26 3:23 ` David Weinehall 1 sibling, 1 reply; 45+ messages in thread From: Alan Cox @ 2006-10-25 22:58 UTC (permalink / raw) To: David Weinehall; +Cc: Pavel Roskin, linux-kernel Ar Mer, 2006-10-25 am 23:33 +0200, ysgrifennodd David Weinehall: > Personally I feel that no matter if they are legal or not, we should not > cater to such drivers in the first place. If it's trickier to use > Windows API-drivers under Linux than to write a native Linux driver, > big deal... We don't want Windows-drivers. We want native drivers. Neither taint nor _GPL are intended to stop people doing things that, in the eyes of the masses, are stupid. The taint mark is there to ensure that they don't harm the rest of us. The FSF view of freedom is freedom to modify not freedom to modify in a manner approved by some defining body. Alan ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-25 22:58 ` Alan Cox @ 2006-10-26 3:23 ` David Weinehall 2006-10-26 13:13 ` Thierry Vignaud 0 siblings, 1 reply; 45+ messages in thread From: David Weinehall @ 2006-10-26 3:23 UTC (permalink / raw) To: Alan Cox; +Cc: Pavel Roskin, linux-kernel On Wed, Oct 25, 2006 at 11:58:38PM +0100, Alan Cox wrote: > Ar Mer, 2006-10-25 am 23:33 +0200, ysgrifennodd David Weinehall: > > Personally I feel that no matter if they are legal or not, we should not > > cater to such drivers in the first place. If it's trickier to use > > Windows API-drivers under Linux than to write a native Linux driver, > > big deal... We don't want Windows-drivers. We want native drivers. > > Neither taint nor _GPL are intended to stop people doing things that, in > the eyes of the masses, are stupid. The taint mark is there to ensure > that they don't harm the rest of us. The FSF view of freedom is freedom > to modify not freedom to modify in a manner approved by some defining > body. Hence my use of the world "Personally". It's my own opinion that we shouldn't support Windows API-drivers. I don't think this has anything to do with the FSF view on freedom. This has to do with the freedom to make a sound technical decision. Regards: David -- /) David Weinehall <tao@acc.umu.se> /) Northern lights wander (\ // Maintainer of the v2.0 kernel // Dance across the winter sky // \) http://www.acc.umu.se/~tao/ (/ Full colour fire (/ ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 3:23 ` David Weinehall @ 2006-10-26 13:13 ` Thierry Vignaud 2006-10-26 13:21 ` Gianluca Alberici 0 siblings, 1 reply; 45+ messages in thread From: Thierry Vignaud @ 2006-10-26 13:13 UTC (permalink / raw) To: Alan Cox; +Cc: Pavel Roskin, linux-kernel David Weinehall <tao@acc.umu.se> writes: > > > Personally I feel that no matter if they are legal or not, we > > > should not cater to such drivers in the first place. If it's > > > trickier to use Windows API-drivers under Linux than to write a > > > native Linux driver, big deal... We don't want Windows-drivers. > > > We want native drivers. > > > > Neither taint nor _GPL are intended to stop people doing things > > that, in the eyes of the masses, are stupid. The taint mark is > > there to ensure that they don't harm the rest of us. The FSF view > > of freedom is freedom to modify not freedom to modify in a manner > > approved by some defining body. > > Hence my use of the world "Personally". It's my own opinion that we > shouldn't support Windows API-drivers. I don't think this has > anything to do with the FSF view on freedom. This has to do with > the freedom to make a sound technical decision. and your freedom to do whatever you want at home isn't restricted by the tainting. ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 13:13 ` Thierry Vignaud @ 2006-10-26 13:21 ` Gianluca Alberici 0 siblings, 0 replies; 45+ messages in thread From: Gianluca Alberici @ 2006-10-26 13:21 UTC (permalink / raw) To: linux-kernel Thierry Vignaud wrote: >David Weinehall <tao@acc.umu.se> writes: > > > >>>>Personally I feel that no matter if they are legal or not, we >>>>should not cater to such drivers in the first place. If it's >>>>trickier to use Windows API-drivers under Linux than to write a >>>>native Linux driver, big deal... We don't want Windows-drivers. >>>>We want native drivers. >>>> >>>> >>>Neither taint nor _GPL are intended to stop people doing things >>>that, in the eyes of the masses, are stupid. The taint mark is >>>there to ensure that they don't harm the rest of us. The FSF view >>>of freedom is freedom to modify not freedom to modify in a manner >>>approved by some defining body. >>> >>> >>Hence my use of the world "Personally". It's my own opinion that we >>shouldn't support Windows API-drivers. I don't think this has >>anything to do with the FSF view on freedom. This has to do with >>the freedom to make a sound technical decision. >> >> > >and your freedom to do whatever you want at home isn't restricted by >the tainting. > > In fact it is now, because ndiswrapper doesnt load on 2.6.19. The fact: there's a lot of people who are not gonna be using his wlan unless they are able to modify the sources. I wouldnt forget that ndiswrapper is a tool which solves problems. Linux diffusion is affected by compatibility issues. I really cant see the benefit for Linux in stop supporting windows NDIS drivers...there's a lot of hardware which works only by that. >- >To unsubscribe from this list: send the line "unsubscribe linux-kernel" in >the body of a message to majordomo@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html >Please read the FAQ at http://www.tux.org/lkml/ > > ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-25 20:30 ` Alan Cox 2006-10-25 20:40 ` Kyle Moffett 2006-10-25 21:06 ` Pavel Roskin @ 2006-10-26 3:59 ` Andrew Morton 2006-10-26 9:03 ` Gianluca Alberici ` (3 more replies) 2 siblings, 4 replies; 45+ messages in thread From: Andrew Morton @ 2006-10-26 3:59 UTC (permalink / raw) To: Alan Cox; +Cc: proski, linux-kernel > On Wed, 25 Oct 2006 21:30:26 +0100 Alan Cox <alan@lxorguk.ukuu.org.uk> wrote: > Ar Mer, 2006-10-25 am 16:11 -0400, ysgrifennodd Pavel Roskin: > > I don't see any legal reasons behind this restriction. A driver under > > GPL should be able to use any exported symbols. EXPORT_SYMBOL_GPL is a > > technical mechanism of enforcing GPL against non-free code, but > > ndiswrapper is free. The non-free NDIS drivers are not using those > > symbols. > > The combination of GPL wrapper and the NDIS driver as a work is not free > (in fact its questionable if its even legal to ship such a combination > together). May be so. But this patch was supposed to print a helpful taint message to draw our attention to the fact that ndis-wrapper was in use. The patch was not intended to cause gpl'ed modules to stop loading (or if is was, that effect was concealed from yours truly). IOW, this was a mistake. Now, if we do want to disallow gpl module loading after ndis-wrapper has been used then fine, we can discuss that. If we decide to proceed that way then we will probably cause a load of ndis-wrapper to emit a scary printk for six months or so to give people time to make arrangements. ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 3:59 ` Andrew Morton @ 2006-10-26 9:03 ` Gianluca Alberici 2006-10-26 10:39 ` Alan Cox ` (2 subsequent siblings) 3 siblings, 0 replies; 45+ messages in thread From: Gianluca Alberici @ 2006-10-26 9:03 UTC (permalink / raw) To: Andrew Morton; +Cc: linux-kernel Hello, i apologize for being bothering you twice in three days but i was wondering whether someone has found reason why ndiswrapper does not load on 2.6.19-rc2-mm2. NOTE: it seems to be related to tainting I try to resume a bit: __create_workqueue undefined symbol queue_work undefined symbol After patching modules.c to remove tainting of ndiswrapper i got to load it without problems but it doesnt seem a modules.c problem (those symbols are EXPORT_GPL since at least 2.6.18), modules.c and workqueue.c are as of 2.6.16 kernel. Is there any new ? If i can tell my user opinion about tainting is that it s...cks in general, dont know any case in which it fits something, i mean in life not just linux kernel. One who uses ndiswrapper doest it at his own risk, a developer or debugger can manage... And the blacklist hardcoded in modules.c, as someone used to say couple days ago, seems really hard to carry on ! THanks to anyone who will find time to show me the light, Gianluca ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 3:59 ` Andrew Morton 2006-10-26 9:03 ` Gianluca Alberici @ 2006-10-26 10:39 ` Alan Cox 2006-10-26 12:21 ` Giacomo A. Catenazzi ` (3 more replies) 2006-10-26 17:26 ` [PATCH ??] " Randy Dunlap 2006-10-27 4:32 ` Florin Malita 3 siblings, 4 replies; 45+ messages in thread From: Alan Cox @ 2006-10-26 10:39 UTC (permalink / raw) To: Andrew Morton; +Cc: proski, linux-kernel Ar Mer, 2006-10-25 am 20:59 -0700, ysgrifennodd Andrew Morton: > May be so. But this patch was supposed to print a helpful taint message to > draw our attention to the fact that ndis-wrapper was in use. The patch was > not intended to cause gpl'ed modules to stop loading The stopping loading is purely because it now uses _GPLONLY symbols, which is fine until the user wants to load a windows driver except for the old CIPE driver. Some assumptions broke somewhere along the way and the chain of events that was never forseen unfolded. > Now, if we do want to disallow gpl module loading after ndis-wrapper has > been used then fine The problem is we do the dynamic link at module load time. We would have to unlink the module if it tried to taint itself, which is clearly not what the end user needs to suffer. Having the taint function actually taint and printk + return a "Linked gplonly you can't" error seems the better solution. Really ndiswrapper shouldn't be using _GPLONLY symbols, that would actually make it useful to the binary driver afflicted again and more likely to be legal. ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 10:39 ` Alan Cox @ 2006-10-26 12:21 ` Giacomo A. Catenazzi 2006-10-26 12:59 ` Gianluca Alberici 2006-10-26 14:41 ` Al Viro ` (2 subsequent siblings) 3 siblings, 1 reply; 45+ messages in thread From: Giacomo A. Catenazzi @ 2006-10-26 12:21 UTC (permalink / raw) To: Alan Cox; +Cc: Andrew Morton, proski, linux-kernel Alan Cox wrote: > The stopping loading is purely because it now uses _GPLONLY symbols, > which is fine until the user wants to load a windows driver except for > the old CIPE driver. Some assumptions broke somewhere along the way and > the chain of events that was never forseen unfolded. > >> Now, if we do want to disallow gpl module loading after ndis-wrapper has >> been used then fine > > The problem is we do the dynamic link at module load time. We would have > to unlink the module if it tried to taint itself, which is clearly not > what the end user needs to suffer. Having the taint function actually > taint and printk + return a "Linked gplonly you can't" error seems the > better solution. > > Really ndiswrapper shouldn't be using _GPLONLY symbols, that would > actually make it useful to the binary driver afflicted again and more > likely to be legal. I'm confused on the discussion: legal? I don't find how a windo$e driver can be "derived work" of Linux, and anyway they use a "standard" interface. So it is acceptable for GPL (IMHO and IANAL). so it is not a legal problem. I see only a development question: should we allow untrusted module to know and modify the "intimate" part of kernel, and cause compability and other large amount of problems into kernel developers, distribution and users? So it is a political question, not a legal question! ciao cate ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 12:21 ` Giacomo A. Catenazzi @ 2006-10-26 12:59 ` Gianluca Alberici 0 siblings, 0 replies; 45+ messages in thread From: Gianluca Alberici @ 2006-10-26 12:59 UTC (permalink / raw) To: Giacomo A. Catenazzi; +Cc: Alan Cox, Andrew Morton, proski, linux-kernel Giacomo A. Catenazzi wrote: > I'm confused on the discussion: > legal? I don't find how a windo$e driver can be "derived work" of Linux, > and anyway they use a "standard" interface. So it is acceptable for GPL > (IMHO and IANAL). so it is not a legal problem. > > I see only a development question: > should we allow untrusted module to know and modify the > "intimate" part of kernel, and cause compability and other large > amount of problems into kernel developers, distribution and users? > I really cannot see even a political problem. I the case of ndiswrapper the problem is not whether we want to support windows or whatever drivermodules, but if we want to support NDIS drivers with a GPL wrapper. regards, Gianluca > So it is a political question, not a legal question! > > ciao > cate > - > To unsubscribe from this list: send the line "unsubscribe > linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 10:39 ` Alan Cox 2006-10-26 12:21 ` Giacomo A. Catenazzi @ 2006-10-26 14:41 ` Al Viro 2006-10-26 14:55 ` Alan Cox 2006-10-26 16:00 ` Stephen Hemminger 2006-10-26 19:19 ` Pavel Roskin 3 siblings, 1 reply; 45+ messages in thread From: Al Viro @ 2006-10-26 14:41 UTC (permalink / raw) To: Alan Cox; +Cc: Andrew Morton, proski, linux-kernel On Thu, Oct 26, 2006 at 11:39:59AM +0100, Alan Cox wrote: > Ar Mer, 2006-10-25 am 20:59 -0700, ysgrifennodd Andrew Morton: > > May be so. But this patch was supposed to print a helpful taint message to > > draw our attention to the fact that ndis-wrapper was in use. The patch was > > not intended to cause gpl'ed modules to stop loading > > The stopping loading is purely because it now uses _GPLONLY symbols, > which is fine until the user wants to load a windows driver except for > the old CIPE driver. Some assumptions broke somewhere along the way and > the chain of events that was never forseen unfolded. Could we please decide WTF _GPLONLY *is* and at least remain consistent? Aside of "method of fighting binary-only modules", that is - this part is obvious. I'm not fond of ndiswrapper and stuff it uses, but AFAICS the list of symbols it uses doesn't look like poking in the guts of kernel. ISTR explanations along the lines of "well, it's for the stuff that shouldn't be used by out-of-tree code". Does anybody still subscribe to that or should that be considered a pure smokescreen? ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 14:41 ` Al Viro @ 2006-10-26 14:55 ` Alan Cox 0 siblings, 0 replies; 45+ messages in thread From: Alan Cox @ 2006-10-26 14:55 UTC (permalink / raw) To: Al Viro; +Cc: Andrew Morton, proski, linux-kernel Ar Iau, 2006-10-26 am 15:41 +0100, ysgrifennodd Al Viro: > Could we please decide WTF _GPLONLY *is* and at least remain consistent? > Aside of "method of fighting binary-only modules", that is - this part > is obvious. It was originally added to mark symbols that are clearly internal only and make a work derivative. It's somewhere expanded to include symbols whose code authors think that a cease and desist is the correct answer to non GPL use. I can't really help personally on the details there since I'm of the opinion that _GPLONLY while useful doesn't generally make a blind bit of difference as most if not all binary modules are violating the license. (And I'm sure Nvidia's legal counsel disagrees with me at least in public) Alan ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 10:39 ` Alan Cox 2006-10-26 12:21 ` Giacomo A. Catenazzi 2006-10-26 14:41 ` Al Viro @ 2006-10-26 16:00 ` Stephen Hemminger 2006-10-26 16:26 ` Gianluca Alberici 2006-10-26 19:19 ` Pavel Roskin 3 siblings, 1 reply; 45+ messages in thread From: Stephen Hemminger @ 2006-10-26 16:00 UTC (permalink / raw) To: linux-kernel On Thu, 26 Oct 2006 11:39:59 +0100 Alan Cox <alan@lxorguk.ukuu.org.uk> wrote: > Ar Mer, 2006-10-25 am 20:59 -0700, ysgrifennodd Andrew Morton: > > May be so. But this patch was supposed to print a helpful taint message to > > draw our attention to the fact that ndis-wrapper was in use. The patch was > > not intended to cause gpl'ed modules to stop loading > > The stopping loading is purely because it now uses _GPLONLY symbols, > which is fine until the user wants to load a windows driver except for > the old CIPE driver. Some assumptions broke somewhere along the way and > the chain of events that was never forseen unfolded. > > > Now, if we do want to disallow gpl module loading after ndis-wrapper has > > been used then fine > > The problem is we do the dynamic link at module load time. We would have > to unlink the module if it tried to taint itself, which is clearly not > what the end user needs to suffer. Having the taint function actually > taint and printk + return a "Linked gplonly you can't" error seems the > better solution. > > Really ndiswrapper shouldn't be using _GPLONLY symbols, that would > actually make it useful to the binary driver afflicted again and more > likely to be legal. > What are the symbols in question? A simple test would be to take the GPL MODULE_LICENSE() off of ndiswrapper and try loading it. -- Stephen Hemminger <shemminger@osdl.org> ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 16:00 ` Stephen Hemminger @ 2006-10-26 16:26 ` Gianluca Alberici 2006-10-27 14:24 ` Arjan van de Ven 0 siblings, 1 reply; 45+ messages in thread From: Gianluca Alberici @ 2006-10-26 16:26 UTC (permalink / raw) To: Stephen Hemminger; +Cc: linux-kernel Stephen Hemminger wrote: >On Thu, 26 Oct 2006 11:39:59 +0100 >Alan Cox <alan@lxorguk.ukuu.org.uk> wrote: > > > >>Ar Mer, 2006-10-25 am 20:59 -0700, ysgrifennodd Andrew Morton: >> >> >>>May be so. But this patch was supposed to print a helpful taint message to >>>draw our attention to the fact that ndis-wrapper was in use. The patch was >>>not intended to cause gpl'ed modules to stop loading >>> >>> >>The stopping loading is purely because it now uses _GPLONLY symbols, >>which is fine until the user wants to load a windows driver except for >>the old CIPE driver. Some assumptions broke somewhere along the way and >>the chain of events that was never forseen unfolded. >> >> >> >>>Now, if we do want to disallow gpl module loading after ndis-wrapper has >>>been used then fine >>> >>> >>The problem is we do the dynamic link at module load time. We would have >>to unlink the module if it tried to taint itself, which is clearly not >>what the end user needs to suffer. Having the taint function actually >>taint and printk + return a "Linked gplonly you can't" error seems the >>better solution. >> >>Really ndiswrapper shouldn't be using _GPLONLY symbols, that would >>actually make it useful to the binary driver afflicted again and more >>likely to be legal. >> >> >> > >What are the symbols in question? A simple test would be to take the GPL >MODULE_LICENSE() off of ndiswrapper and try loading it. > > > i've found: __create_workqueue queue_work As i said removing add_taint() in modules.c in the section regarding ndiswrapper makes the module load correctly. regards, Gianluca ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 16:26 ` Gianluca Alberici @ 2006-10-27 14:24 ` Arjan van de Ven 2006-10-27 15:14 ` Stephen Hemminger 0 siblings, 1 reply; 45+ messages in thread From: Arjan van de Ven @ 2006-10-27 14:24 UTC (permalink / raw) To: Gianluca Alberici; +Cc: Stephen Hemminger, linux-kernel > > > i've found: > > __create_workqueue > queue_work if you change the queue_work() calls to schedule_work() (and drop it's first argument) and just remove the create_workqueue() entirely, does it work then? (probably also need to remove destroy_workqueue() call) if so, that's the real solution on the ndiswrapper side... ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-27 14:24 ` Arjan van de Ven @ 2006-10-27 15:14 ` Stephen Hemminger 0 siblings, 0 replies; 45+ messages in thread From: Stephen Hemminger @ 2006-10-27 15:14 UTC (permalink / raw) To: Arjan van de Ven; +Cc: Gianluca Alberici, linux-kernel On Fri, 27 Oct 2006 16:24:58 +0200 Arjan van de Ven <arjan@infradead.org> wrote: > > > > > i've found: > > > > __create_workqueue > > queue_work > > > if you change the queue_work() calls to schedule_work() (and drop it's > first argument) and just remove the create_workqueue() entirely, does it > work then? (probably also need to remove destroy_workqueue() call) > if so, that's the real solution on the ndiswrapper side... > > Or maybe do equivalent delayed function calls by using a kthread. ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 10:39 ` Alan Cox ` (2 preceding siblings ...) 2006-10-26 16:00 ` Stephen Hemminger @ 2006-10-26 19:19 ` Pavel Roskin 2006-10-26 21:46 ` Adrian Bunk 3 siblings, 1 reply; 45+ messages in thread From: Pavel Roskin @ 2006-10-26 19:19 UTC (permalink / raw) To: Alan Cox; +Cc: Andrew Morton, linux-kernel On Thu, 2006-10-26 at 11:39 +0100, Alan Cox wrote: > Really ndiswrapper shouldn't be using _GPLONLY symbols, that would > actually make it useful to the binary driver afflicted again and more > likely to be legal. usb_register_driver is using EXPORT_SYMBOL_GPL_FUTURE, which means all USB drivers will have to be GPL soon. This would disable the USB support in ndiswrapper. There is no other way to register USB drivers. Apparently, the USB developers feel that every Linux USB driver should be considered a derived work of Linux, and therefore should be under GPL. This means that ndiswrapper would be considered as a derived work of Linux. Since ndiswrapper is under GPL, it would suffer unfairly if the meaning of EXPORT_SYMBOL_GPL is extended to restrict GPLed modules capable of loading proprietary code into the kernel. The second problem is sysfs. Again, using sysfs is only allowed to GPLed modules for the same reason. Although ndiswrapper is not using sysfs now, it would be unfair to restrict it from doing that in the future. It's not like the proprietary modules would be using Linux USB or sysfs API - they are unaware of Linux. Only the free code can use it. -- Regards, Pavel Roskin ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 19:19 ` Pavel Roskin @ 2006-10-26 21:46 ` Adrian Bunk 2006-10-26 22:29 ` Pavel Roskin 0 siblings, 1 reply; 45+ messages in thread From: Adrian Bunk @ 2006-10-26 21:46 UTC (permalink / raw) To: Pavel Roskin; +Cc: Alan Cox, Andrew Morton, linux-kernel On Thu, Oct 26, 2006 at 03:19:00PM -0400, Pavel Roskin wrote: >... > > This means that ndiswrapper would be considered as a derived work of > Linux. Since ndiswrapper is under GPL, it would suffer unfairly if the > meaning of EXPORT_SYMBOL_GPL is extended to restrict GPLed modules > capable of loading proprietary code into the kernel. >... You could always write a tiny GPL-ed wrapper module with the sole purpose of offering all EXPORT_SYMBOL_GPL'ed functions through EXPORT_SYMBOL'ed wrapper functions. You are using a gnu.org address for publically stating that trying to prevent such kinds of wrapping was unfair? It's not even clear that any modules containing non-GPL'ed code were legal. EXPORT_SYMBOL_GPL shows a pretty clear intention, and offering functionality provided throug h EXPORT_SYMBOL_GPL'ed symbols to proprietary code sounds very fishy. > Regards, > Pavel Roskin cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 21:46 ` Adrian Bunk @ 2006-10-26 22:29 ` Pavel Roskin 2006-10-26 23:00 ` Adrian Bunk 2006-10-27 12:52 ` Roland Kuhn 0 siblings, 2 replies; 45+ messages in thread From: Pavel Roskin @ 2006-10-26 22:29 UTC (permalink / raw) To: Adrian Bunk; +Cc: Alan Cox, Andrew Morton, linux-kernel On Thu, 2006-10-26 at 23:46 +0200, Adrian Bunk wrote: > On Thu, Oct 26, 2006 at 03:19:00PM -0400, Pavel Roskin wrote: > >... > > > > This means that ndiswrapper would be considered as a derived work of > > Linux. Since ndiswrapper is under GPL, it would suffer unfairly if the > > meaning of EXPORT_SYMBOL_GPL is extended to restrict GPLed modules > > capable of loading proprietary code into the kernel. > >... > > You could always write a tiny GPL-ed wrapper module with the sole > purpose of offering all EXPORT_SYMBOL_GPL'ed functions through > EXPORT_SYMBOL'ed wrapper functions. Yes, but it's irrelevant. The kernel should not dictate how ndiswrapper or any other driver should be structured. I think such module would be quite inelegant. It would be a useless layer of indirection created to compensate for a kernel bug. > You are using a gnu.org address for publically stating that trying to > prevent such kinds of wrapping was unfair? I didn't even consider this trick. I was talking about a more reasonable split of the code loader from the bus-specific code. Neither did I suggest that it would be unfair to block any wrapping. I said it would be hard and technically infeasible. I'm using the same e-mail address for all free software work. I don't represent Free Software Foundation, although I consider it a honor to have an account with them. > It's not even clear that any modules containing non-GPL'ed code were > legal. I'm not a lawyer, but I think one cannot classify software as legal or illegal. The law governs what people do. Running such mix may be legal even if distribution is not. Anyway, I don't think it's relevant to ndiswrapper. > EXPORT_SYMBOL_GPL shows a pretty clear intention, and offering > functionality provided throug h EXPORT_SYMBOL_GPL'ed symbols to > proprietary code sounds very fishy. Last time I checked, EXPORT_SYMBOL_GPL was an indication that a code using it will be considered as a work derived from Linux. This way, ndiswrapper, which is free software, can be considered a derived work. NDIS drivers don't know about any Linux API, therefore they cannot use it directly. The purpose of ndiswrapper is not to remove limitations from the Linux API, but to present a completely different API. Non-free code does not contains any code derived from Linux because it wasn't even written for Linux. -- Regards, Pavel Roskin ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 22:29 ` Pavel Roskin @ 2006-10-26 23:00 ` Adrian Bunk 2006-10-26 23:36 ` Sven-Haegar Koch 2006-10-26 23:47 ` Pavel Roskin 2006-10-27 12:52 ` Roland Kuhn 1 sibling, 2 replies; 45+ messages in thread From: Adrian Bunk @ 2006-10-26 23:00 UTC (permalink / raw) To: Pavel Roskin; +Cc: Alan Cox, Andrew Morton, linux-kernel On Thu, Oct 26, 2006 at 06:29:53PM -0400, Pavel Roskin wrote: > On Thu, 2006-10-26 at 23:46 +0200, Adrian Bunk wrote: >... > > It's not even clear that any modules containing non-GPL'ed code were > > legal. > > I'm not a lawyer, but I think one cannot classify software as legal or > illegal. That's wrong, e.g. in some jurisdictions writing software that circumvents copyright protections is forbidden by law. > The law governs what people do. Running such mix may be legal > even if distribution is not. > > Anyway, I don't think it's relevant to ndiswrapper. >... All non-GPL'ed modules are in a grey area, and the question isn't whether it's black or white but how light or dark the grey is... > Regards, > Pavel Roskin cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 23:00 ` Adrian Bunk @ 2006-10-26 23:36 ` Sven-Haegar Koch 2006-10-27 0:57 ` Adrian Bunk 2006-10-26 23:47 ` Pavel Roskin 1 sibling, 1 reply; 45+ messages in thread From: Sven-Haegar Koch @ 2006-10-26 23:36 UTC (permalink / raw) To: Adrian Bunk; +Cc: Pavel Roskin, Alan Cox, Andrew Morton, linux-kernel On Fri, 27 Oct 2006, Adrian Bunk wrote: > On Thu, Oct 26, 2006 at 06:29:53PM -0400, Pavel Roskin wrote: >> Anyway, I don't think it's relevant to ndiswrapper. >> ... > > All non-GPL'ed modules are in a grey area, and the question isn't > whether it's black or white but how light or dark the grey is... ndiswrapper is GPL, but is (with the current code) not allowed to use the gpl-only'ed symbols. c'ya sven -- The Internet treats censorship as a routing problem, and routes around it. (John Gilmore on http://www.cygnus.com/~gnu/) ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 23:36 ` Sven-Haegar Koch @ 2006-10-27 0:57 ` Adrian Bunk 0 siblings, 0 replies; 45+ messages in thread From: Adrian Bunk @ 2006-10-27 0:57 UTC (permalink / raw) To: Sven-Haegar Koch; +Cc: Pavel Roskin, Alan Cox, Andrew Morton, linux-kernel On Fri, Oct 27, 2006 at 01:36:41AM +0200, Sven-Haegar Koch wrote: > On Fri, 27 Oct 2006, Adrian Bunk wrote: > > >On Thu, Oct 26, 2006 at 06:29:53PM -0400, Pavel Roskin wrote: > >>Anyway, I don't think it's relevant to ndiswrapper. > >>... > > > >All non-GPL'ed modules are in a grey area, and the question isn't > >whether it's black or white but how light or dark the grey is... > > ndiswrapper is GPL, but is (with the current code) not allowed to use the > gpl-only'ed symbols. ndiswrapper is mostly a compatility layer for linking non-GPL'ed code into the kernel. This is really a grey area, and the legal status might depend on the jurisdiction and the judge. Considering the vivid "cease and desist" business in Germany, I wouldn't be surprised if some day someone would start sending "cease and desist" letters against mirrors in Germany distributing code in this grey area... > c'ya > sven cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 23:00 ` Adrian Bunk 2006-10-26 23:36 ` Sven-Haegar Koch @ 2006-10-26 23:47 ` Pavel Roskin 1 sibling, 0 replies; 45+ messages in thread From: Pavel Roskin @ 2006-10-26 23:47 UTC (permalink / raw) To: Adrian Bunk; +Cc: Alan Cox, Andrew Morton, linux-kernel On Fri, 2006-10-27 at 01:00 +0200, Adrian Bunk wrote: > On Thu, Oct 26, 2006 at 06:29:53PM -0400, Pavel Roskin wrote: > > On Thu, 2006-10-26 at 23:46 +0200, Adrian Bunk wrote: > >... > > > It's not even clear that any modules containing non-GPL'ed code were > > > legal. > > > > I'm not a lawyer, but I think one cannot classify software as legal or > > illegal. > > That's wrong, e.g. in some jurisdictions writing software that > circumvents copyright protections is forbidden by law. Fortunately, it would take a long flight of imagination to classify ndiswrapper as "software that circumvents copyright protections". One would have to claim that ndiswrapper is "bundling" itself with non-free code and "distributing" that "bundle" from the hard drive into RAM, or something just as ridiculous. Anyway, I'm glad that the sanity has prevailed for now. -- Regards, Pavel Roskin ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 22:29 ` Pavel Roskin 2006-10-26 23:00 ` Adrian Bunk @ 2006-10-27 12:52 ` Roland Kuhn 2006-10-27 15:53 ` Pavel Roskin 1 sibling, 1 reply; 45+ messages in thread From: Roland Kuhn @ 2006-10-27 12:52 UTC (permalink / raw) To: Pavel Roskin; +Cc: Adrian Bunk, Alan Cox, Andrew Morton, linux-kernel [-- Attachment #1: Type: text/plain, Size: 1566 bytes --] Hi Pavel! On 27 Oct 2006, at 00:29, Pavel Roskin wrote: >> EXPORT_SYMBOL_GPL shows a pretty clear intention, and offering >> functionality provided throug h EXPORT_SYMBOL_GPL'ed symbols to >> proprietary code sounds very fishy. > > Last time I checked, EXPORT_SYMBOL_GPL was an indication that a code > using it will be considered as a work derived from Linux. This way, > ndiswrapper, which is free software, can be considered a derived work. > > NDIS drivers don't know about any Linux API, therefore they cannot use > it directly. The purpose of ndiswrapper is not to remove limitations > from the Linux API, but to present a completely different API. > Maybe everyone would be more happy if this "completely different API" would live at lower priviledge level, e.g. ring 1, so it could not screw up kernel internals? Is this technically possible? Maybe it's the same thing, but another way could be to run NDIS stuff inside a xen-like virtual environment... Has anyone tried yet? Ciao, Roland -- TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching Telefon 089/289-12575; Telefax 089/289-12570 -- CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482 -- Any society that would give up a little liberty to gain a little security will deserve neither and lose both. - Benjamin Franklin -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M + !V Y+ PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++ ------END GEEK CODE BLOCK------ [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 186 bytes --] ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-27 12:52 ` Roland Kuhn @ 2006-10-27 15:53 ` Pavel Roskin 0 siblings, 0 replies; 45+ messages in thread From: Pavel Roskin @ 2006-10-27 15:53 UTC (permalink / raw) To: Roland Kuhn; +Cc: Adrian Bunk, Alan Cox, Andrew Morton, linux-kernel Hi Roland, On Fri, 2006-10-27 at 14:52 +0200, Roland Kuhn wrote: > Maybe everyone would be more happy if this "completely different API" > would live at lower priviledge level, e.g. ring 1, so it could not > screw up kernel internals? Is this technically possible? Maybe it's > the same thing, but another way could be to run NDIS stuff inside a > xen-like virtual environment... Has anyone tried yet? I think it would be better to move this discussion to ndiswrapper <ndiswrapper-general@lists.sourceforge.net> I'm not familiar with the fine details of ndiswrapper implementation and neither am I good at understanding memory management in Linux, but I suspect it's not worth the trouble. I believe there is no "ring 1" on x86_64 (unless it's in i386 compatibility mode). So it would work on i386 only. Maybe x86_64 could use its "ring 3" equivalent, i.e. standard userspace permissions, but I don't think it would be what you want. Even on i386, I don't see an easy way to allocate executable memory with ring 1 permissions. See include/asm-i386/pgtable.h. I suspect that there is no support for running kernel code at anything but "ring 0". What do you think are the chances that support for low-privileged kernel code will be added to the kernel just for ndiswrapper? I think the chances are pretty slim. In the case of the PCI driver, some critical operations would have to be passed to the NDIS driver, such as IRQ and DMA processing. It would be better to make sure that the code has the necessary priority to do it fast and correctly. In the case of the USB driver, it may be better to go all the way to the standard userspace. This would require a protocol to pass network API to the userspace, including wireless extensions. I believe the work is underway. -- Regards, Pavel Roskin ^ permalink raw reply [flat|nested] 45+ messages in thread
* [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-26 3:59 ` Andrew Morton 2006-10-26 9:03 ` Gianluca Alberici 2006-10-26 10:39 ` Alan Cox @ 2006-10-26 17:26 ` Randy Dunlap 2006-10-27 14:23 ` Arjan van de Ven 2006-10-27 4:32 ` Florin Malita 3 siblings, 1 reply; 45+ messages in thread From: Randy Dunlap @ 2006-10-26 17:26 UTC (permalink / raw) To: Andrew Morton, gianluca, cate; +Cc: Alan Cox, proski, linux-kernel On Wed, 25 Oct 2006 20:59:23 -0700 Andrew Morton wrote: > > On Wed, 25 Oct 2006 21:30:26 +0100 Alan Cox <alan@lxorguk.ukuu.org.uk> wrote: > > Ar Mer, 2006-10-25 am 16:11 -0400, ysgrifennodd Pavel Roskin: > > > I don't see any legal reasons behind this restriction. A driver under > > > GPL should be able to use any exported symbols. EXPORT_SYMBOL_GPL is a > > > technical mechanism of enforcing GPL against non-free code, but > > > ndiswrapper is free. The non-free NDIS drivers are not using those > > > symbols. > > > > The combination of GPL wrapper and the NDIS driver as a work is not free > > (in fact its questionable if its even legal to ship such a combination > > together). > > May be so. But this patch was supposed to print a helpful taint message to > draw our attention to the fact that ndis-wrapper was in use. The patch was > not intended to cause gpl'ed modules to stop loading (or if is was, that > effect was concealed from yours truly). > > IOW, this was a mistake. > > > Now, if we do want to disallow gpl module loading after ndis-wrapper has > been used then fine, we can discuss that. If we decide to proceed that way > then we will probably cause a load of ndis-wrapper to emit a scary printk for > six months or so to give people time to make arrangements. Yes, if I understand what's happening, then this was an unintended consequence. Does the patch below allow ndiswrapper to operate? Of course, this still leaves the kernel marked as tainted, without an indication of which module caused that. Not the best situation. --- From: Randy Dunlap <randy.dunlap@oracle.com> For ndiswrapper and driverloader, don't set the module->taints flags, just set the kernel global tainted flag. This should allow ndiswrapper to continue to use GPL symbols. Not tested. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> --- kernel/module.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) --- linux-2619-rc3-pv.orig/kernel/module.c +++ linux-2619-rc3-pv/kernel/module.c @@ -1718,9 +1718,9 @@ static struct module *load_module(void _ set_license(mod, get_modinfo(sechdrs, infoindex, "license")); if (strcmp(mod->name, "ndiswrapper") == 0) - add_taint_module(mod, TAINT_PROPRIETARY_MODULE); + add_taint(TAINT_PROPRIETARY_MODULE); if (strcmp(mod->name, "driverloader") == 0) - add_taint_module(mod, TAINT_PROPRIETARY_MODULE); + add_taint(TAINT_PROPRIETARY_MODULE); /* Set up MODINFO_ATTR fields */ setup_modinfo(mod, sechdrs, infoindex); ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-26 17:26 ` [PATCH ??] " Randy Dunlap @ 2006-10-27 14:23 ` Arjan van de Ven 2006-10-27 15:27 ` Randy Dunlap 2006-10-27 21:32 ` Florin Malita 0 siblings, 2 replies; 45+ messages in thread From: Arjan van de Ven @ 2006-10-27 14:23 UTC (permalink / raw) To: Randy Dunlap Cc: linux-kernel, proski, Alan Cox, cate, gianluca, Andrew Morton > > --- > From: Randy Dunlap <randy.dunlap@oracle.com> > > For ndiswrapper and driverloader, don't set the module->taints > flags, just set the kernel global tainted flag. > This should allow ndiswrapper to continue to use GPL symbols. > Not tested. can we put something in feature-removal that we'll undo this in say 6 months? ndiswrapper is easy to fix to not use the internals of the queue_work api, and just use schedule_work() instead. At that time the functionality as a whole is still the right one. (it's a separate question if ndiswrapper should be in this table; driverloader should be, it's non-GPL at all, so that part of your patch is broken) -- if you want to mail me at work (you don't), use arjan (at) linux.intel.com Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-27 14:23 ` Arjan van de Ven @ 2006-10-27 15:27 ` Randy Dunlap 2006-10-27 18:26 ` Andrew Morton 2006-10-27 21:32 ` Florin Malita 1 sibling, 1 reply; 45+ messages in thread From: Randy Dunlap @ 2006-10-27 15:27 UTC (permalink / raw) To: Arjan van de Ven Cc: linux-kernel, proski, Alan Cox, cate, gianluca, Andrew Morton On Fri, 27 Oct 2006 16:23:39 +0200 Arjan van de Ven wrote: > > --- > > From: Randy Dunlap <randy.dunlap@oracle.com> > > > > For ndiswrapper and driverloader, don't set the module->taints > > flags, just set the kernel global tainted flag. > > This should allow ndiswrapper to continue to use GPL symbols. > > Not tested. > > > can we put something in feature-removal that we'll undo this in say 6 > months? It's open for discussion AFAIK. > ndiswrapper is easy to fix to not use the internals of the queue_work > api, and just use schedule_work() instead. At that time the > functionality as a whole is still the right one. > (it's a separate question if ndiswrapper should be in this table; > driverloader should be, it's non-GPL at all, so that part of your patch > is broken) OK, here's the replacement for only ndiswrapper, not driverloader. --- From: Randy Dunlap <randy.dunlap@oracle.com> For ndiswrapper, don't set the module->taints flags, just set the kernel global tainted flag. This should allow ndiswrapper to continue to use GPL symbols. Not tested. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> --- kernel/module.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) --- linux-2619-rc3-pv.orig/kernel/module.c +++ linux-2619-rc3-pv/kernel/module.c @@ -1718,7 +1718,7 @@ static struct module *load_module(void _ set_license(mod, get_modinfo(sechdrs, infoindex, "license")); if (strcmp(mod->name, "ndiswrapper") == 0) - add_taint_module(mod, TAINT_PROPRIETARY_MODULE); + add_taint(TAINT_PROPRIETARY_MODULE); if (strcmp(mod->name, "driverloader") == 0) add_taint_module(mod, TAINT_PROPRIETARY_MODULE); ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-27 15:27 ` Randy Dunlap @ 2006-10-27 18:26 ` Andrew Morton 2006-10-27 22:56 ` Florin Malita 2006-10-29 11:27 ` Gianluca Alberici 0 siblings, 2 replies; 45+ messages in thread From: Andrew Morton @ 2006-10-27 18:26 UTC (permalink / raw) To: Randy Dunlap Cc: Arjan van de Ven, linux-kernel, proski, Alan Cox, cate, gianluca On Fri, 27 Oct 2006 08:27:41 -0700 Randy Dunlap <randy.dunlap@oracle.com> wrote: > From: Randy Dunlap <randy.dunlap@oracle.com> > > For ndiswrapper, don't set the module->taints flags, > just set the kernel global tainted flag. > This should allow ndiswrapper to continue to use GPL symbols. > Not tested. > > Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> > --- > kernel/module.c | 2 +- > 1 files changed, 1 insertion(+), 1 deletion(-) > > --- linux-2619-rc3-pv.orig/kernel/module.c > +++ linux-2619-rc3-pv/kernel/module.c > @@ -1718,7 +1718,7 @@ static struct module *load_module(void _ > set_license(mod, get_modinfo(sechdrs, infoindex, "license")); > > if (strcmp(mod->name, "ndiswrapper") == 0) > - add_taint_module(mod, TAINT_PROPRIETARY_MODULE); > + add_taint(TAINT_PROPRIETARY_MODULE); > if (strcmp(mod->name, "driverloader") == 0) > add_taint_module(mod, TAINT_PROPRIETARY_MODULE); > Could someone please test this for us? ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-27 18:26 ` Andrew Morton @ 2006-10-27 22:56 ` Florin Malita 2006-10-27 22:56 ` Randy Dunlap 2006-10-27 23:05 ` Alan Cox 2006-10-29 11:27 ` Gianluca Alberici 1 sibling, 2 replies; 45+ messages in thread From: Florin Malita @ 2006-10-27 22:56 UTC (permalink / raw) To: Andrew Morton Cc: Randy Dunlap, Arjan van de Ven, linux-kernel, proski, Alan Cox, cate, gianluca Andrew Morton wrote: > On Fri, 27 Oct 2006 08:27:41 -0700 > Randy Dunlap <randy.dunlap@oracle.com> wrote: > >> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> >> --- >> kernel/module.c | 2 +- >> 1 files changed, 1 insertion(+), 1 deletion(-) >> >> --- linux-2619-rc3-pv.orig/kernel/module.c >> +++ linux-2619-rc3-pv/kernel/module.c >> @@ -1718,7 +1718,7 @@ static struct module *load_module(void _ >> set_license(mod, get_modinfo(sechdrs, infoindex, "license")); >> >> if (strcmp(mod->name, "ndiswrapper") == 0) >> - add_taint_module(mod, TAINT_PROPRIETARY_MODULE); >> + add_taint(TAINT_PROPRIETARY_MODULE); >> if (strcmp(mod->name, "driverloader") == 0) >> add_taint_module(mod, TAINT_PROPRIETARY_MODULE); >> >> > > Could someone please test this for us? > Tested, works (ndiswrapper 1.27). Also, since driverloader is not GPL-compatible (MODULE_LICENSE("see LICENSE file; Copyright (c)2003-2004 Linuxant inc.")), that check is redundant. How about removing it (applies on top of Randy's patch)? Signed-off-by: Florin Malita <fmalita@gmail.com> --- module.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index 67009bd..293eb4c 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1719,8 +1719,6 @@ #endif if (strcmp(mod->name, "ndiswrapper") == 0) add_taint(TAINT_PROPRIETARY_MODULE); - if (strcmp(mod->name, "driverloader") == 0) - add_taint_module(mod, TAINT_PROPRIETARY_MODULE); /* Set up MODINFO_ATTR fields */ setup_modinfo(mod, sechdrs, infoindex); ^ permalink raw reply related [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-27 22:56 ` Florin Malita @ 2006-10-27 22:56 ` Randy Dunlap 2006-10-27 23:05 ` Alan Cox 1 sibling, 0 replies; 45+ messages in thread From: Randy Dunlap @ 2006-10-27 22:56 UTC (permalink / raw) To: Florin Malita Cc: Andrew Morton, Arjan van de Ven, linux-kernel, proski, Alan Cox, cate, gianluca Florin Malita wrote: > Andrew Morton wrote: >> On Fri, 27 Oct 2006 08:27:41 -0700 >> Randy Dunlap <randy.dunlap@oracle.com> wrote: >> >>> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> >>> --- >>> kernel/module.c | 2 +- >>> 1 files changed, 1 insertion(+), 1 deletion(-) >>> >>> --- linux-2619-rc3-pv.orig/kernel/module.c >>> +++ linux-2619-rc3-pv/kernel/module.c >>> @@ -1718,7 +1718,7 @@ static struct module *load_module(void _ >>> set_license(mod, get_modinfo(sechdrs, infoindex, "license")); >>> >>> if (strcmp(mod->name, "ndiswrapper") == 0) >>> - add_taint_module(mod, TAINT_PROPRIETARY_MODULE); >>> + add_taint(TAINT_PROPRIETARY_MODULE); >>> if (strcmp(mod->name, "driverloader") == 0) >>> add_taint_module(mod, TAINT_PROPRIETARY_MODULE); >>> >>> >> Could someone please test this for us? >> > > Tested, works (ndiswrapper 1.27). Thanks. > Also, since driverloader is not GPL-compatible (MODULE_LICENSE("see > LICENSE file; Copyright (c)2003-2004 Linuxant inc.")), that check is > redundant. How about removing it (applies on top of Randy's patch)? I agree. > Signed-off-by: Florin Malita <fmalita@gmail.com> > --- > > module.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/kernel/module.c b/kernel/module.c > index 67009bd..293eb4c 100644 > --- a/kernel/module.c > +++ b/kernel/module.c > @@ -1719,8 +1719,6 @@ #endif > > if (strcmp(mod->name, "ndiswrapper") == 0) > add_taint(TAINT_PROPRIETARY_MODULE); > - if (strcmp(mod->name, "driverloader") == 0) > - add_taint_module(mod, TAINT_PROPRIETARY_MODULE); > > /* Set up MODINFO_ATTR fields */ > setup_modinfo(mod, sechdrs, infoindex); > > -- ~Randy ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-27 22:56 ` Florin Malita 2006-10-27 22:56 ` Randy Dunlap @ 2006-10-27 23:05 ` Alan Cox 2006-10-27 23:02 ` Randy Dunlap ` (2 more replies) 1 sibling, 3 replies; 45+ messages in thread From: Alan Cox @ 2006-10-27 23:05 UTC (permalink / raw) To: Florin Malita Cc: Andrew Morton, Randy Dunlap, Arjan van de Ven, linux-kernel, proski, cate, gianluca Ar Gwe, 2006-10-27 am 18:56 -0400, ysgrifennodd Florin Malita: > Also, since driverloader is not GPL-compatible (MODULE_LICENSE("see > LICENSE file; Copyright (c)2003-2004 Linuxant inc.")), that check is > redundant. How about removing it (applies on top of Randy's patch)? > > > Signed-off-by: Florin Malita <fmalita@gmail.com> NAK Older versions of Linuxant's driverloader claim GPL\0some other text and systematically set out to abuse the license tag code. We should continue to carry the code for this. Alan ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-27 23:05 ` Alan Cox @ 2006-10-27 23:02 ` Randy Dunlap 2006-10-27 23:12 ` Florin Malita 2006-10-27 23:23 ` Oleg Verych 2 siblings, 0 replies; 45+ messages in thread From: Randy Dunlap @ 2006-10-27 23:02 UTC (permalink / raw) To: Alan Cox Cc: Florin Malita, Andrew Morton, Arjan van de Ven, linux-kernel, proski, cate, gianluca Alan Cox wrote: > Ar Gwe, 2006-10-27 am 18:56 -0400, ysgrifennodd Florin Malita: >> Also, since driverloader is not GPL-compatible (MODULE_LICENSE("see >> LICENSE file; Copyright (c)2003-2004 Linuxant inc.")), that check is >> redundant. How about removing it (applies on top of Randy's patch)? >> >> >> Signed-off-by: Florin Malita <fmalita@gmail.com> > > NAK > > Older versions of Linuxant's driverloader claim GPL\0some other text and > systematically set out to abuse the license tag code. We should continue > to carry the code for this. > > Alan I'm confused. Do you mean that we should continue to treate driverloader as GPL? Oh, I guess I see. You mean that we should continue to have special code to override their "GPL\0other text" license. OK. -- ~Randy ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-27 23:05 ` Alan Cox 2006-10-27 23:02 ` Randy Dunlap @ 2006-10-27 23:12 ` Florin Malita 2006-10-27 23:23 ` Oleg Verych 2 siblings, 0 replies; 45+ messages in thread From: Florin Malita @ 2006-10-27 23:12 UTC (permalink / raw) To: Alan Cox Cc: Andrew Morton, Randy Dunlap, Arjan van de Ven, linux-kernel, proski, cate, gianluca Alan Cox wrote: > Ar Gwe, 2006-10-27 am 18:56 -0400, ysgrifennodd Florin Malita: > >> Also, since driverloader is not GPL-compatible (MODULE_LICENSE("see >> LICENSE file; Copyright (c)2003-2004 Linuxant inc.")), that check is >> redundant. How about removing it (applies on top of Randy's patch)? >> >> >> Signed-off-by: Florin Malita <fmalita@gmail.com> >> > > NAK > > Older versions of Linuxant's driverloader claim GPL\0some other text and > systematically set out to abuse the license tag code. We should continue > to carry the code for this. > Older versions of driverloader won't even build for recent kernels (actually even the latest - 2.34 - fails with 2.6.19-rc3). Do you know of any driverloader version that actually works with 2.6.18+ and misrepresents its license? Seems to me they gave up that practice and currently the check is useless but if you want to keep it as a statement I can understand that :) --- fm ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-27 23:05 ` Alan Cox 2006-10-27 23:02 ` Randy Dunlap 2006-10-27 23:12 ` Florin Malita @ 2006-10-27 23:23 ` Oleg Verych 2 siblings, 0 replies; 45+ messages in thread From: Oleg Verych @ 2006-10-27 23:23 UTC (permalink / raw) To: linux-kernel On 2006-10-27, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote: > Ar Gwe, 2006-10-27 am 18:56 -0400, ysgrifennodd Florin Malita: >> Also, since driverloader is not GPL-compatible (MODULE_LICENSE("see >> LICENSE file; Copyright (c)2003-2004 Linuxant inc.")), that check is >> redundant. How about removing it (applies on top of Randy's patch)? >> >> >> Signed-off-by: Florin Malita <fmalita@gmail.com> > > NAK > > Older versions of Linuxant's driverloader claim GPL\0some other text and > systematically set out to abuse the license tag code. We should continue > to carry the code for this. > > Alan > ACK this NACK. Please, do not forget: Message-ID: <Pine.LNX.4.58.0404301401420.18014@ppc970.osdl.org> <http://permalink.gmane.org/gmane.linux.kernel/201265> ____ ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-27 18:26 ` Andrew Morton 2006-10-27 22:56 ` Florin Malita @ 2006-10-29 11:27 ` Gianluca Alberici 1 sibling, 0 replies; 45+ messages in thread From: Gianluca Alberici @ 2006-10-29 11:27 UTC (permalink / raw) To: Andrew Morton, linux-kernel Andrew Morton wrote: >On Fri, 27 Oct 2006 08:27:41 -0700 >Randy Dunlap <randy.dunlap@oracle.com> wrote: > > > >>From: Randy Dunlap <randy.dunlap@oracle.com> >> >>For ndiswrapper, don't set the module->taints flags, >>just set the kernel global tainted flag. >>This should allow ndiswrapper to continue to use GPL symbols. >>Not tested. >> >>Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> >>--- >> kernel/module.c | 2 +- >> 1 files changed, 1 insertion(+), 1 deletion(-) >> >>--- linux-2619-rc3-pv.orig/kernel/module.c >>+++ linux-2619-rc3-pv/kernel/module.c >>@@ -1718,7 +1718,7 @@ static struct module *load_module(void _ >> set_license(mod, get_modinfo(sechdrs, infoindex, "license")); >> >> if (strcmp(mod->name, "ndiswrapper") == 0) >>- add_taint_module(mod, TAINT_PROPRIETARY_MODULE); >>+ add_taint(TAINT_PROPRIETARY_MODULE); >> if (strcmp(mod->name, "driverloader") == 0) >> add_taint_module(mod, TAINT_PROPRIETARY_MODULE); >> >> >> > >Could someone please test this for us > > tested on rc2-mm2. It works. I think it would be really good to hear somebody from the ndiswrapper group about this thread. During these 6 months (?) i believe both the kernel and ndiswrapper could go very far with a good collaboration. Another thing: shouldnt be more efficent and readable to remove those "if ((strcmp...." from modules.c and to put all the tainted modules names into a separate source file into, say, a string array ? What if we had 250 tainted modules ? And finally, it seems to me that ideas are not perfectly clear about what Linux should / should not do in respect to - GPLed - NON GPLed - (???) GPLed drivers. I believe policies and potential problems should be cristal clear before making any implementation. Regards, Gianluca ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: [PATCH ??] Re: incorrect taint of ndiswrapper 2006-10-27 14:23 ` Arjan van de Ven 2006-10-27 15:27 ` Randy Dunlap @ 2006-10-27 21:32 ` Florin Malita 1 sibling, 0 replies; 45+ messages in thread From: Florin Malita @ 2006-10-27 21:32 UTC (permalink / raw) To: Arjan van de Ven Cc: Randy Dunlap, linux-kernel, proski, Alan Cox, cate, gianluca, Andrew Morton Arjan van de Ven wrote: > (it's a separate question if ndiswrapper should be in this table; > driverloader should be, it's non-GPL at all, so that part of your patch > is broken) > If driverloader is not GPLed then why does it need to be treated exceptionally to begin with? It taints the kernel anyway because of its license. --- fm ^ permalink raw reply [flat|nested] 45+ messages in thread
* Re: incorrect taint of ndiswrapper 2006-10-26 3:59 ` Andrew Morton ` (2 preceding siblings ...) 2006-10-26 17:26 ` [PATCH ??] " Randy Dunlap @ 2006-10-27 4:32 ` Florin Malita 3 siblings, 0 replies; 45+ messages in thread From: Florin Malita @ 2006-10-27 4:32 UTC (permalink / raw) To: Andrew Morton; +Cc: Alan Cox, proski, linux-kernel Andrew Morton wrote: > May be so. But this patch was supposed to print a helpful taint message to > draw our attention to the fact that ndis-wrapper was in use. The patch was > not intended to cause gpl'ed modules to stop loading (or if is was, that > effect was concealed from yours truly). > It's an unintended side effect of recent per-module-taint changes which exposed the special nature of ndiswrapper & driverloader taints. Here's where it went wrong: Florin Malita wrote: > No need to keep 'license_gplok' around anymore, it should be equivalent > to !(taints & TAINT_PROPRIETARY_MODULE). > That turns out to be true for every module under the sun except ndiswrapper & driverloader which are singled out and treated differently: their proprietary taint has nothing to do with their license. Randy's patch looks like a reasonable compromise to get them going again - the alternative being the reintroduction of license_gplok or some equivalent per-module flag just to support 2 hardcoded exceptions where GPL incompatibility and proprietary tainting are not correlated. --- fm ^ permalink raw reply [flat|nested] 45+ messages in thread
end of thread, other threads:[~2006-10-29 11:19 UTC | newest] Thread overview: 45+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-10-25 20:11 incorrect taint of ndiswrapper Pavel Roskin 2006-10-25 20:30 ` Alan Cox 2006-10-25 20:40 ` Kyle Moffett 2006-10-25 21:04 ` Alan Cox 2006-10-25 21:06 ` Pavel Roskin 2006-10-25 21:33 ` David Weinehall 2006-10-25 22:02 ` Pavel Roskin 2006-10-25 22:54 ` Alan Cox 2006-10-25 22:58 ` Alan Cox 2006-10-26 3:23 ` David Weinehall 2006-10-26 13:13 ` Thierry Vignaud 2006-10-26 13:21 ` Gianluca Alberici 2006-10-26 3:59 ` Andrew Morton 2006-10-26 9:03 ` Gianluca Alberici 2006-10-26 10:39 ` Alan Cox 2006-10-26 12:21 ` Giacomo A. Catenazzi 2006-10-26 12:59 ` Gianluca Alberici 2006-10-26 14:41 ` Al Viro 2006-10-26 14:55 ` Alan Cox 2006-10-26 16:00 ` Stephen Hemminger 2006-10-26 16:26 ` Gianluca Alberici 2006-10-27 14:24 ` Arjan van de Ven 2006-10-27 15:14 ` Stephen Hemminger 2006-10-26 19:19 ` Pavel Roskin 2006-10-26 21:46 ` Adrian Bunk 2006-10-26 22:29 ` Pavel Roskin 2006-10-26 23:00 ` Adrian Bunk 2006-10-26 23:36 ` Sven-Haegar Koch 2006-10-27 0:57 ` Adrian Bunk 2006-10-26 23:47 ` Pavel Roskin 2006-10-27 12:52 ` Roland Kuhn 2006-10-27 15:53 ` Pavel Roskin 2006-10-26 17:26 ` [PATCH ??] " Randy Dunlap 2006-10-27 14:23 ` Arjan van de Ven 2006-10-27 15:27 ` Randy Dunlap 2006-10-27 18:26 ` Andrew Morton 2006-10-27 22:56 ` Florin Malita 2006-10-27 22:56 ` Randy Dunlap 2006-10-27 23:05 ` Alan Cox 2006-10-27 23:02 ` Randy Dunlap 2006-10-27 23:12 ` Florin Malita 2006-10-27 23:23 ` Oleg Verych 2006-10-29 11:27 ` Gianluca Alberici 2006-10-27 21:32 ` Florin Malita 2006-10-27 4:32 ` Florin Malita
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox