Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2014 22:56:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 179523] [cpuctl] [patch] Memory leak/corruption in cpuctl pseudo-driver and more
Message-ID:  <bug-179523-8-1lpQPbg7uj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-179523-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-179523-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=179523

Vladimir Laskov <samflanker@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |samflanker@gmail.com

--- Comment #2 from Vladimir Laskov <samflanker@gmail.com> ---
# 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-179523-8-1lpQPbg7uj>