]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rxrpc: Fix key quota calculation for multitoken keys
authorDavid Howells <dhowells@redhat.com>
Wed, 8 Apr 2026 12:12:29 +0000 (13:12 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Apr 2026 01:44:31 +0000 (18:44 -0700)
commitbdbfead6d38979475df0c2f4bad2b19394fe9bdc
tree69795fa8f4e245cb832d4f4ccdfd3c62714a6fd3
parentc09ea768bdb975e828f8e17293c397c3d14ad85d
rxrpc: Fix key quota calculation for multitoken keys

In the rxrpc key preparsing, every token extracted sets the proposed quota
value, but for multitoken keys, this will overwrite the previous proposed
quota, losing it.

Fix this by adding to the proposed quota instead.

Fixes: 8a7a3eb4ddbe ("KEYS: RxRPC: Use key preparsing")
Closes: https://sashiko.dev/#/patchset/20260319150150.4189381-1-dhowells%40redhat.com
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Jeffrey Altman <jaltman@auristor.com>
cc: Simon Horman <horms@kernel.org>
cc: linux-afs@lists.infradead.org
cc: stable@kernel.org
Link: https://patch.msgid.link/20260408121252.2249051-2-dhowells@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rxrpc/key.c