<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers, branch v2.6.13</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.13</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.13'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2005-08-28T20:53:48Z</updated>
<entry>
<title>[PATCH] zfcp: bugfix and compile fixes</title>
<updated>2005-08-28T20:53:48Z</updated>
<author>
<name>Heiko Carstens</name>
<email>heiko.carstens@de.ibm.com</email>
</author>
<published>2005-08-28T20:22:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=20b1730af3ae05450b0e03f5aed40c4313f65db6'/>
<id>urn:sha1:20b1730af3ae05450b0e03f5aed40c4313f65db6</id>
<content type='text'>
Bugfix (usage of uninitialized pointer in zfcp_port_dequeue) and compile
fixes for the zfcp device driver.

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Acked-by: James Bottomley &lt;James.Bottomley@steeleye.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] zfcp: fix compilation due to rports changes</title>
<updated>2005-08-28T17:43:18Z</updated>
<author>
<name>Alexey Dobriyan</name>
<email>adobriyan@gmail.com</email>
</author>
<published>2005-08-28T11:33:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7f84f226389fc5f47b3cb36818972e2e171607de'/>
<id>urn:sha1:7f84f226389fc5f47b3cb36818972e2e171607de</id>
<content type='text'>
struct zfcp_port::scsi_id was removed by commit
  3859f6a248cbdfbe7b41663f3a2b51f48e30b281

Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>Merge refs/heads/upstream-fixes from master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 </title>
<updated>2005-08-28T01:05:14Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-08-28T01:05:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3d52acb34247816c453f94596e6c7fc4499b76dc'/>
<id>urn:sha1:3d52acb34247816c453f94596e6c7fc4499b76dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[PATCH] Remove race between con_open and con_close</title>
<updated>2005-08-28T01:03:42Z</updated>
<author>
<name>Paul Mackerras</name>
<email>paulus@samba.org</email>
</author>
<published>2005-08-27T23:40:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f786648b89f00d4e66fe6b19beffd30e764651fc'/>
<id>urn:sha1:f786648b89f00d4e66fe6b19beffd30e764651fc</id>
<content type='text'>
[ Same race and same patch also by Steven Rostedt &lt;rostedt@goodmis.org&gt; ]

I have a laptop (G3 powerbook) which will pretty reliably hit a race
between con_open and con_close late in the boot process and oops in
vt_ioctl due to tty-&gt;driver_data being NULL.

What happens is this: process A opens /dev/tty6; it comes into
con_open() (drivers/char/vt.c) and assign a non-NULL value to
tty-&gt;driver_data.  Then process A closes that and concurrently process
B opens /dev/tty6.  Process A gets through con_close() and clears
tty-&gt;driver_data, since tty-&gt;count == 1.  However, before process A
can decrement tty-&gt;count, we switch to process B (e.g. at the
down(&amp;tty_sem) call at drivers/char/tty_io.c line 1626).

So process B gets to run and comes into con_open with tty-&gt;count == 2,
as tty-&gt;count is incremented (in init_dev) before con_open is called.
Because tty-&gt;count != 1, we don't set tty-&gt;driver_data.  Then when the
process tries to do anything with that fd, it oopses.

The simple and effective fix for this is to test tty-&gt;driver_data
rather than tty-&gt;count in con_open.  The testing and setting of
tty-&gt;driver_data is serialized with respect to the clearing of
tty-&gt;driver_data in con_close by the console_sem.  We can't get a
situation where con_open sees tty-&gt;driver_data != NULL and then
con_close on a different fd clears tty-&gt;driver_data, because
tty-&gt;count is incremented before con_open is called.  Thus this patch
eliminates the race, and in fact with this patch my laptop doesn't
oops.

Signed-off-by: Paul Mackerras &lt;paulus@samba.org&gt;
[ Same patch
Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
  in http://marc.theaimsgroup.com/?l=linux-kernel&amp;m=112450820432121&amp;w=2 ]
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] zfcp: add rports to enable scsi_add_device to work again</title>
<updated>2005-08-27T18:22:36Z</updated>
<author>
<name>Andreas Herrmann</name>
<email>aherrman@de.ibm.com</email>
</author>
<published>2005-08-27T18:07:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3859f6a248cbdfbe7b41663f3a2b51f48e30b281'/>
<id>urn:sha1:3859f6a248cbdfbe7b41663f3a2b51f48e30b281</id>
<content type='text'>
This patch fixes a severe problem with 2.6.13-rc7.

Due to recent SCSI changes it is not possible to add any LUNs to the zfcp
device driver anymore.  With registration of remote ports this is fixed.

