summaryrefslogtreecommitdiff
path: root/include/linux/stacktrace.h
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko@kernel.org>2026-10-20 20:43:20 +0300
committerJarkko Sakkinen <jarkko@kernel.org>2026-11-05 19:19:35 +0200
commit094c53d2994975e36d4cab7cf5d9f34c1b0f1916 (patch)
treebabe0ffcc322ed89e11b59ff81ebf51b0fd46fc3 /include/linux/stacktrace.h
parent4a65eaf146f0d10ebaa88cfaef9c3b24f93766d9 (diff)
KEYS: Reject descriptions larger than KEY_MAX_DESC_SIZE
KEY_MAX_DESC_SIZE includes the trailing NULL character. Descriptions generated from payloads and in-kernel paths bypass the userspace limit. Reject descriptions at or above KEY_MAX_DESC_SIZE with -EINVAL at the following sites: - key_alloc(): before quota calculation - __key_create_or_update(): before key_set_index_key() - keyring_search(): before match_preparse - request_key_and_link(): before match_preparse - request_key_rcu(): before check_cached_key() Cc: stable@vger.kernel.org Fixes: f771fde82051 ("keys: Simplify key description management") Reviewed-by: David Howells <dhowells@redhat.com> Reviewed-by: Eric Biggers <ebiggers@kernel.org> Link: https://lore.kernel.org/r/20261020174325.2229448-3-jarkko@kernel.org Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions