commit | 8e9a27b6dcb17dd4b8622b6ade68b7f6e45317c7 | [log] [tgz] |
---|---|---|
author | Keith Busch <[email protected]> | Thu Sep 22 08:13:47 2022 -0700 |
committer | Meena Shanmugam <[email protected]> | Fri Dec 02 00:32:11 2022 +0000 |
tree | 57418c2346242b7ed26284f6c8cab90936fc6cbd | |
parent | 5a7389f1876e1f5e262a56972142e3ea607c8d05 [diff] |
nvme: ensure subsystem reset is single threaded commit 1e866afd4bcdd01a70a5eddb4371158d3035ce03 upstream. The subsystem reset writes to a register, so we have to ensure the device state is capable of handling that otherwise the driver may access unmapped registers. Use the state machine to ensure the subsystem reset doesn't try to write registers on a device already undergoing this type of reset. BUG=b/246924114 TEST=presubmit,validation RELEASE_NOTE=Fixes CVE-2022-3169 in the Linux kernel. cos-patch: security-moderate Link: https://bugzilla.kernel.org/show_bug.cgi?id=214771 Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Ovidiu Panait <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Change-Id: If1bce9edc8120cc4dbe1f913bb22692756d33456 Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/39448 Tested-by: Cusky Presubmit Bot <[email protected]> Reviewed-by: Oleksandr Tymoshenko <[email protected]>