Signed-off-by: Andreas Herrmann &lt;aherrman@de.ibm.com&gt;
Acked-by: James Bottomley &lt;jejb@steeleye.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] sg.c: fix a memory leak in devices seq_file implementation</title>
<updated>2005-08-27T18:22:27Z</updated>
<author>
<name>Jan Blunck</name>
<email>j.blunck@tu-harburg.de</email>
</author>
<published>2005-08-27T18:07:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=729d70f5dfd663b44bca68a4479c96bde7e535d6'/>
<id>urn:sha1:729d70f5dfd663b44bca68a4479c96bde7e535d6</id>
<content type='text'>
I know that scsi procfs is legacy code but this is a fix for a memory leak.

While reading through sg.c I realized that the implementation of
/proc/scsi/sg/devices with seq_file is leaking memory due to freeing the
pointer returned by the next() iterator method.  Since next() might return
NULL or an error this is wrong.  This patch fixes it through using the
seq_files private field for holding the reference to the iterator object.

Here is a small bash script to trigger the leak. Use slabtop to watch
the size-32 usage grow and grow.

#!/bin/sh

while true; do
	cat /proc/scsi/sg/devices &gt; /dev/null
done

Signed-off-by: Jan Blunck &lt;j.blunck@tu-harburg.de&gt;
Acked-by: James Bottomley &lt;James.Bottomley@steeleye.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] fix for race problem in DVB USB drivers (dibusb)</title>
<updated>2005-08-27T18:03:45Z</updated>
<author>
<name>Patrick Boettcher</name>
<email>patrick.boettcher@desy.de</email>
</author>
<published>2005-08-27T17:30:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8126fdbc76351bdf99c6737ef4fecf88a22fa538'/>
<id>urn:sha1:8126fdbc76351bdf99c6737ef4fecf88a22fa538</id>
<content type='text'>
Fixed race between submitting streaming URBs in the driver and starting
the actual transfer in hardware (demodulator and USB controller) which
sometimes lead to garbled data transfers. URBs are now submitted first,
then the transfer is enabled. Dibusb devices and clones are now fully
functional again.

Signed-off-by: Patrick Boettcher &lt;pb@linuxtv.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Fix capifs bug in initialization error path.</title>
<updated>2005-08-27T17:11:40Z</updated>
<author>
<name>James Morris</name>
<email>jmorris@namei.org</email>
</author>
<published>2005-08-27T11:47:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=820d220de400cfaaf846a2d8b5de93f9ea5a9b80'/>
<id>urn:sha1:820d220de400cfaaf846a2d8b5de93f9ea5a9b80</id>
<content type='text'>
This fixes a bug in the capifs initialization code, where the
filesystem is not unregistered if kern_mount() fails.

Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
Signed-off-by: Karsten Keil &lt;kkeil@suse.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] acpi_shutdown: Only prepare for power off on power_off</title>
<updated>2005-08-27T17:11:40Z</updated>
<author>
<name>Eric W. Biederman</name>
<email>ebiederm@xmission.com</email>
</author>
<published>2005-08-27T06:56:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8dbddf17824861f2298de093549e6493d9844835'/>
<id>urn:sha1:8dbddf17824861f2298de093549e6493d9844835</id>
<content type='text'>
When acpi_sleep_prepare was moved into a shutdown method we
started calling it for all shutdowns.

It appears this triggers some systems to power off on reboot.

Avoid this by only calling acpi_sleep_prepare if we are going to power
off the system.

Signed-off-by: Eric W. Biederman &lt;ebiederm@xmission.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Fix 6pack setting of MAC address</title>
<updated>2005-08-27T08:32:39Z</updated>
<author>
<name>Ralf Baechle</name>
<email>ralf@linux-mips.org</email>
</author>
<published>2005-08-24T17:01:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=214838a2108b4b1e18abce2e28d37996e9bf7c68'/>
<id>urn:sha1:214838a2108b4b1e18abce2e28d37996e9bf7c68</id>
<content type='text'>
Don't check type of sax25_family; dev_set_mac_address has already done
that before and anyway, the type to check against would have been
ARPHRD_AX25.  We only got away because AF_AX25 and ARPHRD_AX25 both happen
to be defined to the same value.

Don't check sax25_ndigis either; it's value is insignificant for the
purpose of setting the MAC address and the check has shown to break
some application software for no good reason.

Signed-off-by: Ralf Baechle DL5RB &lt;ralf@linux-mips.org&gt;
Signed-off-by: Jeff Garzik &lt;jgarzik@pobox.com&gt;
</content>
</entry>
</feed>
