• Hendrik Brueckner's avatar
    KEYS: correct alignment of system_certificate_list content in assembly file · 62226983
    Hendrik Brueckner authored
    Apart from data-type specific alignment constraints, there are also
    architecture-specific alignment requirements.
    For example, on s390 symbols must be on even addresses implying a 2-byte
    alignment.  If the system_certificate_list_end symbol is on an odd address
    and if this address is loaded, the least-significant bit is ignored.  As a
    result, the load_system_certificate_list() fails to load the certificates
    because of a wrong certificate length calculation.
    
    To be safe, align system_certificate_list on an 8-byte boundary.  Also improve
    the length calculation of the system_certificate_list content.  Introduce a
    system_certificate_list_size (8-byte aligned because of unsigned long) variable
    that stores the length.  Let the linker calculate this size by introducing
    a start and end label for the certificate content.
    Signed-off-by: default avatarHendrik Brueckner <brueckner@linux.vnet.ibm.com>
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    62226983
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt/kvm Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...