~vicamo/+git/ubuntu-kernel:bug-1945576/igc-remove-checkings/intel-5.13

Last commit made on 2021-09-30
Get this branch:
git clone -b bug-1945576/igc-remove-checkings/intel-5.13 https://git.launchpad.net/~vicamo/+git/ubuntu-kernel
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Branch information

Name:
bug-1945576/igc-remove-checkings/intel-5.13
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

0d6f364... by You-Sheng Yang

Bug 1945576: Intel I225-IT device probe failure

5bab619... by Sasha Neftin

igc: Remove phy->type checking

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

i225 devices have only one phy->type: copper. There is no point checking
phy->type during the igc_has_link method from the watchdog that
invoked every 2 seconds.
This patch comes to clean up these pointless checkings.

Signed-off-by: Sasha Neftin <email address hidden>
Tested-by: Dvora Fuxbrumer <email address hidden>
Signed-off-by: Tony Nguyen <email address hidden>
(cherry picked from commit 47bca7de6a4fb8dcb564c7ca14d885c91ed19e03)
Signed-off-by: You-Sheng Yang <email address hidden>

109f576... by Sasha Neftin

igc: Remove _I_PHY_ID checking

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

i225 devices have only one PHY vendor. There is no point checking
_I_PHY_ID during the link establishment and auto-negotiation process.
This patch comes to clean up these pointless checkings.

Signed-off-by: Sasha Neftin <email address hidden>
Tested-by: Dvora Fuxbrumer <email address hidden>
Signed-off-by: Tony Nguyen <email address hidden>
(cherry picked from commit 7c496de538eebd8212dc2a3c9a468386b264d0d4)
Signed-off-by: You-Sheng Yang <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>