~ztahenakos/ubuntu/+source/linux/+git/jammy:hwe-5.17

Last commit made on 2022-06-17
Get this branch:
git clone -b hwe-5.17 https://git.launchpad.net/~ztahenakos/ubuntu/+source/linux/+git/jammy
Only Zachary Tahenakos can upload to this branch. If you are Zachary Tahenakos please log in for upload directions.

Branch merges

Branch information

Recent commits

51c7e29... by Dimitri John Ledkov

UBUNTU: [Packaging] Always catch errors in dkms-build scripts

Enforce `set -e` execution of the dkms-build scripts, even when
overall SHELL is not set to `bash -e`. This enforces that dkms-build
scripts catch errors, even when building without SHELL variable, like
it is done by the LRM packages.

Signed-off-by: Dimitri John Ledkov <email address hidden>
Acked-by: Tim Gardner <email address hidden>
Signed-off-by: Paolo Pisati <email address hidden>
Signed-off-by: Dimitri John Ledkov <email address hidden>

6b1ef16... by Dimitri John Ledkov

UBUNTU: [Packaging] Fix bashism in dkms-build script

dkms-build script uses bashism variable and test comparison, replace
them with dash compatible invocations. This allows using dkms-build
scripts without SHELL variable set to "bash -e", like it is done by
LRM packages.

Signed-off-by: Dimitri John Ledkov <email address hidden>
Acked-by: Tim Gardner <email address hidden>
Signed-off-by: Paolo Pisati <email address hidden>
Signed-off-by: Dimitri John Ledkov <email address hidden>

f18bc54... by Dimitri John Ledkov

UBUNTU: [Packaging] mark dkms-build-configure--zfs executable

Mark dkms-build-configure--zfs script executable, such that one
doesn't need to call it with an explicit shell.

Signed-off-by: Dimitri John Ledkov <email address hidden>
Acked-by: Tim Gardner <email address hidden>
Signed-off-by: Paolo Pisati <email address hidden>
Signed-off-by: Dimitri John Ledkov <email address hidden>

224ab32... by Paolo Pisati

UBUNTU: Ubuntu-hwe-5.17-5.17.0-8.8~22.04.5

Signed-off-by: Paolo Pisati <email address hidden>

17e48c4... by Paolo Pisati

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

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

dcf5cff... by Paolo Pisati

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1976001
Properties: no-test-build
Signed-off-by: Paolo Pisati <email address hidden>

9edad5d... by Greg Kroah-Hartman <email address hidden>

Linux 5.17.13

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

Link: https://<email address hidden>
Tested-by: Fox Chen <email address hidden>
Tested-by: Justin M. Forbes <email address hidden>
Tested-by: Sudip Mukherjee <email address hidden>
Tested-by: Linux Kernel Functional Testing <email address hidden>
Tested-by: Guenter Roeck <email address hidden>
Tested-by: Ron Economos <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Paolo Pisati <email address hidden>

e631866... by Takashi Iwai

ALSA: usb-audio: Optimize TEAC clock quirk

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

commit 3753fcc22974affa26160ce1c46a6ebaaaa86758 upstream.

Maris found out that the quirk for TEAC devices to work around the
clock setup is needed to apply only when the base clock is changed,
e.g. from 48000-based clocks (48000, 96000, 192000, 384000) to
44100-based clocks (44100, 88200, 176400, 352800), or vice versa,
while switching to another clock with the same base clock doesn't need
the (forcible) interface setup.

This patch implements the optimization for the TEAC clock quirk to
avoid the unnecessary interface re-setup.

Fixes: 5ce0b06ae5e6 ("ALSA: usb-audio: Workaround for clock setup on TEAC devices")
Reported-by: Maris Abele <email address hidden>
Cc: <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Takashi Iwai <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Paolo Pisati <email address hidden>

3c4667c... by Kumar Kartikeya Dwivedi <email address hidden>

bpf: Check PTR_TO_MEM | MEM_RDONLY in check_helper_mem_access

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

commit 97e6d7dab1ca4648821c790a2b7913d6d5d549db upstream.

The commit being fixed was aiming to disallow users from incorrectly
obtaining writable pointer to memory that is only meant to be read. This
is enforced now using a MEM_RDONLY flag.

For instance, in case of global percpu variables, when the BTF type is
not struct (e.g. bpf_prog_active), the verifier marks register type as
PTR_TO_MEM | MEM_RDONLY from bpf_this_cpu_ptr or bpf_per_cpu_ptr
helpers. However, when passing such pointer to kfunc, global funcs, or
BPF helpers, in check_helper_mem_access, there is no expectation
MEM_RDONLY flag will be set, hence it is checked as pointer to writable
memory. Later, verifier sets up argument type of global func as
PTR_TO_MEM | PTR_MAYBE_NULL, so user can use a global func to get around
the limitations imposed by this flag.

This check will also cover global non-percpu variables that may be
introduced in kernel BTF in future.

Also, we update the log message for PTR_TO_BUF case to be similar to
PTR_TO_MEM case, so that the reason for error is clear to user.

Fixes: 34d3a78c681e ("bpf: Make per_cpu_ptr return rdonly PTR_TO_MEM.")
Reviewed-by: Hao Luo <email address hidden>
Signed-off-by: Kumar Kartikeya Dwivedi <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Alexei Starovoitov <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Paolo Pisati <email address hidden>

35c87aa... by Kumar Kartikeya Dwivedi <email address hidden>

bpf: Reject writes for PTR_TO_MAP_KEY in check_helper_mem_access

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

commit 7b3552d3f9f6897851fc453b5131a967167e43c2 upstream.

It is not permitted to write to PTR_TO_MAP_KEY, but the current code in
check_helper_mem_access would allow for it, reject this case as well, as
helpers taking ARG_PTR_TO_UNINIT_MEM also take PTR_TO_MAP_KEY.

Fixes: 69c087ba6225 ("bpf: Add bpf_for_each_map_elem() helper")
Signed-off-by: Kumar Kartikeya Dwivedi <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Alexei Starovoitov <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Paolo Pisati <email address hidden>