Re: [PATCH] modversions: treat symbol CRCs as 32 bit quantities on 64 bit archs

2016-10-17 Thread Ard Biesheuvel
On 15 October 2016 at 10:16, Ard Biesheuvel wrote: > The symbol CRCs are emitted as ELF symbols, which allows us to easily > populate the kcrctab sections by relying on the linker to associate > each kcrctab slot with the correct value. > > This has two downsides: > -

Re: [PATCH] modversions: treat symbol CRCs as 32 bit quantities on 64 bit archs

2016-10-17 Thread Ard Biesheuvel
On 15 October 2016 at 10:16, Ard Biesheuvel wrote: > The symbol CRCs are emitted as ELF symbols, which allows us to easily > populate the kcrctab sections by relying on the linker to associate > each kcrctab slot with the correct value. > > This has two downsides: > - given that the CRCs are

[PATCH] modversions: treat symbol CRCs as 32 bit quantities on 64 bit archs

2016-10-15 Thread Ard Biesheuvel
The symbol CRCs are emitted as ELF symbols, which allows us to easily populate the kcrctab sections by relying on the linker to associate each kcrctab slot with the correct value. This has two downsides: - given that the CRCs are treated as pointers, we waste 4 bytes for each CRC on 64 bit

[PATCH] modversions: treat symbol CRCs as 32 bit quantities on 64 bit archs

2016-10-15 Thread Ard Biesheuvel
The symbol CRCs are emitted as ELF symbols, which allows us to easily populate the kcrctab sections by relying on the linker to associate each kcrctab slot with the correct value. This has two downsides: - given that the CRCs are treated as pointers, we waste 4 bytes for each CRC on 64 bit