hw/sd: sd: Skip write protect groups check in sd_erase() for high capacity cards
authorBin Meng <bin.meng@windriver.com>
Tue, 16 Feb 2021 15:02:22 +0000 (23:02 +0800)
committerSoonKyu Park <sk7.park@samsung.com>
Tue, 23 Nov 2021 04:45:38 +0000 (13:45 +0900)
commit458b646456a9e7f1e14fba7cf18e5ff4a28f8a23
tree66a19b361377250afc06f70cd4b02c72c84b42df
parent9fa6d160a62197670cb863ae27a6441abd22a066
hw/sd: sd: Skip write protect groups check in sd_erase() for high capacity cards

Git-commit: 2473dc4022458dcc05ec367ce97edbef29d7e50c
References: bsc#1175144, CVE-2020-17380, bsc#1176681, CVE-2020-25085
References: bsc#1182282, CVE-2021-3409

High capacity cards don't support write protection hence we should
not perform the write protect groups check in sd_erase() for them.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210216150225.27996-6-bmeng.cn@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Bruce Rogers <brogers@suse.com>
hw/sd/sd.c