[UBUNTU 20.04] zfcp: Fix panic on ERP timeout for previously dismissed ERP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
Skipper Bug Screeners | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Skipper Bug Screeners | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Undecided
|
Skipper Bug Screeners |
Bug Description
SRU Justification:
==================
[Impact]
* Linux kernel panics due to kernel page fault in IRQ context when running zfcp_erp_
[Fix]
* 936e6b85da0476d
[Test Case]
* Requires an IBM z13/z13s or LinuxONE Rockhopper/Emperor system (or newer) connected to zfcp capcble storage sub-system.
* Initiate an (ERP) timeout (maybe by injection or by causing a slow recovery otherwise).
* Monitor the system log for any kernel panics.
[Regression Potential]
* The regression can be considered as medium since the modification is platform specific / limited to s390x and again limited to the zfcp layer.
* Within zfcp it's further limited to the error recovery procedure (ERP) of fcp and only touches zfcp_erp.c, means the code path is mainly active under error conditions.
[Other]
* The above fix is upstream accepted with v5.8-rc3, hence will make it's way to groovy with kernel 5.8.
* Therefore this SRU request was submitted for bionic and focal only and not for groovy.
__________
Description: zfcp: Fix panic on ERP timeout for previously dismissed ERP
Symptom: Linux kernel panic due to kernel page fault in IRQ context
when running zfcp_erp_
Problem: Suppose that, for unrelated reasons, FSF requests on behalf
of recovery are very slow and can run into the ERP timeout.
In the case at hand, we did adapter recovery to a large
the corresponding fc_rport remains blocked. After
the port under which the LUN should have been opened. The
new higher order port recovery dismisses the pending LUN
open ERP action and dismisses the pending LUN open FSF
If now the ERP timeout for the pending open LUN request runs
out, we must not use zfcp_fsf_
Solution: Just like the regular response path ignores dismissed
is marked as dismissed in its status flags. To protect
our previous status flag check, return early if
as part of the dismissal above [zfcp_erp_
Upstream-ID: 936e6b85da0476d
Will be integrated by kernel 5.8 by groovy.
Please check that this also be integrated into 20.04
tags: | added: architecture-s39064 bugnameltc-186883 severity-high targetmilestone-inin20041 |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Released |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
According to linux / linux-next kernel. org/pub/ scm/linux/ kernel/ git/jejb/ scsi
$ git log --oneline --grep "scsi: zfcp: Fix panic on ERP timeout for previously dismissed ERP action"
3cd1c5d582f4 Merge tag 'scsi-fixes' of git://git.
936e6b85da04 scsi: zfcp: Fix panic on ERP timeout for previously dismissed ERP action
$ git tag --contains 936e6b85da04 | grep ^v
v5.8-rc3
v5.8-rc4
v5.8-rc5
this is upstream with v5.8-rc3 and higher and with that not in focal, yet.