From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 19 22:56:39 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C824B428 for ; Fri, 19 Dec 2014 22:56:39 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9522B2542 for ; Fri, 19 Dec 2014 22:56:39 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sBJMudJ5097521 for ; Fri, 19 Dec 2014 22:56:39 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 179523] [cpuctl] [patch] Memory leak/corruption in cpuctl pseudo-driver and more Date: Fri, 19 Dec 2014 22:56:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 9.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: samflanker@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2014 22:56:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=179523 Vladimir Laskov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |samflanker@gmail.com --- Comment #2 from Vladimir Laskov --- # uname -a FreeBSD anonymous.orb 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 # dmesg | grep ^CPU CPU: Intel(R) Xeon(R) CPU E3-1270 v3 @ 3.50GHz (3491.99-MHz K8-class CPU) # /usr/sbin/cpucontrol -u -d /usr/local/share/cpucontrol /dev/cpuctl1 /usr/local/share/cpucontrol/m32306c3_0000001c.fw: updating cpu /dev/cpuctl1 from rev 0x9 to rev 0x1c... failed. cpucontrol: ioctl(): Invalid argument /usr/local/share/cpucontrol/06-3c-03: updating cpu /dev/cpuctl1 from rev 0x9 to rev 0x16... failed. cpucontrol: ioctl(): Invalid argument /usr/local/share/cpucontrol/m32306c3_0000001c.fw: updating cpu /dev/cpuctl1 from rev 0x9 to rev 0x1c... failed. cpucontrol: ioctl(): Invalid argument /usr/local/share/cpucontrol/06-3c-03: updating cpu /dev/cpuctl1 from rev 0x9 to rev 0x16... failed. cpucontrol: ioctl(): Invalid argument # grep "UCODE_SIZE_MAX" /usr/src/sys/dev/cpuctl/cpuctl.c | head -1 #define UCODE_SIZE_MAX (16 * 1024) # patch -p0 < file.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sys/dev/cpuctl/cpuctl.c.orig 2012-12-03 19:52:24.000000000 -0500 |+++ sys/dev/cpuctl/cpuctl.c 2013-06-12 13:15:20.000000000 -0400 -------------------------- Patching file sys/dev/cpuctl/cpuctl.c using Plan A... Hunk #1 failed at 63. Hunk #2 failed at 295. Hunk #3 failed at 314. Hunk #4 succeeded at 416 with fuzz 2 (offset 70 lines). Hunk #5 failed at 479. Hunk #6 failed at 498. Hunk #7 failed at 546. 6 out of 7 hunks failed--saving rejects to sys/dev/cpuctl/cpuctl.c.rej done John, please modify patch for 10.1-RELEASE -- You are receiving this mail because: You are the assignee for the bug.