Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux

Pull module signing fixes from Rusty Russell:
"David gave me these a month ago, during my git workflow churn :("

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
ASN.1: Fix an indefinite length skip error
MODSIGN: Don't use enum-type bitfields in module signature info block

+8 -8
+7 -7
kernel/module_signing.c
··· 27 27 * - Information block 28 28 */ 29 29 struct module_signature { 30 - enum pkey_algo algo : 8; /* Public-key crypto algorithm */ 31 - enum pkey_hash_algo hash : 8; /* Digest algorithm */ 32 - enum pkey_id_type id_type : 8; /* Key identifier type */ 33 - u8 signer_len; /* Length of signer's name */ 34 - u8 key_id_len; /* Length of key identifier */ 35 - u8 __pad[3]; 36 - __be32 sig_len; /* Length of signature data */ 30 + u8 algo; /* Public-key crypto algorithm [enum pkey_algo] */ 31 + u8 hash; /* Digest algorithm [enum pkey_hash_algo] */ 32 + u8 id_type; /* Key identifier type [enum pkey_id_type] */ 33 + u8 signer_len; /* Length of signer's name */ 34 + u8 key_id_len; /* Length of key identifier */ 35 + u8 __pad[3]; 36 + __be32 sig_len; /* Length of signature data */ 37 37 }; 38 38 39 39 /*
+1 -1
lib/asn1_decoder.c
··· 91 91 92 92 /* Extract the length */ 93 93 len = data[dp++]; 94 - if (len < 0x7f) { 94 + if (len <= 0x7f) { 95 95 dp += len; 96 96 goto next_tag; 97 97 }