[scsi-0121]scsi: sd: Clear sdkp->protection_type if disk is reformatted without PI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Fix Released
|
Undecided
|
dann frazier | ||
Ubuntu-18.04 |
Fix Released
|
Undecided
|
dann frazier | ||
Ubuntu-18.04-hwe |
Fix Released
|
Undecided
|
dann frazier | ||
Ubuntu-20.04 |
Fix Released
|
Undecided
|
dann frazier | ||
Upstream-kernel |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Bug Description]
If an attached disk with protection information enabled is reformatted
to Type 0 the revalidation code does not clear the original protection
type and subsequent accesses will keep setting RDPROTECT/
Set the protection type to 0 if the disk reports PROT_EN=0 in READ
CAPACITY(16).
[Steps to Reproduce]
1.Format a SAS disk as DIF disk;
2.insmod SAS with DIF/DIX enable;
3. Format the DIF disk as a normal disk;
[Actual Results]
IO error occurs;
[Expected Results]
Without exception
[Reproducibility]
Inevitably
[Additional information]
Hardware: D06
Firmware: NA
Kernel: NA
[Resolution]
Set the protection type to 0 if the disk reports PROT_EN=0 in READ
CAPACITY(16).
scsi: sd: Clear sdkp->protectio
Changed in kunpeng920: | |
assignee: | nobody → dann frazier (dannf) |
This patch is queued for stable, so should normally flow into all supported streams.