[PATCH v3 1/3] KEYS: Expand key->{datalen,quotalen} to unsigned int

Eric Biggers ebiggers at kernel.org
Tue Oct 20 15:47:14 UTC 2026


On Tue, Oct 20, 2026 at 04:38:55AM +0300, Jarkko Sakkinen wrote:
> diff --git a/include/linux/key.h b/include/linux/key.h
> index e40b5267658f..26139c3adf62 100644
> --- a/include/linux/key.h
> +++ b/include/linux/key.h
> @@ -216,8 +216,8 @@ struct key {
>  	kuid_t			uid;
>  	kgid_t			gid;
>  	key_perm_t		perm;		/* access permissions */
> -	unsigned short		quotalen;	/* length added to quota */
> -	unsigned short		datalen;	/* payload data length
> +	unsigned int		quotalen;	/* length added to quota */
> +	unsigned int		datalen;	/* payload data length
>  						 * - may not match RCU dereferenced payload
>  						 * - payload should contain own length
>  						 */

fs/smb/client/cifsacl.c contains some debug logging that prints
key::datalen using the %hu format specifier.  Those need to be updated
to %u to match the new type.

- Eric



More information about the Linux-security-module-archive mailing list