aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2023-10-27 17:58:12 +0000
committerKeith Busch <[email protected]>2023-12-04 16:39:03 +0000
commite6e7f7ac03e40795346f1b2994a05f507ad8d345 (patch)
tree3e48f621f67d05ce07d4c6f71b6ac16a1f346206 /security/selinux/hooks.c
parentnvme: introduce helper function to get ctrl state (diff)
downloadkernel-e6e7f7ac03e40795346f1b2994a05f507ad8d345.tar.gz
kernel-e6e7f7ac03e40795346f1b2994a05f507ad8d345.zip
nvme: ensure reset state check ordering
A different CPU may be setting the ctrl->state value, so ensure proper barriers to prevent optimizing to a stale state. Normally it isn't a problem to observe the wrong state as it is merely advisory to take a quicker path during initialization and error recovery, but seeing an old state can report unexpected ENETRESET errors when a reset request was in fact successful. Reported-by: Minh Hoang <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Hannes Reinecke <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions