~bladernr/ubuntu/+source/linux/+git/focal:1893956-update-i40e-intel-lom

Last commit made on 2020-09-10
Get this branch:
git clone -b 1893956-update-i40e-intel-lom https://git.launchpad.net/~bladernr/ubuntu/+source/linux/+git/focal
Only Jeff Lane  can upload to this branch. If you are Jeff Lane  please log in for upload directions.

Branch merges

Branch information

Name:
1893956-update-i40e-intel-lom
Repository:
lp:~bladernr/ubuntu/+source/linux/+git/focal

Recent commits

8b11f25... by Alice Michael <email address hidden>

i40e: enable X710 support

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

The I40E_DEV_ID_10G_BASE_T_BC device id was added previously,
but was not enabled in all the appropriate places. Adding it
to enable it's use.

Signed-off-by: Alice Michael <email address hidden>
Tested-by: Andrew Bowers <email address hidden>
Signed-off-by: Jeff Kirsher <email address hidden>
(cherry picked from commit 3df5b9a6a9ec3c1e4431bf1db3426b54dc92dd91)
Signed-off-by: Jeff Lane <email address hidden>

5395ea6... by Damian Milosek <email address hidden>

i40e: Fix LED blinking flow for X710T*L devices

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

Add X710T*L device specific operations (in port LED detection and
handling of GLGEN_GPIO_CTL.PIN_FUNC field) to enable LED blinking.

Signed-off-by: Damian Milosek <email address hidden>
Tested-by: Andrew Bowers <email address hidden>
Signed-off-by: Jeff Kirsher <email address hidden>
(cherry picked from commit d80a476f4a12a84feaebfed993f3039fdc9c1249)
Signed-off-by: Jeff Lane <email address hidden>

af13a90... by Thadeu Lima de Souza Cascardo

UBUNTU: Ubuntu-5.4.0-47.51

Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

6df5676... by Thadeu Lima de Souza Cascardo

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1894315
Properties: no-test-build
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

7b52b01... by Or Cohen <email address hidden>

UBUNTU: SAUCE: net/packet: fix overflow in tpacket_rcv

Using tp_reserve to calculate netoff can overflow as
tp_reserve is unsigned int and netoff is unsigned short.

This may lead to macoff receving a smaller value then
sizeof(struct virtio_net_hdr), and if po->has_vnet_hdr
is set, an out-of-bounds write will occur when
calling virtio_net_hdr_from_skb.

The bug is fixed by converting netoff to unsigned int
and checking if it exceeds USHRT_MAX.

This addresses CVE-2020-14386

Fixes: 8913336a7e8d ("packet: add PACKET_RESERVE sockopt")
Signed-off-by: Or Cohen <email address hidden>
Signed-off-by: Eric Dumazet <email address hidden>
CVE-2020-14386
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>
Acked-by: Marcelo Henrique Cerri <email address hidden>
Acked-by: Ian May <email address hidden>

fc19937... by Thadeu Lima de Souza Cascardo

UBUNTU: [Packaging] update helper scripts

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

3fbaa39... by Thadeu Lima de Souza Cascardo

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

b311b46... by Stefan Bader

UBUNTU: Ubuntu-5.4.0-45.49

Signed-off-by: Stefan Bader <email address hidden>

a8d338a... by Stefan Bader

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1893050
Properties: no-test-build
Signed-off-by: Stefan Bader <email address hidden>

c0adba6... by Michael Ellerman

powerpc/64s: Don't init FSCR_DSCR in __init_FSCR()

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

__init_FSCR() was added originally in commit 2468dcf641e4 ("powerpc:
Add support for context switching the TAR register") (Feb 2013), and
only set FSCR_TAR.

At that point FSCR (Facility Status and Control Register) was not
context switched, so the setting was permanent after boot.

Later we added initialisation of FSCR_DSCR to __init_FSCR(), in commit
54c9b2253d34 ("powerpc: Set DSCR bit in FSCR setup") (Mar 2013), again
that was permanent after boot.

Then commit 2517617e0de6 ("powerpc: Fix context switch DSCR on
POWER8") (Aug 2013) added a limited context switch of FSCR, just the
FSCR_DSCR bit was context switched based on thread.dscr_inherit. That
commit said "This clears the H/FSCR DSCR bit initially", but it
didn't, it left the initialisation of FSCR_DSCR in __init_FSCR().
However the initial context switch from init_task to pid 1 would clear
FSCR_DSCR because thread.dscr_inherit was 0.

That commit also introduced the requirement that FSCR_DSCR be clear
for user processes, so that we can take the facility unavailable
interrupt in order to manage dscr_inherit.

Then in commit 152d523e6307 ("powerpc: Create context switch helpers
save_sprs() and restore_sprs()") (Dec 2015) FSCR was added to
thread_struct. However it still wasn't fully context switched, we just
took the existing value and set FSCR_DSCR if the new thread had
dscr_inherit set. FSCR was still initialised at boot to FSCR_DSCR |
FSCR_TAR, but that value was not propagated into the thread_struct, so
the initial context switch set FSCR_DSCR back to 0.

Finally commit b57bd2de8c6c ("powerpc: Improve FSCR init and context
switching") (Jun 2016) added a full context switch of the FSCR, and
added an initialisation of init_task.thread.fscr to FSCR_TAR |
FSCR_EBB, but omitted FSCR_DSCR.

The end result is that swapper runs with FSCR_DSCR set because of the
initialisation in __init_FSCR(), but no other processes do, they use
the value from init_task.thread.fscr.

Having FSCR_DSCR set for swapper allows it to access SPR 3 from
userspace, but swapper never runs userspace, so it has no useful
effect. It's also confusing to have the value initialised in two
places to two different values.

So remove FSCR_DSCR from __init_FSCR(), this at least gets us to the
point where there's a single value of FSCR, even if it's still set in
two places.

Signed-off-by: Michael Ellerman <email address hidden>
Tested-by: Alistair Popple <email address hidden>
Link: https://<email address hidden>
(cherry picked from commit 0828137e8f16721842468e33df0460044a0c588b)
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Stefan Bader <email address hidden>