<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/scsi/iscsi_boot_sysfs.c, branch linux-4.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-06-30T00:07:53Z</updated>
<entry>
<title>scsi: iscsi: Fix reference count leak in iscsi_boot_create_kobj</title>
<updated>2020-06-30T00:07:53Z</updated>
<author>
<name>Qiushi Wu</name>
</author>
<published>2020-05-28T20:13:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d9aa44efed5e656f543e6af54f215eadeb33f054'/>
<id>urn:sha1:d9aa44efed5e656f543e6af54f215eadeb33f054</id>
<content type='text'>
[ Upstream commit 0267ffce562c8bbf9b57ebe0e38445ad04972890 ]

kobject_init_and_add() takes reference even when it fails. If this
function returns an error, kobject_put() must be called to properly
clean up the memory associated with the object.

Link: https://lore.kernel.org/r/20200528201353.14849-1-wu000273@umn.edu
Reviewed-by: Lee Duncan &lt;lduncan@suse.com&gt;
Signed-off-by: Qiushi Wu &lt;wu000273@umn.edu&gt;
Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>[SCSI] iscsi_boot_sysfs: Fix a memory leak in iscsi_boot_destroy_kset()</title>
<updated>2014-03-15T17:19:19Z</updated>
<author>
<name>Ethan Zhao</name>
</author>
<published>2014-02-07T06:41:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9cb48e7b9efb02beedb874855c74a226c1b08f6b'/>
<id>urn:sha1:9cb48e7b9efb02beedb874855c74a226c1b08f6b</id>
<content type='text'>
Load and unload iscsi_ibft module will cause kernel memory leak, fix it
in scsi/iscsi_boot_sysfs.c iscsi_boot_destroy_kset().

Signed-off-by: Ethan Zhao &lt;ethan.kernel@gmail.com&gt;
Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>switch -&gt;is_visible() to returning umode_t</title>
<updated>2012-01-04T03:54:55Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2011-07-24T03:11:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=587a1f1659e8b330b8738ef4901832a2b63f0bed'/>
<id>urn:sha1:587a1f1659e8b330b8738ef4901832a2b63f0bed</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>[SCSI] iscsi_ibft, be2iscsi, iscsi_boot: fix boot kobj data lifetime management</title>
<updated>2011-06-29T21:43:06Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2011-06-24T20:11:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f457a46f179df41b0f6d80dee33b6e629945f276'/>
<id>urn:sha1:f457a46f179df41b0f6d80dee33b6e629945f276</id>
<content type='text'>
be2iscsi passes the boot functions its phba object which is
allocated in the shost, but iscsi_ibft passes in a object
allocated for each item to display. The problem is that
iscsi_boot_sysfs was managing the lifetime of the object
passed in and doing a kfree on release. This causes a double
free for be2iscsi which frees the shost in its pci_remove.

This patch fixes the problem by adding a release callback
which the drivers can call kfree or a put() type of function
(needed for be2iscsi which will do a get/put on the shost).

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] iscsi_boot_sysfs: have this module check for null on destruction</title>
<updated>2011-06-29T21:43:03Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2011-06-24T20:11:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d04516310aaef3970c642a54531a52123001178'/>
<id>urn:sha1:9d04516310aaef3970c642a54531a52123001178</id>
<content type='text'>
This moves the check for NULL boot_sets to the iscsi_boot_sysfs
module instead of having the drivers do it.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] iscsi boot: mv iscsi_boot_sysfs to drivers/scsi</title>
<updated>2010-08-06T15:45:07Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2010-08-02T17:46:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aab7a8fd19d0c2f7fcac4d07616899655e326dfe'/>
<id>urn:sha1:aab7a8fd19d0c2f7fcac4d07616899655e326dfe</id>
<content type='text'>
iscsi_boot_sysfs does not depend on firmware. Any iscsi driver
can use it. This patch moves iscsi_boot_sysfs to the scsi
dir, so that it can be used on any arch with any driver.

Signed-off-by: Mike Christie &lt;mchristi@redhat.com&gt;
Acked-by: Konrad Rzeszutek Wilk &lt;konrad@kernel.org&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
</feed>
