diff options
| author | Gui-Dong Han <hanguidong02@gmail.com> | 2026-05-29 06:34:06 +0300 |
|---|---|---|
| committer | Jarkko Sakkinen <jarkko@kernel.org> | 2026-06-15 15:19:12 +0300 |
| commit | c1201b37f666f6466ab1fd3a381c2b7a4b7e9fee (patch) | |
| tree | 1f4e30cb2a6eb11e5890547ca0ebdf275a62a106 /include/linux/platform_data | |
| parent | cc99abbe2aa7aed48fc7d8d21514240e063ea732 (diff) | |
| download | linux-c1201b37f666f6466ab1fd3a381c2b7a4b7e9fee.tar.xz | |
KEYS: Use acquire when reading state in keyring search
The negative-key race fix added release/acquire ordering for key use.
Publish payload before state; read state before payload.
keyring_search_iterator() still uses READ_ONCE() before match callbacks.
An asymmetric match callback calls asymmetric_key_ids(), which reads
key->payload.data[asym_key_ids].
Use key_read_state() there to complete that ordering.
Fixes: 363b02dab09b ("KEYS: Fix race between updating and finding a negative key")
Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20260529033406.20673-1-hanguidong02@gmail.com
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
