Ignore:
Timestamp:
05/21/2020 07:40:38 AM (21 months ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, ml-11.0, multilib, old-trunk, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
Children:
d2c3c576
Parents:
aabe1fa
Message:

Fix kernel crash when using STACK_PROTECTOR_STRONG=y

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11852 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/kernel.xml

    raabe1fa r1405c4a  
    5454    kernel compilation. Do not rely on the source tree being clean after
    5555    un-tarring.</para>
     56
     57    <!-- The following paragraph and sed should be only necessary on the 5.6
     58         series, but check when 5.7 is out. -->
     59    <para>When using <envar>CONFIG_STACKPROTECTOR_STRONG=y</envar>, and
     60    compiling with GCC 10 and later, the default optimization is too
     61    aggressive, and generates a kernel panic when booting. This can be
     62    fixed with:</para>
     63
     64<screen><userinput remap="pre">sed -e '/cpu_startup/a asm("");' \
     65    -i arch/x86/{kernel/smpboot.c,xen/smp_pv.c}</userinput></screen>
    5666
    5767    <!-- Support for compiling a keymap into the kernel is deliberately removed -->
Note: See TracChangeset for help on using the changeset viewer.