• Vasily Gorbik's avatar
    s390: clean .bss before running uncompressed kernel · 2e83e0eb
    Vasily Gorbik authored
    Clean uncompressed kernel .bss section in the startup code before
    the uncompressed kernel is executed. At this point of time initrd and
    certificates have been already rescued. Uncompressed kernel .bss size
    is known from vmlinux_info. It is also taken into consideration during
    uncompressed kernel positioning by kaslr (so it is safe to clean it).
    
    With that uncompressed kernel is starting with .bss section zeroed and
    no .bss section usage restrictions apply. Which makes chkbss checks for
    uncompressed kernel objects obsolete and they can be removed.
    
    early_nobss.c is also not needed anymore. Parts of it which are still
    relevant are moved to early.c. Kasan initialization code is now called
    directly from head64 (early.c is instrumented and should not be
    executed before kasan shadow memory is set up).
    Reviewed-by: default avatarPhilipp Rudo <prudo@linux.ibm.com>
    Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    2e83e0eb
head64.S 1.73 KB