<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/scsi, 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-27T18:22:27Z</updated>
<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>Merge head 'upstream-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev</title>
<updated>2005-08-24T03:00:17Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-08-24T03:00:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=005940ead619c2867e0465c8e0fffb9e5989b57e'/>
<id>urn:sha1:005940ead619c2867e0465c8e0fffb9e5989b57e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[PATCH] Kconfig fix (non-modular SCSI drivers)</title>
<updated>2005-08-24T01:43:46Z</updated>
<author>
<name>Al Viro</name>
<email>viro@www.linux.org.uk</email>
</author>
<published>2005-08-23T21:48:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fa53bb650e6747628276e3ab6d98f51d9bfb0573'/>
<id>urn:sha1:fa53bb650e6747628276e3ab6d98f51d9bfb0573</id>
<content type='text'>
non-modular scsi drivers depend on built-in scsi

Signed-off-by: Al Viro &lt;viro@parcelfarce.linux.theplanet.co.uk&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Kconfig fix (acornscsi)</title>
<updated>2005-08-24T01:43:42Z</updated>
<author>
<name>Al Viro</name>
<email>viro@www.linux.org.uk</email>
</author>
<published>2005-08-23T21:46:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a838e543db8f65ccbc710548916f20c23e51a363'/>
<id>urn:sha1:a838e543db8f65ccbc710548916f20c23e51a363</id>
<content type='text'>
acornscsi had been broken for a long time; marked as such

Signed-off-by: Al Viro &lt;viro@parcelfarce.linux.theplanet.co.uk&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>libata: release prep (bump versions, etc.)</title>
<updated>2005-08-23T06:53:51Z</updated>
<author>
<name>Jeff Garzik</name>
<email>jgarzik@pobox.com</email>
</author>
<published>2005-08-23T06:53:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6885433c25aaca2cb13ee52a94be156163d6aa23'/>
<id>urn:sha1:6885433c25aaca2cb13ee52a94be156163d6aa23</id>
<content type='text'>
- bump versions where necessary
- remove two duplicated+outdated doc comments
- add MODULE_VERSION() to AHCI driver
</content>
</entry>
<entry>
<title>Revert "dc395x: Fix support for highmem"</title>
<updated>2005-08-14T22:43:39Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-08-14T22:43:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b4b08e581fac8e0ba9ae348bdc13246c9798c99e'/>
<id>urn:sha1:b4b08e581fac8e0ba9ae348bdc13246c9798c99e</id>
<content type='text'>
It introduces a repeatable oops in the driver, which is a bigger problem
than the patch tries to solve. From the original description:

    Author: Jamie Lenehan &lt;lenehan@twibble.org&gt;
    Date:   Thu Mar 3 14:41:40 2005 +0200

    [PATCH] dc395x: Fix support for highmem

    From: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;

    Removes the page_to_virt and maps sg lists dynamically.
    This makes the driver work with highmem pages.

    Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
    Signed-off-by: Jamie Lenehan &lt;lenehan@twibble.org&gt;
    Signed-off-by: James Bottomley &lt;James.Bottomley@SteelEye.com&gt;

Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>Merge head 'upstream-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev</title>
<updated>2005-08-10T18:56:19Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-08-10T18:56:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0893dd327ffacb83dcca9033d2891d57b4024d6b'/>
<id>urn:sha1:0893dd327ffacb83dcca9033d2891d57b4024d6b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libata: fix EH-related lockup by properly cleaning EH command list</title>
<updated>2005-08-10T17:38:27Z</updated>
<author>
<name>Tejun Heo</name>
<email>htejun@gmail.com</email>
</author>
<published>2005-08-10T17:38:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=42517438f9c1011a03e49a542cba32ac5a80dd8e'/>
<id>urn:sha1:42517438f9c1011a03e49a542cba32ac5a80dd8e</id>
<content type='text'>
Yet another hack due to the fact that libata is the only user of SCSI's
-&gt;eh_strategy_handler() hook.
</content>
</entry>
<entry>
<title>[PATCH] sata: fix sata_sx4 dma_prep to not use sg-&gt;length</title>
<updated>2005-08-10T17:34:58Z</updated>
<author>
<name>Tejun Heo</name>
<email>htejun@gmail.com</email>
</author>
<published>2005-08-07T05:53:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fae009847c9ea3d668bbee21ce1d76764eca5039'/>
<id>urn:sha1:fae009847c9ea3d668bbee21ce1d76764eca5039</id>
<content type='text'>
 sata_sx4 directly references sg-&gt;length to calculate total_len in
pdc20621_dma_prep().  This is incorrect as dma_map_sg() could have
merged multiple sg's into one and, in such case, sg-&gt;length doesn't
reflect true size of the entry.  This patch makes it use
sg_dma_len(sg).

Signed-off-by: Tejun Heo &lt;htejun@gmail.com&gt;
Signed-off-by: Jeff Garzik &lt;jgarzik@pobox.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] dpt_i2o pci_request_regions fix</title>
<updated>2005-08-09T17:09:53Z</updated>
<author>
<name>Salyzyn, Mark</name>
<email>mark_salyzyn@adaptec.com</email>
</author>
<published>2005-08-09T16:57:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5bb8345db8f2aef367e0fddf99a42b7a6029b31f'/>
<id>urn:sha1:5bb8345db8f2aef367e0fddf99a42b7a6029b31f</id>
<content type='text'>
Originally From: Andrew Morton &lt;akpm@osdl.org&gt;

Altered By: "Salyzyn, Mark" &lt;mark_salyzyn@adaptec.com&gt;

There is an additional 'build fix' patch that Andrew Morton submitted on
the kernel list (I have changed out his dpr_i2o with dpt_i2o below
though).

Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@SteelEye.com&gt;
</content>
</entry>
</feed>
