<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/char/ipmi, branch v2.6.16.20</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v2.6.16.20</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v2.6.16.20'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2006-04-24T16:56:04Z</updated>
<entry>
<title>[PATCH] Open IPMI BT overflow</title>
<updated>2006-04-24T16:56:04Z</updated>
<author>
<name>Heikki Orsila</name>
<email>shd@jolt.modeemi.cs.tut.fi</email>
</author>
<published>2006-04-19T17:01:01Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=3696ee36c993baee282a7be6245c7e7df5db1f83'/>
<id>urn:sha1:3696ee36c993baee282a7be6245c7e7df5db1f83</id>
<content type='text'>
I was looking into random driver code and found a suspicious looking
memcpy() in drivers/char/ipmi/ipmi_bt_sm.c on 2.6.17-rc1:

	if ((size &lt; 2) || (size &gt; IPMI_MAX_MSG_LENGTH))
		return -1;
	...
	memcpy(bt-&gt;write_data + 3, data + 1, size - 1);

where sizeof bt-&gt;write_data is IPMI_MAX_MSG_LENGTH.  It looks like the
memcpy would overflow by 2 bytes if size == IPMI_MAX_MSG_LENGTH.  A patch
attached to limit size to (IPMI_MAX_LENGTH - 2).

Cc: Corey Minyard &lt;minyard@acm.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>[PATCH] IPMI: fix issues reported by Coverity in ipmi_msghandler.c</title>
<updated>2006-02-03T16:32:11Z</updated>
<author>
<name>Jayachandran C</name>
<email>c.jayachandran@gmail.com</email>
</author>
<published>2006-02-03T11:04:51Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=12fc1d7b4b08a80776de3073439a09f54ce31f8f'/>
<id>urn:sha1:12fc1d7b4b08a80776de3073439a09f54ce31f8f</id>
<content type='text'>
While looking to the report by Coverity in ipmi, I came across the
following issue:

The IPMI message handler relies on two defines which are the same -one in
include/linux/ipmi.h
#define IPMI_NUM_CHANNELS 0x10
and one in drivers/char/ipmi/ipmi_msghandler.
#define IPMI_MAX_CHANNELS       16
These are used interchangeably in ipmi_msghandler.c, but since the array
addr-&gt;channels[] is of size IPMI_MAX_CHANNELS, I have made a patch that
uses IPMI_MAX_CHANNELS for all the checks for the array index.

NOTE: You could probably remove the line that defines IPMI_NUM_CHANNELS
from ipmi.h, or move IPMI_MAX_CHANNELS to ipmi.h

Signed-off-by: Jayachandran C. &lt;c.jayachandran@gmail.com&gt;
Cc: Corey Minyard &lt;minyard@acm.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] ipmi: mem_{in,out}[bwl] =&gt; intf_mem_{in,out}[bwl]</title>
<updated>2006-02-03T16:32:09Z</updated>
<author>
<name>Alexey Dobriyan</name>
<email>adobriyan@gmail.com</email>
</author>
<published>2006-02-03T11:04:40Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=546cfdf47f2ea2438b01f8626a60b87f9d8d1e53'/>
<id>urn:sha1:546cfdf47f2ea2438b01f8626a60b87f9d8d1e53</id>
<content type='text'>
On mips:

drivers/char/ipmi/ipmi_si_intf.c:1274: error: conflicting types for 'mem_inb'
include/asm/io.h:436: error: previous definition of 'mem_inb' was here

Don't look at line 436 unless you really know what you're doing.

Move those static functions out of more or less generic namespace.

Signed-off-by: Alexey "## should be banned" Dobriyan &lt;adobriyan@gmail.com&gt;
Acked-by: Corey Minyard &lt;minyard@acm.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] IPMI: remove invalid acpi register spacing check</title>
<updated>2006-02-01T16:53:11Z</updated>
<author>
<name>Rocky Craig</name>
<email>rocky.craig@hp.com</email>
</author>
<published>2006-02-01T11:04:58Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=94f91def998efe3b79780f3b39b6c87d390dbe4c'/>
<id>urn:sha1:94f91def998efe3b79780f3b39b6c87d390dbe4c</id>
<content type='text'>
At the 2.6.12 timeframe ipmi_si_intf.c was patched to provide default
register spacings in try_init_acpi() if the register spacing was set to
zero, similar to code in other routines.

Unfortunately, another patch was simultaneously added that exits early from
try_init_acpi() if the register spacings are set to zero, circumventing the
new defaults.  This patch removes the early exit code and some incorrect
comments that aren't present in other common code snippets.

Signed-off-by: Rocky Craig &lt;rocky.craig@hp.com&gt;
Signed-off-by: Corey Minyard &lt;minyard@acm.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] ipmi: use CONFIG_DMI instead of CONFIG_X86</title>
<updated>2006-01-12T02:42:13Z</updated>
<author>
<name>Matt Domsch</name>
<email>Matt_Domsch@dell.com</email>
</author>
<published>2006-01-11T20:17:44Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a9fad4cc3975573a359a92ad047f5995d8391631'/>
<id>urn:sha1:a9fad4cc3975573a359a92ad047f5995d8391631</id>
<content type='text'>
With Andi Kleen's x86_64 patch to use DMI, and my ia64 to use DMI, there is
now a new CONFIG_DMI option which takes the place of CONFIG_X86 to denote
the availability of the DMI functions.  Make the IPMI driver use CONFIG_DMI
instead.

Tested on ia64 2.6.15 kernel plus the previous patch, on a Dell PowerEdge
7250 Itanium2 server, and it now autodetects the IPMI KCS driver as
expected.

