 |
|
 |
|
Next: Bug#169427: look no more
|
| Author |
Message |
External

Since: Dec 21, 2006 Posts: 192
|
(Msg. 1) Posted: Thu Aug 17, 2006 10:40 am
Post subject: Bug#383465: Contains obfuscated source code, DFSG violation? Archived from groups: linux>debian>bugs>dist, others (more info?)
|
|
|
Package: xserver-xorg-video-nv
Version: 1:1.0.1.5-2
Severity: serious
The nv driver appears to be heavily obfuscated and is effectively
unmodifiable. Rather than symbolic constants, almost every reference to
hardware is performed using undocumented hex. The only registers that
appear to be documented are the legacy CRTC ones which are effectively
identical over all hardware. Take for example NVBacklightEnable:
if((pNv->Chipset == 0x10DE0179) ||
(pNv->Chipset == 0x10DE0189) ||
(pNv->Chipset == 0x10DE0329))
{
/* NV17,18,34 Apple iMac, iBook, PowerBook */
CARD32 tmp_pmc, tmp_pcrt;
tmp_pmc = pNv->PMC[0x10F0/4] & 0x7FFFFFFF;
tmp_pcrt = pNv->PCRTC0[0x081C/4] & 0xFFFFFFFC;
if(on) {
tmp_pmc |= (1 << 31);
tmp_pcrt |= 0x1;
}
pNv->PMC[0x10F0/4] = tmp_pmc;
pNv->PCRTC0[0x081C/4] = tmp_pcrt;
}
The idea that nvidia do not posess an electronic list of register names
and offsets is entirely implausible. The only rational explanation is
that register information is postprocessed out in order to reduce
information leakage. The shipped code is certainly not the preferred
form for modification, and according to prevailing attitudes on
debian-legal should be removed from Debian.
--
Matthew Garrett | mjg59.DeleteThis@srcf.ucam.org
--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org |
|
| Back to top |
|
 |  |
External

Since: Nov 18, 2006 Posts: 31
|
(Msg. 2) Posted: Mon Aug 28, 2006 8:50 pm
Post subject: Bug#383465: Contains obfuscated source code, DFSG violation? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thu, Aug 17, 2006 at 02:12:17PM +0100, Matthew Garrett wrote:
> The nv driver appears to be heavily obfuscated and is effectively
> The idea that nvidia do not posess an electronic list of register names
> and offsets is entirely implausible. The only rational explanation is
> that register information is postprocessed out in order to reduce
> information leakage.
Or that nVidia never wrote the driver in the first place. I cannot find any
nVidia copyrights on it -- it seems to have been reverse-engineered and then
written up by the current copyright holders.
> The shipped code is certainly not the preferred form for modification
TBH, I don't think there is any other form in existence, unless you want to
count the proprietary drivers this probably was reverse engineered from at
some distant past.
/* Steinar */
--
Homepage: http://www.sesse.net/
--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org |
|
| Back to top |
|
 |  |
External

Since: Nov 20, 2006 Posts: 98
|
(Msg. 3) Posted: Tue Aug 29, 2006 5:10 am
Post subject: Bug#383465: Contains obfuscated source code, DFSG violation? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 2006-08-29 at 01:39, Matthew Garrett wrote:
> Sorry? 12 of the files in the source tree contain explicit Nvidia
> copyright statements. The others tend to have no copyrights at all, but
> are generally written by Mark Vojkovich who is an nvidia employee.
True. But as the driver is distributed under the MIT licence, I don't
think it has to be under the "preferred form for modification". Unless
Debian requires it ?
Xav
--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org |
|
| Back to top |
|
 |  |
External

