Red Hat Bugzilla – Bug 975175
tgtadm receives invalid request response
Last modified: 2015-02-18 08:56:48 EST
# tgtadm --lld iscsi --op new --mode target --tid 1 --targetname iqn.2010-10.org.example:volume-123
tgtadm: invalid request
It happens that tgtadm sends a request with 0 length because of a bug in concat_buf.
We should also remove the cast to size_t * on the call to open_memstream. First, because it's not needed with this patch, second because it hides bugs like this.
This also happens on Fedora 19 Beta, with scsi-target-utils 1.0.32-5.fc19, which is the same version for Fedora 18, with the only change in the release number being fc18 instead of fc19.
Could we please get the attached patch added do Fedora 18, 19 and 20 ?
Created attachment 762139 [details]
Uses size_t for open_memstream size parameter.
Great, nice catch.
Can we get this bug fixed upstream too? I'd say please go ahead and remove the cast you mentioned, and add a Signed-off-by line, then either send the updated patch to email@example.com, or attach it here and I'd be happy to help get it in.
------- Comment From firstname.lastname@example.org 2013-06-17 20:37 EDT-------
(In reply to comment #9)
> Great, nice catch.
> Can we get this bug fixed upstream too? I'd say please go ahead and remove
> the cast you mentioned, and add a Signed-off-by line, then either send the
> updated patch to email@example.com, or attach it here and I'd be happy to
> help get it in.
Done. Thanks a lot for the suggestion. Let's see if it is applied.
------- Comment From firstname.lastname@example.org 2013-06-18 12:54 EDT-------
(In reply to comment #10)
> (In reply to comment #9)
> > Great, nice catch.
> > Can we get this bug fixed upstream too? I'd say please go ahead and remove
> > the cast you mentioned, and add a Signed-off-by line, then either send the
> > updated patch to email@example.com, or attach it here and I'd be happy to
> > help get it in.
> Done. Thanks a lot for the suggestion. Let's see if it is applied.
Applied as commit cfa068904894938ba61e4690f27794e2caf4a34b at http://github.com/fujita/tgt.git.
I'll do updated packages that include this fix when the next version of tgt is released, next week.
This message is a notice that Fedora 19 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 19. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 19 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.