summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2025-03-16 07:05:40 +0300
committerAlexei Starovoitov <ast@kernel.org>2025-03-19 18:03:06 +0300
commitea21771c077c7aa85d46dd021d03eb0d96b5f418 (patch)
tree1d9bbca422a4fdddd49aa54c1635ec166b2aa8a6 /rust/helpers/helpers.c
parent0de2046137f976e7302d43ac01d9894d07ac1fff (diff)
downloadlinux-ea21771c077c7aa85d46dd021d03eb0d96b5f418.tar.xz
bpf: Maintain FIFO property for rqspinlock unlock
Since out-of-order unlocks are unsupported for rqspinlock, and irqsave variants enforce strict FIFO ordering anyway, make the same change for normal non-irqsave variants, such that FIFO ordering is enforced. Two new verifier state fields (active_lock_id, active_lock_ptr) are used to denote the top of the stack, and prev_id and prev_ptr are ascertained whenever popping the topmost entry through an unlock. Take special care to make these fields part of the state comparison in refsafe. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20250316040541.108729-25-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions