linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [integrity:next-queued-testing 2/13] include/linux/module_signature.h:32:2: error: unknown type name 'u8'
@ 2019-08-07 23:00 kbuild test robot
  2019-08-08  0:55 ` Thiago Jung Bauermann
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2019-08-07 23:00 UTC (permalink / raw)
  To: Thiago Jung Bauermann; +Cc: kbuild-all, linux-integrity, Mimi Zohar

[-- Attachment #1: Type: text/plain, Size: 2803 bytes --]

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-queued-testing
head:   cd3553a6a5047b7a759803ae3ba3991a901b89f8
commit: a5e7fd15c3b94862ce3639e82cabd2de74a0ad90 [2/13] MODSIGN: Export module signature definitions
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
        git checkout a5e7fd15c3b94862ce3639e82cabd2de74a0ad90
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from <command-line>:0:0:
>> include/linux/module_signature.h:32:2: error: unknown type name 'u8'
     u8 algo;  /* Public-key crypto algorithm [0] */
     ^~
   include/linux/module_signature.h:33:2: error: unknown type name 'u8'
     u8 hash;  /* Digest algorithm [0] */
     ^~
   include/linux/module_signature.h:34:2: error: unknown type name 'u8'
     u8 id_type; /* Key identifier type [PKEY_ID_PKCS7] */
     ^~
   include/linux/module_signature.h:35:2: error: unknown type name 'u8'
     u8 signer_len; /* Length of signer's name [0] */
     ^~
   include/linux/module_signature.h:36:2: error: unknown type name 'u8'
     u8 key_id_len; /* Length of key identifier [0] */
     ^~
   include/linux/module_signature.h:37:2: error: unknown type name 'u8'
     u8 __pad[3];
     ^~
>> include/linux/module_signature.h:38:2: error: unknown type name '__be32'
     __be32 sig_len; /* Length of signature data */
     ^~~~~~
>> include/linux/module_signature.h:41:54: error: unknown type name 'size_t'
    int mod_check_sig(const struct module_signature *ms, size_t file_len,
                                                         ^~~~~~

vim +/u8 +32 include/linux/module_signature.h

    20	
    21	/*
    22	 * Module signature information block.
    23	 *
    24	 * The constituents of the signature section are, in order:
    25	 *
    26	 *	- Signer's name
    27	 *	- Key identifier
    28	 *	- Signature data
    29	 *	- Information block
    30	 */
    31	struct module_signature {
  > 32		u8	algo;		/* Public-key crypto algorithm [0] */
    33		u8	hash;		/* Digest algorithm [0] */
    34		u8	id_type;	/* Key identifier type [PKEY_ID_PKCS7] */
  > 35		u8	signer_len;	/* Length of signer's name [0] */
  > 36		u8	key_id_len;	/* Length of key identifier [0] */
    37		u8	__pad[3];
  > 38		__be32	sig_len;	/* Length of signature data */
    39	};
    40	
  > 41	int mod_check_sig(const struct module_signature *ms, size_t file_len,
    42			  const char *name);
    43	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 69526 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [integrity:next-queued-testing 2/13] include/linux/module_signature.h:32:2: error: unknown type name 'u8'
  2019-08-07 23:00 [integrity:next-queued-testing 2/13] include/linux/module_signature.h:32:2: error: unknown type name 'u8' kbuild test robot
@ 2019-08-08  0:55 ` Thiago Jung Bauermann
  0 siblings, 0 replies; 2+ messages in thread
From: Thiago Jung Bauermann @ 2019-08-08  0:55 UTC (permalink / raw)
  To: kbuild test robot; +Cc: kbuild-all, linux-integrity, Mimi Zohar


kbuild test robot <lkp@intel.com> writes:

> tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-queued-testing
> head:   cd3553a6a5047b7a759803ae3ba3991a901b89f8
> commit: a5e7fd15c3b94862ce3639e82cabd2de74a0ad90 [2/13] MODSIGN: Export module signature definitions
> config: x86_64-allyesconfig (attached as .config)
> compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
> reproduce:
>         git checkout a5e7fd15c3b94862ce3639e82cabd2de74a0ad90
>         # save the attached .config to linux build tree
>         make ARCH=x86_64 
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>    In file included from <command-line>:0:0:
>>> include/linux/module_signature.h:32:2: error: unknown type name 'u8'
>      u8 algo;  /* Public-key crypto algorithm [0] */
>      ^~
>    include/linux/module_signature.h:33:2: error: unknown type name 'u8'
>      u8 hash;  /* Digest algorithm [0] */
>      ^~
>    include/linux/module_signature.h:34:2: error: unknown type name 'u8'
>      u8 id_type; /* Key identifier type [PKEY_ID_PKCS7] */
>      ^~
>    include/linux/module_signature.h:35:2: error: unknown type name 'u8'
>      u8 signer_len; /* Length of signer's name [0] */
>      ^~
>    include/linux/module_signature.h:36:2: error: unknown type name 'u8'
>      u8 key_id_len; /* Length of key identifier [0] */
>      ^~
>    include/linux/module_signature.h:37:2: error: unknown type name 'u8'
>      u8 __pad[3];
>      ^~
>>> include/linux/module_signature.h:38:2: error: unknown type name '__be32'
>      __be32 sig_len; /* Length of signature data */
>      ^~~~~~
>>> include/linux/module_signature.h:41:54: error: unknown type name 'size_t'
>     int mod_check_sig(const struct module_signature *ms, size_t file_len,
>                                                          ^~~~~~

This is the same issue spotted and fixed by Stephen Rothwell here:

https://lore.kernel.org/linux-next/20190806121519.0f8ac653@canb.auug.org.au/

Mimi added his patch to her linux-integrity/next-integrity branch so it
is fixed already.
-- 
Thiago Jung Bauermann
IBM Linux Technology Center

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-08  0:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-07 23:00 [integrity:next-queued-testing 2/13] include/linux/module_signature.h:32:2: error: unknown type name 'u8' kbuild test robot
2019-08-08  0:55 ` Thiago Jung Bauermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).