Since: Feb 01, 2006 Posts: 377
|
(Msg. 4) Posted: Tue Aug 29, 2006 7:50 pm
Post subject: Re: Bug#383465: Contains obfuscated source code, DFSG violation? [Login to view extended thread Info.] Archived from groups: linux>debian>maint>x (more info?)
|
|
|
On Thu, Aug 17, 2006 at 02:12:17PM +0100, Matthew Garrett wrote:
> Package: xserver-xorg-video-nv
> Version: 1:1.0.1.5-2
> Severity: serious
>
<snip>
> The idea that nvidia do not posess an electronic list of register names
> and offsets is entirely implausible. The only rational explanation is
> that register information is postprocessed out in order to reduce
> information leakage. The shipped code is certainly not the preferred
> form for modification, and according to prevailing attitudes on
> debian-legal should be removed from Debian.
I'm not going to alter the severity because I agree with it to some degree.
But what I'd like to do is set it to wishlist and title it "Please
de-obfuscate the nv driver". It is feasible to do so if you have the will
and the hardware (I lack the latter, and my commitments make me lack the
former). Ideally it'd be a script we could run over the code every time
rather than patch that we'd have to port upon each upstream release.
If some enterprising Free Software advocate wants to work on this, they
have my full support and cooperation where I can offer it.
- David Nusinow
--
To UNSUBSCRIBE, email to debian-x-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org |
|
| Back to top |
|
 |  |
External

Since: Nov 20, 2006 Posts: 98
|
(Msg. 5) Posted: Wed Aug 30, 2006 5:50 am
Post subject: Re: Bug#383465: Contains obfuscated source code, DFSG violation? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 2006-08-29 at 20:43, David Nusinow wrote:
> But what I'd like to do is set it to wishlist and title it "Please
> de-obfuscate the nv driver".
I'm sure you know that, but isn't that what the "nouveau project"
<http://nouveau.freedesktop.org> is all about ? Maybe the nv driver
should be marked as problematic and the issue punted until the nouveau
driver is ready.
Xav
--
To UNSUBSCRIBE, email to debian-x-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org |
|
| Back to top |
|
 |  |
External

Since: Feb 01, 2006 Posts: 377
|
(Msg. 6) Posted: Wed Aug 30, 2006 8:40 pm
Post subject: Re: Bug#383465: Contains obfuscated source code, DFSG violation? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, Aug 30, 2006 at 10:48:16AM +0200, Xavier Bestel wrote:
> On Tue, 2006-08-29 at 20:43, David Nusinow wrote:
> > But what I'd like to do is set it to wishlist and title it "Please
> > de-obfuscate the nv driver".
>
> I'm sure you know that, but isn't that what the "nouveau project"
> <http://nouveau.freedesktop.org> is all about ? Maybe the nv driver
> should be marked as problematic and the issue punted until the nouveau
> driver is ready.
I have yet to look at the sources. Has he started cleaning up the magic
numbers or is he just reverse-engineering the 3d stuff? Anyway, once the
project is well off the ground I'm excited to start shipping it.
- David Nusinow
--
To UNSUBSCRIBE, email to debian-x-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org |
|
| Back to top |
|
 |  |
External

Since: Nov 20, 2006 Posts: 98
|
(Msg. 7) Posted: Thu Aug 31, 2006 4:50 am
Post subject: Re: Bug#383465: Contains obfuscated source code, DFSG violation? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 2006-08-30 at 21:39, David Nusinow wrote:
> On Wed, Aug 30, 2006 at 10:48:16AM +0200, Xavier Bestel wrote:
> > On Tue, 2006-08-29 at 20:43, David Nusinow wrote:
> > > But what I'd like to do is set it to wishlist and title it "Please
> > > de-obfuscate the nv driver".
> >
> > I'm sure you know that, but isn't that what the "nouveau project"
> > <http://nouveau.freedesktop.org> is all about ? Maybe the nv driver
> > should be marked as problematic and the issue punted until the nouveau
> > driver is ready.
>
> I have yet to look at the sources. Has he started cleaning up the magic
> numbers or is he just reverse-engineering the 3d stuff? Anyway, once the
> project is well off the ground I'm excited to start shipping it.
>From a quick look at the sources he just is REing the 3d stuff. The 2d
part looks like a copy/paste from nv (so I was wrong).
<looks at the wiki>
Apparently the driver should be working at least as well as nv does. It
could easily replace it really soon (to have more exposure) and wait
there until the 3d part is working. But maybe this is better dealt with
the authors themselves.
Xav
--
To UNSUBSCRIBE, email to debian-x-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|