~timg-tpi/ubuntu/+source/linux/+git/kinetic:kinetic-Fix-race-on-per-CQ-variable-napi_iperf-panic-fix-lp1999153

Last commit made on 2023-01-19
Get this branch:
git clone -b kinetic-Fix-race-on-per-CQ-variable-napi_iperf-panic-fix-lp1999153 https://git.launchpad.net/~timg-tpi/ubuntu/+source/linux/+git/kinetic
Only Tim Gardner can upload to this branch. If you are Tim Gardner please log in for upload directions.

Branch merges

Branch information

Name:
kinetic-Fix-race-on-per-CQ-variable-napi_iperf-panic-fix-lp1999153
Repository:
lp:~timg-tpi/ubuntu/+source/linux/+git/kinetic

Recent commits

b5fbe4e... by Haiyang Zhang

net: mana: Fix race on per-CQ variable napi work_done

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

After calling napi_complete_done(), the NAPIF_STATE_SCHED bit may be
cleared, and another CPU can start napi thread and access per-CQ variable,
cq->work_done. If the other thread (for example, from busy_poll) sets
it to a value >= budget, this thread will continue to run when it should
stop, and cause memory corruption and panic.

To fix this issue, save the per-CQ work_done variable in a local variable
before napi_complete_done(), so it won't be corrupted by a possible
concurrent thread after napi_complete_done().

Also, add a flag bit to advertise to the NIC firmware: the NAPI work_done
variable race is fixed, so the driver is able to reliably support features
like busy_poll.

Cc: <email address hidden>
Fixes: e1b5683ff62e ("net: mana: Move NAPI from EQ to CQ")
Signed-off-by: Haiyang Zhang <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Paolo Abeni <email address hidden>
(cherry picked from commit 18010ff776fa42340efc428b3ea6d19b3e7c7b21 linux-next)
Signed-off-by: Tim Gardner <email address hidden>

3ecc2e4... by Tim Gardner

UBUNTU: Ubuntu-azure-5.19.0-1018.19

Signed-off-by: Tim Gardner <email address hidden>

9fe1d25... by Tim Gardner

UBUNTU: [Config] azure: updateconfigs after rebase

BugLink: https://bugs.launchpad.net/bugs/1996540
    Signed-off-by: Kamal Mostafa <email address hidden>
    Signed-off-by: Stefan Bader <email address hidden>

Copied from master

Signed-off-by: Tim Gardner <email address hidden>

968b46d... by Tim Gardner

UBUNTU: debian/dkms-versions -- update from kernel-versions (main/2023.01.02)

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Tim Gardner <email address hidden>

bd1200d... by Tim Gardner

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/2001745
Properties: no-test-build
Signed-off-by: Tim Gardner <email address hidden>

c3adab7... by Tim Gardner

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Tim Gardner <email address hidden>

402ff3e... by Tim Gardner

UBUNTU: [Packaging] azure: Added PPA2

Ignore: yes

Signed-off-by: Tim Gardner <email address hidden>

f2f3e6a... by Dexuan Cui

UBUNTU: SAUCE: tdx: Drivers: hv: vmbus:: Fix the ARM64 build caused by recent TDX patches

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

Need to declare hv_isolation_type_tdx() for ARM64 as well.

PAGE_KERNEL_NOENC is only defined for x86, so let's still use
PAGE_KERNEL for ARM64.

Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>
Acked-by: Marcelo Cerri <email address hidden>
Acked-by: Bartlomiej Zolnierkiewicz <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>

7a797c5... by Tim Gardner

UBUNTU: [Config] azure: Enable TDX guest driver

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

Signed-off-by: Tim Gardner <email address hidden>
Acked-by: Marcelo Cerri <email address hidden>
Acked-by: Bartlomiej Zolnierkiewicz <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>

301d12b... by Dexuan Cui

UBUNTU: SAUCE: tdx: x86/hyperv: Fix serial console interrupts for TDX guests

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

When a TDX guest runs on Hyper-V, the firmware sets the HW_REDUCED flag,
and consequently ttyS0 interrupts can't work. Fix the issue by overriding
x86_init.acpi.reduced_hw_early_init().

Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>
Acked-by: Marcelo Cerri <email address hidden>
Acked-by: Bartlomiej Zolnierkiewicz <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>