Signed-off-by: Matt Domsch &lt;Matt_Domsch@dell.com&gt;
Acked-by: Corey Minyard &lt;minyard@acm.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] ipmi: fix compile errors with PROC_FS=n</title>
<updated>2006-01-10T16:01:25Z</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@stusta.de</email>
</author>
<published>2006-01-10T04:51:36Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=be4f1bb2627c2d963d09be1cd69f8820995a9112'/>
<id>urn:sha1:be4f1bb2627c2d963d09be1cd69f8820995a9112</id>
<content type='text'>
...
  CC [M]  drivers/char/ipmi/ipmi_msghandler.o
drivers/char/ipmi/ipmi_msghandler.c:3301: `proc_ipmi_root' undeclared here (not in a function)
drivers/char/ipmi/ipmi_msghandler.c:3301: initializer element is not constant
drivers/char/ipmi/ipmi_msghandler.c:3301: (near initialization for `__ksymtab_proc_ipmi_root.value')
drivers/char/ipmi/ipmi_msghandler.c:1535: warning: `ipmb_file_read_proc' defined but not used
drivers/char/ipmi/ipmi_msghandler.c:1551: warning: `version_file_read_proc' defined but not used
drivers/char/ipmi/ipmi_msghandler.c:1561: warning: `stat_file_read_proc' defined but not used
...
  CC [M]  drivers/char/ipmi/ipmi_poweroff.o
drivers/char/ipmi/ipmi_poweroff.c: In function `ipmi_poweroff_init':
drivers/char/ipmi/ipmi_poweroff.c:616: warning: implicit declaration of function `unregister_sysctl_table'
drivers/char/ipmi/ipmi_poweroff.c:616: `ipmi_table_header' undeclared (first use in this function)
drivers/char/ipmi/ipmi_poweroff.c:616: (Each undeclared identifier is reported only once
drivers/char/ipmi/ipmi_poweroff.c:616: for each function it appears in.)

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Cc: Corey Minyard &lt;minyard@acm.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] fix remaining list_for_each_safe_rcu in -mm (take 2)</title>
<updated>2006-01-06T16:33:58Z</updated>
<author>
<name>Paul E. McKenney</name>
<email>paulmck@us.ibm.com</email>
</author>
<published>2006-01-06T08:19:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=066bb8d03b6e52e4844d37145573d6a2bedaa339'/>
<id>urn:sha1:066bb8d03b6e52e4844d37145573d6a2bedaa339</id>
<content type='text'>
I missed a use of list_for_each_rcu_safe() in -mm tree.  Here is an updated
patch to fix it.  This time tested on a machine that actually uses IPMI...
(Thanks to Serge Hallyn for spotting this.)

Signed-off-by: "Paul E. McKenney" &lt;paulmck@us.ibm.com&gt;
Cc: Corey Minyard &lt;minyard@acm.org&gt;
Cc: Matt Domsch &lt;Matt_Domsch@dell.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] IPMI oops fix</title>
<updated>2005-12-15T22:22:45Z</updated>
<author>
<name>Paolo Galtieri</name>
<email>pgaltieri@mvista.com</email>
</author>
<published>2005-12-15T20:34:28Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=7767e126ca0f32cd0438455fdd9650f909d2eeb3'/>
<id>urn:sha1:7767e126ca0f32cd0438455fdd9650f909d2eeb3</id>
<content type='text'>
While doing some testing I discovered that if the BIOS on a board does not
properly setup the DMI information it leads to a panic in the IPMI code.

The panic is due to dereferencing a pointer which is not initialized.  The
pointer is initialized in port_setup() and/or mem_setup() and used in
init_one_smi() and cleanup_one_si(), however if either port_setup() or
mem_setup() return ENODEV the pointer does not get initialized.

Signed-off-by: Paolo Galtieri &lt;pgaltieri@mvista.com&gt;
Acked-by: Corey Minyard &lt;cminyard@mvista.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] ipmi: fix panic generator ID</title>
<updated>2005-12-12T16:57:45Z</updated>
<author>
<name>Matt Domsch</name>
<email>Matt_Domsch@dell.com</email>
</author>
<published>2005-12-12T08:37:32Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=cda315aba34ff4fb66bbb2945b723688f3414a75'/>
<id>urn:sha1:cda315aba34ff4fb66bbb2945b723688f3414a75</id>
<content type='text'>
The IPMI specifcation says the generator ID is 0x20, but that is for bits
7-1.  Bit 0 is set to specify it is a software event.  The correct value is
0x41.  Without this fix, panic events written into the System Event Log
appear to come from an "unknown" generator, rather than from the kernel.

Signed-off-by: Jordan Hargrave &lt;Jordan_Hargrave@dell.com&gt;
Signed-off-by: Matt Domsch &lt;Matt_Domsch@dell.com&gt;
Acked-by: Corey Minyard &lt;minyard@acm.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] ipmi: missing NULL test for kthread</title>
<updated>2005-11-18T15:49:45Z</updated>
<author>
<name>Matt Domsch</name>
<email>Matt_Domsch@dell.com</email>
</author>
<published>2005-11-18T09:10:54Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=44f080c46e84090daf81b4d142359f8e38d7c5ee'/>
<id>urn:sha1:44f080c46e84090daf81b4d142359f8e38d7c5ee</id>
<content type='text'>
On IPMI systems with BT interfaces, we don't start the kernel thread, so
smi_info-&gt;thread is NULL.  Test for NULL when stopping the thread, because
kthread_stop() doesn't, and an oops ensues otherwise.

Signed-off-by: Matt Domsch &lt;Matt_Domsch@dell.com&gt;
Acked-by: Corey Minyard &lt;minyard@acm.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
