Changeset 83b8644


Ignore:
Timestamp:
08/24/2022 08:42:48 AM (20 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
098f4de
Parents:
20007e5
git-author:
Xi Ruoyao <xry111@…> (08/24/2022 08:25:19 AM)
git-committer:
Xi Ruoyao <xry111@…> (08/24/2022 08:42:48 AM)
Message:

linux kernel: enable CONFIG_X86_X2APIC

It's recommended for CVE-2022-21233 mitigation. And, if the BIOS has
enabled x2APIC but CONFIG_X86_X2APIC=n, the kernel will panic on boot.

If x2APIC is disabled or not available, the kernel with
CONFIG_X86_X2APIC=y can still boot normally.

No need to tag anything again because interrupt handling cannot affect
userspace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter10/kernel.xml

    r20007e5 r83b8644  
    150150       Pseudo filesystems  ---&gt;
    151151        [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</screen>
     152
     153      <para>Enable some additional features if you are building a 64-bit
     154      system.  If you are using menuconfig, enable them in the order of
     155      <parameter>CONFIG_PCI_MSI</parameter> first, then
     156      <parameter>CONFIG_IRQ_REMAP</parameter>, at last
     157      <parameter>CONFIG_X86_X2APIC</parameter> because an option only
     158      shows up after its dependencies are selected.</para>
     159
     160      <screen role="nodump">Processor type and features ---&gt;
     161  [*] Support x2apic [CONFIG_X86_X2APIC]
     162Device Drivers ---&gt;
     163  [*] PCI Support ---&gt; [CONFIG_PCI]
     164    [*] Message Signaled Interrupts (MSI and MSI-X) [CONFIG_PCI_MSI]
     165  [*] IOMMU Hardware Support ---&gt; [CONFIG_IOMMU_SUPPORT]
     166    [*] Support for Interrupt Remapping [CONFIG_IRQ_REMAP]</screen>
    152167    </note>
    153168
     
    223238          upon switching to root filesystem just before starting
    224239          init.</para>
     240        </listitem>
     241      </varlistentry>
     242
     243      <varlistentry>
     244        <term><parameter>Support x2apic</parameter></term>
     245        <listitem>
     246          <para>Avoid a kernel panic booting on a system with x2APIC enabled
     247          by the BIOS.  This option does no harm if x2APIC is not enabled
     248          or not available, but it's recommended to enable x2APIC in the
     249          BIOS setting for a modern 64-bit x86 system.</para>
    225250        </listitem>
    226251      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.