~anthonywong/ubuntu/+source/linux-intel/+git/focal:ishtp

Last commit made on 2021-09-30
Get this branch:
git clone -b ishtp https://git.launchpad.net/~anthonywong/ubuntu/+source/linux-intel/+git/focal
Only Anthony Wong can upload to this branch. If you are Anthony Wong please log in for upload directions.

Branch merges

Branch information

Recent commits

46eb132... by Nachiketa Kumar <email address hidden>

net: Add support for Intel vnic driver

BugLink: https://bugs.launchpad.net/bugs/1943524

This driver enables a virtual network interface
for communicating with a dedicated low power
chip over ISHTP

v1:
   - Initial version
 ---

Signed-off-by: Nachiketa Kumar <email address hidden>
Signed-off-by: Anthony Wong <email address hidden>

cdca0b7... by Andrea Righi

UBUNTU: Ubuntu-intel-5.13-5.13.0-1005.5

Signed-off-by: Andrea Righi <email address hidden>

707f730... by Andrea Righi

UBUNTU: [Config] intel-5.13: update configs and annotations after rebase

Signed-off-by: Andrea Righi <email address hidden>

0acde40... by Andrea Righi

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1945276
Properties: no-test-build
Signed-off-by: Andrea Righi <email address hidden>

6fd3d78... by Andrea Righi

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <email address hidden>

80950af... by Alex Hung

UBUNTU: [Config] Enable Intel Shadow Stack support

BugLink: https://bugs.launchpad.net/bugs/1929889

This includes setting Intel Shadow Stack (X86_SHADOW_STACK) and
Intel Indirect Branch Tracking (X86_IBT) to 'y'

Signed-off-by: Alex Hung <email address hidden>
Signed-off-by: Wen-chien Jesse Sung <email address hidden>

cbe0d74... by Yu-cheng Yu

Provide back compatibility of ALLOC_SHSTK

BugLink: https://bugs.launchpad.net/bugs/1929889

Signed-off-by: Yu-cheng Yu <email address hidden>
Signed-off-by: Alex Hung <email address hidden>
Signed-off-by: Wen-chien Jesse Sung <email address hidden>

1e9dae3... by "H.J. Lu" <email address hidden>

Discard .note.gnu.property sections in generic NOTES

BugLink: https://bugs.launchpad.net/bugs/1929889

With the command-line option, -mx86-used-note=yes, the x86 assembler
in binutils 2.32 and above generates a program property note in a note
section, .note.gnu.property, to encode used x86 ISAs and features. But
kernel linker script only contains a single NOTE segment:

PHDRS {
 text PT_LOAD FLAGS(5);
 data PT_LOAD FLAGS(6);
 percpu PT_LOAD FLAGS(6);
 init PT_LOAD FLAGS(7);
 note PT_NOTE FLAGS(0);
}
SECTIONS
{
...
 .notes : AT(ADDR(.notes) - 0xffffffff80000000) { __start_notes = .; KEEP(*(.not
e.*)) __stop_notes = .; } :text :note
...
}

The NOTE segment generated by kernel linker script is aligned to 4 bytes.
But .note.gnu.property section must be aligned to 8 bytes on x86-64 and
we get

[hjl@gnu-skx-1 linux]$ readelf -n vmlinux

Displaying notes found in: .notes
  Owner Data size Description
  Xen 0x00000006 Unknown note type: (0x00000006)
   description data: 6c 69 6e 75 78 00
  Xen 0x00000004 Unknown note type: (0x00000007)
   description data: 32 2e 36 00
  xen-3.0 0x00000005 Unknown note type: (0x006e6558)
   description data: 08 00 00 00 03
readelf: Warning: note with invalid namesz and/or descsz found at offset 0x50
readelf: Warning: type: 0xffffffff, namesize: 0x006e6558, descsize:
0x80000000, alignment: 8
[hjl@gnu-skx-1 linux]$

Since note.gnu.property section in kernel image is never used, this patch
discards .note.gnu.property sections in kernel linker script by adding

/DISCARD/ : {
  *(.note.gnu.property)
}

before kernel NOTE segment in generic NOTES.

Signed-off-by: H.J. Lu <email address hidden>
Reviewed-by: Kees Cook <email address hidden>
Signed-off-by: Alex Hung <email address hidden>
Signed-off-by: Wen-chien Jesse Sung <email address hidden>

043fb2c... by "H.J. Lu" <email address hidden>

powerpc: Keep .rela* sections when CONFIG_RELOCATABLE is defined

BugLink: https://bugs.launchpad.net/bugs/1929889

arch/powerpc/kernel/vmlinux.lds.S has

 #ifdef CONFIG_RELOCATABLE
 ...
        .rela.dyn : AT(ADDR(.rela.dyn) - LOAD_OFFSET)
        {
                __rela_dyn_start = .;
                *(.rela*)
        }
 #endif
 ...
        DISCARDS
        /DISCARD/ : {
                *(*.EMB.apuinfo)
                *(.glink .iplt .plt .rela* .comment)
                *(.gnu.version*)
                *(.gnu.attributes)
                *(.eh_frame)
        }

Since .rela* sections are needed when CONFIG_RELOCATABLE is defined,
don't discard .rela* sections if CONFIG_RELOCATABLE is defined.

Signed-off-by: H.J. Lu <email address hidden>
Acked-by: Michael Ellerman <email address hidden> (powerpc)
Signed-off-by: Alex Hung <email address hidden>
Signed-off-by: Wen-chien Jesse Sung <email address hidden>

bfe62ba... by Yu-cheng Yu

x86/cet: Add PTRACE interface for CET

BugLink: https://bugs.launchpad.net/bugs/1929889

Add REGSET_CET64/REGSET_CET32 to get/set CET MSRs:

    IA32_U_CET (user-mode CET settings) and
    IA32_PL3_SSP (user-mode Shadow Stack)

Signed-off-by: Yu-cheng Yu <email address hidden>

v12:
- Return -ENODEV when CET registers are in INIT state.
- Check reserved/non-support bits from user input.

Signed-off-by: Alex Hung <email address hidden>
Signed-off-by: Wen-chien Jesse Sung <email address hidden>