ibmvscsis: Do not send aborted task response
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
High
|
Manoj Iyer | ||
linux (Ubuntu) |
Incomplete
|
High
|
Manoj Iyer | ||
Zesty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
ibmvscsis: Do not send aborted task response
The driver is sending a response to the actual scsi op that was
aborted by an abort task TM, while LIO is sending a response to
the abort task TM.
ibmvscsis_tgt does not send the response to the client until
release_cmd time. The reason for this was because if we did it
at queue_status time, then the client would be free to reuse the
tag for that command, but we're still using the tag until the
command is released at release_cmd time, so we chose to delay
sending the response until then. That then caused this issue, because
release_cmd is always called, even if queue_status is not.
SCSI spec says that the initiator that sends the abort task
TM NEVER gets a response to the aborted op and with the current
code it will send a response. Thus this fix will remove that response
if the CMD_T_ABORTED && !CMD_T_TAS.
Another case with a small timing window is the case where if LIO sends a
TMR_DOES_NOT_EXIST, and the release_cmd callback is called for the TMR Abort
cmd before the release_cmd for the (attemped) aborted cmd, then we need to
ensure that we send the response for the (attempted) abort cmd to the client
before we send the response for the TMR Abort cmd.
[Test Case]
As per comment #11, this requires sending manual abort signals to trigger the bug.
[Fix]
ibmvscsis: Fix the incorrect req_lim_delta
ibmvscsis: Clear left-over abort_cmd pointers
ibmvscsis: Do not send aborted task response
target: Fix unknown fabric callback queue-full errors
[Regression Potential]
Patches are confined to ibmvscsi driver and target driver.
CVE References
tags: | added: architecture-ppc64le bugnameltc-154092 severity-high targetmilestone-inin1610 |
Changed in ubuntu: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
assignee: | Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Manoj Iyer (manjo) |
tags: |
added: architecture-ppc64 removed: architecture-ppc64le |
tags: | added: ubuntu-17.04 |
description: | updated |
description: | updated |
description: | updated |
Changed in ubuntu-power-systems: | |
importance: | Undecided → High |
tags: | added: triage-a |
Changed in linux (Ubuntu Zesty): | |
status: | New → Fix Committed |
Changed in ubuntu-power-systems: | |
status: | Incomplete → Fix Committed |
tags: |
added: verification-done-zesty removed: verification-needed-zesty |
Changed in ubuntu-power-systems: | |
assignee: | nobody → Manoj Iyer (manjo) |
tags: |
added: triage-g removed: triage-a |
tags: | removed: bugnameltc-154092 severity-high triage-g ubuntu-17.04 verification-done-zesty |
tags: | added: bugnameltc-154092 severity-high |
Changed in ubuntu-power-systems: | |
status: | Fix Committed → Fix Released |
tags: |
added: targetmilestone-inin1704 removed: targetmilestone-inin1610 |
tags: | added: cscc |
Can you please test the kernel in https:/ /launchpad. net/~ubuntu- power-triage/ +archive/ ubuntu/ test/ and report back here?