From owner-freebsd-audit@FreeBSD.ORG Sun Oct 8 12:30:28 2006 Return-Path: X-Original-To: freebsd-audit@freebsd.org Delivered-To: freebsd-audit@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3F2416A534 for ; Sun, 8 Oct 2006 12:30:28 +0000 (UTC) (envelope-from jonathan@buzzard.me.uk) Received: from pih-relay06.plus.net (pih-relay06.plus.net [212.159.14.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1611D43D67 for ; Sun, 8 Oct 2006 12:29:42 +0000 (GMT) (envelope-from jonathan@buzzard.me.uk) Received: from [81.174.149.38] (helo=small.buzzard.me.uk) by pih-relay06.plus.net with esmtp (Exim) id 1GWXma-0002Ux-V0 for freebsd-audit@freebsd.org; Sun, 08 Oct 2006 13:29:29 +0100 Received: from grumpy.buzzard.me.uk ([192.168.42.3]) by small.buzzard.me.uk with esmtp (Exim 4.50) id 1GWXmY-0006AN-AO for freebsd-audit@freebsd.org; Sun, 08 Oct 2006 13:29:26 +0100 Message-ID: <4528EF25.1000103@buzzard.me.uk> Date: Sun, 08 Oct 2006 13:29:25 +0100 From: Jonathan Buzzard User-Agent: Debian Thunderbird 1.0.2 (X11/20060830) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-audit@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: GPL License violation X-BeenThere: freebsd-audit@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Security Audit List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Oct 2006 12:30:29 -0000 I received an email yesterday asking about the license of some code found in FreeBSD to turn the fan on a Dell laptop on/off, the code in question is shown below. I do not know exactly where in FreeBSD this code lies, as I do not use FreeBSD. Neither do I want or should have to go looking for it. This code has been lifted verbatim out of drivers/char/i8k.c in Linux, which in itself was a minor modification of code in drivers/char/toshiba.c mdae by myself. This code dates back to January 1998, and was first included in Linux around 2.2.20. I am the original author of this code, and it is clearly and only ever licensed under the GPL. I must insist that it be removed forwith from FreeBSD. JAB. (cut along the line) -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<------- asm("pushl %%eax\n\t" \ "movl 0(%%eax),%%edx\n\t" \ "push %%edx\n\t" \ "movl 4(%%eax),%%ebx\n\t" \ "movl 8(%%eax),%%ecx\n\t" \ "movl 12(%%eax),%%edx\n\t" \ "movl 16(%%eax),%%esi\n\t" \ "movl 20(%%eax),%%edi\n\t" \ "popl %%eax\n\t" \ "out %%al,$0xb2\n\t" \ "out %%al,$0x84\n\t" \ "xchgl %%eax,(%%esp)\n\t" "movl %%ebx,4(%%eax)\n\t" \ "movl %%ecx,8(%%eax)\n\t" \ "movl %%edx,12(%%eax)\n\t" \ "movl %%esi,16(%%eax)\n\t" \ "movl %%edi,20(%%eax)\n\t" \ "popl %%edx\n\t" \ "movl %%edx,0(%%eax)\n\t" \ "lahf\n\t" \ "shrl $8,%%eax\n\t" \ "andl $1,%%eax\n" \ : "=a" (rc) : "a" (regs) : "%ebx", "%ecx", "%edx", "%esi", "%edi", "memory"); if ((rc != 0) || ((regs->eax & 0xffff) == 0xffff) || (regs->eax == eax)) { return -1; } -------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<------- -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Northumberland, United Kingdom. Tel: +44 1661-832195