[stgt] 0.9.11 released
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Wed Nov 25 02:00:37 CET 2009
On Tue, 24 Nov 2009 11:14:27 +0100
Albert Pauw <albert.pauw at gmail.com> wrote:
> Tomasz Chmielewski wrote:
> > FUJITA Tomonori wrote:
> >> The tar is also available:
> >>
> >> http://stgt.berlios.de/releases/tgt-0.9.11.tar.bz2
> >>
> >> As I wrote before, I plan to release the next version as 1.0.0. Let me
> >> know if you think that we need (or fix) something before releasing
> >> 1.0.0.
> >
> > I have a pending patch for tgt-admin, which adds support for different
> > "params", to be used with tape drives.
> >
> > Before I submit it "correctly" - there were some issues with tgtd core
> > dumping with certain configurations - Mark, Albert: what's the latest
> > status of it?
> >
> >
> Hi Tomasz,
>
> as far as I know Mark is trying to fix the problem, which he was able to
> reproduce, but I don't know the status of it.
> Yes, this would be a good thing to have in the 1.0.0 release (Mark's fix
> and yours).
I've not followed this. You said that tgtd works if you configure by
hand but it doesn't if you use targets.conf, right? If so, please find
out how commands to set up targets are different.
Anyway, your log (2009/10/28) says that the medium changer driver
crashes during READ_ELEMENT_STATUS due to some memory issue. Looks
like smc doesn't check memory overwrite. Can you try this?
diff --git a/usr/smc.c b/usr/smc.c
index 6430882..e7f0177 100644
--- a/usr/smc.c
+++ b/usr/smc.c
@@ -304,7 +304,7 @@ static int smc_read_element_status(int host_no, struct scsi_cmd *cmd)
}
}
- data = zalloc(alloc_len);
+ data = zalloc(alloc_len * 16);
if (!data) {
dprintf("Can't allocate enough memory for cmd\n");
key = HARDWARE_ERROR;
@@ -369,6 +369,7 @@ static int smc_read_element_status(int host_no, struct scsi_cmd *cmd)
/* Lastly, fill in data header */
len = element_status_data_hdr(data, dvcid, voltag, first, count);
+ eprintf("%d %d %d\n", alloc_len, len, count);
memcpy(scsi_get_in_buffer(cmd), data, min(len, alloc_len));
scsi_set_in_resid_by_actual(cmd, len);
free(data);
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list