]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/log
mirror_ubuntu-hirsute-kernel.git
3 years agoRevert "UBUNTU: SAUCE: selftests/bpf: clarify build error if no vmlinux"
Andrea Righi [Thu, 17 Dec 2020 19:09:52 +0000 (20:09 +0100)]
Revert "UBUNTU: SAUCE: selftests/bpf: clarify build error if no vmlinux"

This reverts commit fa1f62dbeec1d21122a74eda15ceb79d524fb9ad.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoRevert "UBUNTU: SAUCE: selftests: Skip BPF seftests by default"
Andrea Righi [Thu, 17 Dec 2020 19:09:43 +0000 (20:09 +0100)]
Revert "UBUNTU: SAUCE: selftests: Skip BPF seftests by default"

This reverts commit 9efd89e6d89e2c61992ebf1be9f3ab413e7810a9.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoRevert "UBUNTU: disable building bpf selftests (no VMLINUX_BTF)"
Andrea Righi [Thu, 17 Dec 2020 19:07:27 +0000 (20:07 +0100)]
Revert "UBUNTU: disable building bpf selftests (no VMLINUX_BTF)"

This reverts commit 2464bb104a99172fa011b844041aa9644af8cb54.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10.0-9.10
Andrea Righi [Tue, 15 Dec 2020 09:16:14 +0000 (10:16 +0100)]
UBUNTU: Ubuntu-5.10.0-9.10

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Tue, 15 Dec 2020 09:14:44 +0000 (10:14 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoRevert "dm raid: fix discard limits for raid1 and raid10"
Greg Kroah-Hartman [Mon, 14 Dec 2020 16:51:18 +0000 (17:51 +0100)]
Revert "dm raid: fix discard limits for raid1 and raid10"

This reverts commit e0910c8e4f87bb9f767e61a778b0d9271c4dc512.

It causes problems :(

Reported-by: Dave Jones <davej@codemonkey.org.uk>
Reported-by: Mike Snitzer <snitzer@redhat.com>
Cc: Zdenek Kabelac <zkabelac@redhat.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoRevert "md: change mddev 'chunk_sectors' from int to unsigned"
Greg Kroah-Hartman [Mon, 14 Dec 2020 16:48:11 +0000 (17:48 +0100)]
Revert "md: change mddev 'chunk_sectors' from int to unsigned"

This reverts commit 6ffeb1c3f8226244c08105bcdbeecc04bad6b89a.

It causes problems :(

Reported-by: Dave Jones <davej@codemonkey.org.uk>
Reported-by: Mike Snitzer <snitzer@redhat.com>
Cc: Song Liu <songliubraving@fb.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Linus Torvalds <torvalds@linux-foundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] Enable CONFIG_BPF_LSM
KP Singh [Mon, 30 Nov 2020 23:14:03 +0000 (23:14 +0000)]
UBUNTU: [Config] Enable CONFIG_BPF_LSM

Buglink: https://bugs.launchpad.net/bugs/1905975
[Impact]

Allows users to implement MAC and Audit Policies using BPF programs.

The LSM won't be added to the list of active LSMs by default (in
CONFIG_LSM or lsm= on the boot parameters) yet, as it adds an indirect
function call overhead by registering an empty callback for all hooks.

The LSM can be made "active" by default when the upstream effort [1] of
getting rid of this overhead is merged in the mainline kernel.

[Regression Potential]

Since the LSM is not active by default, it does not cause any
functional or performance regression.

[1]: https://lore.kernel.org/bpf/20200820164753.3256899-1-jackmanb@chromium.org

Signed-off-by: KP Singh <kpsingh@google.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
[ arighi: updated also the annotations file ]
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoPCI: Disable MSI for Pericom PCIe-USB adapter
Andy Shevchenko [Fri, 4 Dec 2020 14:21:55 +0000 (22:21 +0800)]
PCI: Disable MSI for Pericom PCIe-USB adapter

BugLink: https://bugs.launchpad.net/bugs/1906839
Pericom PCIe-USB adapter advertises MSI, but documentation says "The MSI
Function is not implemented on this device" in chapters 7.3.27,
7.3.29-7.3.31, and Alberto found that MSI in fact does not work.

Disable MSI for these devices.

Datasheet: https://www.diodes.com/assets/Datasheets/PI7C9X440SL.pdf
Fixes: 306c54d0edb6 ("usb: hcd: Try MSI interrupts on PCI devices")
Link: https://lore.kernel.org/linux-usb/20201030134826.GP4077@smile.fi.intel.com/
Link: https://lore.kernel.org/r/20201106100526.17726-1-andriy.shevchenko@linux.intel.com
Reported-by: alberto.vignani@fastwebnet.it
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
(cherry picked from commit f83c37941e881224885f2e694e0626bea358e96b linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
3 years agoUBUNTU: disable building bpf selftests (no VMLINUX_BTF)
Kamal Mostafa [Mon, 14 Dec 2020 22:00:40 +0000 (14:00 -0800)]
UBUNTU: disable building bpf selftests (no VMLINUX_BTF)

BugLink: https://bugs.launchpad.net/bugs/1908144
Disable selftests/bpf since it cannot be built without having built vmlinux
first, else build fails with either:

    Makefile:148: *** cannot find a vmlinux for VMLINUX_BTF at any of
    "{paths}".  Stop.

or this more cryptic variant:

    Error: failed to load BTF from format: No such file or directory

Reference: "UBUNTU: SAUCE: selftests/bpf: clarify build error if no vmlinux"
Reference: https://lore.kernel.org/bpf/20201210185233.28091-1-broonie@kernel.org/
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
3 years agoUBUNTU: SAUCE: selftests: Skip BPF seftests by default
Mark Brown [Mon, 14 Dec 2020 22:00:39 +0000 (14:00 -0800)]
UBUNTU: SAUCE: selftests: Skip BPF seftests by default

BugLink: https://bugs.launchpad.net/bugs/1908144
The BPF selftests have build time dependencies on cutting edge versions
of tools in the BPF ecosystem including LLVM which are more involved
to satisfy than more typical requirements like installing a package from
your distribution.  This causes issues for users looking at kselftest in
as a whole who find that a default build of kselftest fails and that
resolving this is time consuming and adds administrative overhead.  The
fast pace of BPF development and the need for a full BPF stack to do
substantial development or validation work on the code mean that people
working directly on it don't see a reasonable way to keep supporting
older environments without causing problems with the usability of the
BPF tests in BPF development so these requirements are unlikely to be
relaxed in the immediate future.

There is already support for skipping targets so in order to reduce the
barrier to entry for people interested in kselftest as a whole let's use
that to skip the BPF tests by default when people work with the top
level kselftest build system.  Users can still build the BPF selftests
as part of the wider kselftest build by specifying SKIP_TARGETS,
including setting an empty SKIP_TARGETS to build everything.  They can
also continue to build the BPF selftests individually in cases where
they are specifically focused on BPF.

This isn't ideal since it means people will need to take special steps
to build the BPF tests but the dependencies mean that realistically this
is already the case to some extent and it makes it easier for people to
pick up and work with the other selftests which is hopefully a net win.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reference: https://lore.kernel.org/bpf/20201210185233.28091-1-broonie@kernel.org/
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
3 years agoUBUNTU: SAUCE: selftests/bpf: clarify build error if no vmlinux
Kamal Mostafa [Mon, 14 Dec 2020 22:00:38 +0000 (14:00 -0800)]
UBUNTU: SAUCE: selftests/bpf: clarify build error if no vmlinux

BugLink: https://bugs.launchpad.net/bugs/1908144
If Makefile cannot find any of the vmlinux's in its VMLINUX_BTF_PATHS list,
it tries to run btftool incorrectly, with VMLINUX_BTF unset:

    bpftool btf dump file $(VMLINUX_BTF) format c

Such that the keyword 'format' is misinterpreted as the path to vmlinux.
The resulting build error message is fairly cryptic:

      GEN      vmlinux.h
    Error: failed to load BTF from format: No such file or directory

This patch makes the failure reason clearer by yielding this instead:

    Makefile:...: *** cannot find a vmlinux for VMLINUX_BTF at any of
    "{paths}".  Stop.

Fixes: acbd06206bbb ("selftests/bpf: Add vmlinux.h selftest exercising tracing of syscalls")
Cc: stable@vger.kernel.org # 5.7+
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Reference: https://lore.kernel.org/bpf/20201214202049.7205-1-kamal@canonical.com/

3 years agoUBUNTU: Ubuntu-5.10.0-8.9
Andrea Righi [Mon, 14 Dec 2020 07:57:57 +0000 (08:57 +0100)]
UBUNTU: Ubuntu-5.10.0-8.9

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update configs and annotations after rebase to v5.10
Andrea Righi [Mon, 14 Dec 2020 07:54:49 +0000 (08:54 +0100)]
UBUNTU: [Config] update configs and annotations after rebase to v5.10

Do not enable CONFIG_NFS_V4_2_READ_PLUS, since it's a development-only
feature for now.

CONFIG_MXC_CLK_SCU can be enabled only on arm64 now (ARCH_MXC && ARM64).

Update toolchain version.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.10
Andrea Righi [Mon, 14 Dec 2020 07:33:04 +0000 (08:33 +0100)]
UBUNTU: Rebase to v5.10

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 14 Dec 2020 07:32:34 +0000 (08:32 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Packaging] update variants
Andrea Righi [Mon, 14 Dec 2020 07:29:26 +0000 (08:29 +0100)]
UBUNTU: [Packaging] update variants

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agobpf: Fix selftest compilation on clang 11
Andrei Matei [Wed, 25 Nov 2020 03:52:55 +0000 (22:52 -0500)]
bpf: Fix selftest compilation on clang 11

BugLink: c/dtmwdtfJ/115 (Fix bpf selftest compilation with clang 11)

Before this patch, profiler.inc.h wouldn't compile with clang-11 (before
the __builtin_preserve_enum_value LLVM builtin was introduced in
https://reviews.llvm.org/D83242).

Another test that uses this builtin (test_core_enumval) is conditionally
skipped if the compiler is too old. In that spirit, this patch inhibits
part of populate_cgroup_info(), which needs this CO-RE builtin. The
selftests build again on clang-11.

The affected test (the profiler test) doesn't pass on clang-11 because
it's missing https://reviews.llvm.org/D85570, but at least the test suite
as a whole compiles. The test's expected failure is already called out in
the README.

Signed-off-by: Andrei Matei <andreimatei1@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Florian Lehner <dev@der-flo.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20201125035255.17970-1-andreimatei1@gmail.com
(cherry picked from commit fb3558127cb62ba2dea9e3d0efa1bb1d7e5eee2a
 git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10.0-7.8
Seth Forshee [Mon, 7 Dec 2020 06:15:21 +0000 (00:15 -0600)]
UBUNTU: Ubuntu-5.10.0-7.8

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: update dkms package versions
Seth Forshee [Mon, 7 Dec 2020 02:38:15 +0000 (20:38 -0600)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Update configs and annotations after rebase to v5.10-rc7
Seth Forshee [Mon, 7 Dec 2020 02:36:30 +0000 (20:36 -0600)]
UBUNTU: [Config] Update configs and annotations after rebase to v5.10-rc7

Add removed modules to modules.ignore.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Rebase to v5.10-rc7
Seth Forshee [Mon, 7 Dec 2020 02:30:46 +0000 (20:30 -0600)]
UBUNTU: Rebase to v5.10-rc7

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Start new release
Seth Forshee [Mon, 7 Dec 2020 02:30:02 +0000 (20:30 -0600)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Packaging] Change source package name to linux
Seth Forshee [Mon, 7 Dec 2020 02:37:04 +0000 (20:37 -0600)]
UBUNTU: [Packaging] Change source package name to linux

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Packaging] Remove nvidia-435 dkms build
Seth Forshee [Mon, 7 Dec 2020 02:26:38 +0000 (20:26 -0600)]
UBUNTU: [Packaging] Remove nvidia-435 dkms build

The l-r-m packages for nvidia-435 are now transitionals, so we
don't need to build the modules anymore.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Debian] Build linux-libc-dev for debian.master* branches
Seth Forshee [Thu, 12 Nov 2020 18:34:01 +0000 (12:34 -0600)]
UBUNTU: [Debian] Build linux-libc-dev for debian.master* branches

BugLink: https://bugs.launchpad.net/bugs/1904067
We don't build linux-libc-dev if $DEBIAN is not debian.master.
However, for a master kernel forward ported to the devel series
we do want to build linux-libc-dev. $DEBIAN will be named
debian.master-SERIES for these kernels, so allow building
linux-libc-dev for these kernels too.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Debian] Update for leader included in BACKPORT_SUFFIX
Seth Forshee [Wed, 4 Nov 2020 22:25:00 +0000 (23:25 +0100)]
UBUNTU: [Debian] Update for leader included in BACKPORT_SUFFIX

BugLink: https://bugs.launchpad.net/bugs/1902957
Currently a ~ is always added to the version string before
BACKPORT_SUFFIX. Now we will also doing forward-ports to
development releases, which works exactly the same as a
backport, but we want to use + as the leader instead.

Our kernel source doesn't contain the information to determine
which leader is appropriate, but that information is available
when generating update.conf. Therefore the leader will be added
as part of BACKPORT_SUFFIX, and our packaging should not insert
any leader.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
3 years agoUBUNTU: [Packaging] NVIDIA -- Add signed modules for the 455 driver
Alberto Milone [Wed, 21 Oct 2020 19:08:19 +0000 (21:08 +0200)]
UBUNTU: [Packaging] NVIDIA -- Add signed modules for the 455 driver

Add signed modules for the new 455 series.

BugLink: https://bugs.launchpad.net/bugs/1897751
Signed-off-by: Alberto Milone <alberto.milone@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Reorder annotations after 5.10-rc6 rebase
Paolo Pisati [Tue, 1 Dec 2020 12:34:06 +0000 (13:34 +0100)]
UBUNTU: [Config] Reorder annotations after 5.10-rc6 rebase

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: [Config] disable GPIO_CDEV_V1
Paolo Pisati [Wed, 2 Dec 2020 15:43:05 +0000 (16:43 +0100)]
UBUNTU: [Config] disable GPIO_CDEV_V1

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: [Config] ARM_CMN=m
Paolo Pisati [Wed, 2 Dec 2020 13:36:53 +0000 (14:36 +0100)]
UBUNTU: [Config] ARM_CMN=m

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: [Config] s390x: disable GPIO_CDEV
Paolo Pisati [Wed, 2 Dec 2020 12:02:16 +0000 (13:02 +0100)]
UBUNTU: [Config] s390x: disable GPIO_CDEV

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: [Config] CONFIG_RCU_SCALE_TEST=n
Seth Forshee [Mon, 30 Nov 2020 15:34:06 +0000 (09:34 -0600)]
UBUNTU: [Config] CONFIG_RCU_SCALE_TEST=n

BugLink: https://bugs.launchpad.net/bugs/1904906
This was enabled when rebasing to 5.10-rc1, but it is not an
option we would normally enable, and no justification was
provided for enabling it. The option also may be related to
ppc64el boot problems (though it is as of yet unclear how that
would be possible), so let's disable it.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10-5.10.0-6.7
Andrea Righi [Mon, 30 Nov 2020 06:47:35 +0000 (07:47 +0100)]
UBUNTU: Ubuntu-5.10-5.10.0-6.7

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.10-rc6
Andrea Righi [Mon, 30 Nov 2020 06:43:41 +0000 (07:43 +0100)]
UBUNTU: Rebase to v5.10-rc6

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 30 Nov 2020 06:42:54 +0000 (07:42 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: update dkms package versions
Andrea Righi [Mon, 30 Nov 2020 06:41:22 +0000 (07:41 +0100)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Packaging]: linux-image should suggest linux-modules-extra
Thadeu Lima de Souza Cascardo [Fri, 27 Nov 2020 13:29:57 +0000 (10:29 -0300)]
UBUNTU: [Packaging]: linux-image should suggest linux-modules-extra

When installing linux-image, we don't want the linux-modules-extra to be
installed by default, so it should not be a Recommends. It can, however, be a
Suggests.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Packaging]: linux-modules should depend on linux-image
Thadeu Lima de Souza Cascardo [Fri, 27 Nov 2020 13:29:56 +0000 (10:29 -0300)]
UBUNTU: [Packaging]: linux-modules should depend on linux-image

When installing linux-modules package directly, it will not bring a linux-image
package as a dependency. linux-modules-extra, on the other hand, depend on a
linux-image package.

Make the linux-modules package depend on either the linux-image or the
linux-image-unsigned package.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Packaging] insertchanges: avoid double newline
Thadeu Lima de Souza Cascardo [Thu, 5 Nov 2020 16:16:00 +0000 (17:16 +0100)]
UBUNTU: [Packaging] insertchanges: avoid double newline

BugLink: https://bugs.launchpad.net/bugs/1903293
When some changes have been already added to the changelog, like when using
insert-ubuntu-changes, and there are no other changes, we end up with two
newlines right after the stanza header.

Add a $skip_newline variable that allows us to skip that extra newline when
there are no other changes.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Acked-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10-5.10.0-5.6
Andrea Righi [Mon, 23 Nov 2020 12:17:45 +0000 (13:17 +0100)]
UBUNTU: Ubuntu-5.10-5.10.0-5.6

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] add CONFIG_INFINIBAND_VIRT_DMA
Andrea Righi [Mon, 23 Nov 2020 07:43:31 +0000 (08:43 +0100)]
UBUNTU: [Config] add CONFIG_INFINIBAND_VIRT_DMA

Add CONFIG_INFINIBAND_VIRT_DMA, introduced after rebasing to 5.10-rc5.

NOTE: this config option can only be enabled if CONFIG_HIGHMEM is not
set and that is false in armhf, so it needs to be disabled in this
specific architecture.

As a consequence the following dependent config options are also
disabled (on armhf only):

 - CONFIG_RDMA_RXE
 - CONFIG_RDMA_SIW

This shouldn't be a problem, since these options are used by infiniband,
that is unlikely to be used with armhf.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.10-rc5
Andrea Righi [Mon, 23 Nov 2020 07:32:42 +0000 (08:32 +0100)]
UBUNTU: Rebase to v5.10-rc5

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 23 Nov 2020 07:32:13 +0000 (08:32 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10-5.10.0-4.5
Andrea Righi [Mon, 16 Nov 2020 07:33:54 +0000 (08:33 +0100)]
UBUNTU: Ubuntu-5.10-5.10.0-4.5

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.10-rc4
Andrea Righi [Mon, 16 Nov 2020 07:32:19 +0000 (08:32 +0100)]
UBUNTU: Rebase to v5.10-rc4

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 16 Nov 2020 07:31:05 +0000 (08:31 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: update dkms package versions
Andrea Righi [Mon, 16 Nov 2020 07:21:02 +0000 (08:21 +0100)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Packaging] reduce the size required to build packages
Andrea Righi [Thu, 24 Sep 2020 12:49:32 +0000 (14:49 +0200)]
UBUNTU: [Packaging] reduce the size required to build packages

During the build we are removing flavor build directory, but this is not
applied until the end of the binary-% rule. This is too late as we have
to build, install, and generate dbgsyms for all flavors before this
triggers.

Removing the flavor build directory at the end of the install-% phase
allows to free up some space in advance and use less space overall to
build the packages.

Suggested-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10-5.10.0-3.4
Andrea Righi [Mon, 9 Nov 2020 08:37:08 +0000 (09:37 +0100)]
UBUNTU: Ubuntu-5.10-5.10.0-3.4

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] re-enable ZFS
Andrea Righi [Mon, 9 Nov 2020 08:36:09 +0000 (09:36 +0100)]
UBUNTU: [Config] re-enable ZFS

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update modules files
Andrea Righi [Mon, 9 Nov 2020 08:12:59 +0000 (09:12 +0100)]
UBUNTU: [Config] update modules files

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] drop obsolete SND_SST_IPC options
Andrea Righi [Mon, 9 Nov 2020 07:30:04 +0000 (08:30 +0100)]
UBUNTU: [Config] drop obsolete SND_SST_IPC options

The following upstream commit removes SND_SST_IPC and its _PCI and _ACPI
variants:

 1849a3872f035494639201fdefb394425233647b ("ASoC: Intel: atom: Remove duplicate kconfigs")

Update master config accordingly.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update CONFIG_MST_IRQ after rebase to 5.10-rc3
Andrea Righi [Mon, 9 Nov 2020 07:27:44 +0000 (08:27 +0100)]
UBUNTU: [Config] update CONFIG_MST_IRQ after rebase to 5.10-rc3

This option is automatically disabled in all architectures, except for
arm64 and armhf.

Apply this change and make sure to update the annotations file
accordingly.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.10-rc3
Andrea Righi [Mon, 9 Nov 2020 07:21:52 +0000 (08:21 +0100)]
UBUNTU: Rebase to v5.10-rc3

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 9 Nov 2020 07:20:48 +0000 (08:20 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: update dkms package versions
Andrea Righi [Mon, 9 Nov 2020 07:20:28 +0000 (08:20 +0100)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] Update CONFIG_E1000E for ppc64el in annotations
Seth Forshee [Wed, 4 Nov 2020 20:46:21 +0000 (14:46 -0600)]
UBUNTU: [Config] Update CONFIG_E1000E for ppc64el in annotations

BugLink: https://bugs.launchpad.net/bugs/1902687
This option now depends on CONFIG_DMI, and thus is no longer
selectable for ppc64el. Update the annotations accordingly.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: e1000e: Add more Dell CML systems into s0ix heuristics
Mario Limonciello [Tue, 3 Nov 2020 10:31:17 +0000 (12:31 +0200)]
UBUNTU: SAUCE: e1000e: Add more Dell CML systems into s0ix heuristics

BugLink: https://bugs.launchpad.net/bugs/1902687
These comet lake systems are not yet released, but have been validated
on pre-release hardware.

This is being submitted separately from released hardware in case of
a regression between pre-release and release hardware so this commit
can be reverted alone.

Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Tested-by: Yijun Shen <Yijun.shen@dell.com>
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: e1000e: Add Dell's Comet Lake systems into s0ix heuristics
Mario Limonciello [Tue, 3 Nov 2020 10:31:16 +0000 (12:31 +0200)]
UBUNTU: SAUCE: e1000e: Add Dell's Comet Lake systems into s0ix heuristics

BugLink: https://bugs.launchpad.net/bugs/1902687
Dell's Comet Lake Latitude and Precision systems containing i219LM are
properly configured and should use the s0ix flows.

Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Tested-by: Yijun Shen <Yijun.shen@dell.com>
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: e1000e: allow turning s0ix flows on for systems with ME
Mario Limonciello [Tue, 3 Nov 2020 10:31:15 +0000 (12:31 +0200)]
UBUNTU: SAUCE: e1000e: allow turning s0ix flows on for systems with ME

BugLink: https://bugs.launchpad.net/bugs/1902687
S0ix for GBE flows are needed for allowing the system to get into deepest
power state, but these require coordination of components outside of
control of Linux kernel.  For systems that have confirmed to coordinate
this properly, allow turning on the s0ix flows at load time or runtime.

Fixes: e086ba2fccda ("e1000e: disable s0ix entry and exit flows for ME systems")
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Disable CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE
dann frazier [Mon, 2 Nov 2020 16:42:18 +0000 (09:42 -0700)]
UBUNTU: [Config] Disable CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE

Disables deprecated algorithms unused by the kernel but exposed to userspace
via AF_ALG as recommended here:

 https://lists.linaro.org/pipermail/cross-distro/2020-October/000938.html

As noted, iwd (universe) did have a dependency on the kernel's ecb(arc4) but
upstream has now replaced that with a userspace version:

https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/?id=1db8a85a60c645232eb5bba1ec0cd0a2927ccd16

While we have a new enough iwd in hirsute, focal's version still has this
dependency. So, if we decide to do this, we may also want to SRU that back.

Signed-off-by: dann frazier <dann.frazier@canonical.com>
[ saf: add disabled modules to modules.ignore ]
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: perf/x86/intel/uncore: Add Rocket Lake support
Kan Liang [Thu, 29 Oct 2020 09:09:27 +0000 (11:09 +0200)]
UBUNTU: SAUCE: perf/x86/intel/uncore: Add Rocket Lake support

BugLink: https://bugs.launchpad.net/bugs/1902004
For Rocket Lake, the MSR uncore, e.g., CBOX, ARB and CLOCKBOX, are the
same as Tiger Lake. Share the perf code with it.

For Rocket Lake and Tiger Lake, the 8th CBOX is not mapped into a
different MSR space anymore. Add rkl_uncore_msr_init_box() to replace
skl_uncore_msr_init_box().

The IMC uncore is the similar to Ice Lake. Add new PCIIDs of IMC for
Rocket Lake.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: perf/x86/msr: Add Rocket Lake CPU support
Kan Liang [Thu, 29 Oct 2020 09:09:26 +0000 (11:09 +0200)]
UBUNTU: SAUCE: perf/x86/msr: Add Rocket Lake CPU support

BugLink: https://bugs.launchpad.net/bugs/1902004
Like Ice Lake and Tiger Lake, PPERF and SMI_COUNT MSRs are also
supported by Rocket Lake.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: perf/x86/cstate: Add Rocket Lake CPU support
Kan Liang [Thu, 29 Oct 2020 09:09:25 +0000 (11:09 +0200)]
UBUNTU: SAUCE: perf/x86/cstate: Add Rocket Lake CPU support

BugLink: https://bugs.launchpad.net/bugs/1902004
From the perspective of Intel cstate residency counters, Rocket Lake is
the same as Ice Lake and Tiger Lake. Share the code with them. Update
the comments for Rocket Lake.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: perf/x86/intel: Add Rocket Lake CPU support
Kan Liang [Thu, 29 Oct 2020 09:09:24 +0000 (11:09 +0200)]
UBUNTU: SAUCE: perf/x86/intel: Add Rocket Lake CPU support

BugLink: https://bugs.launchpad.net/bugs/1902004
From the perspective of Intel PMU, Rocket Lake is the same as Ice Lake
and Tiger Lake. Share the perf code with them.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10-5.10.0-2.3
Seth Forshee [Wed, 4 Nov 2020 03:01:52 +0000 (21:01 -0600)]
UBUNTU: Ubuntu-5.10-5.10.0-2.3

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Start new release
Seth Forshee [Wed, 4 Nov 2020 03:00:43 +0000 (21:00 -0600)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Debian] Update package names in getabis
Seth Forshee [Wed, 4 Nov 2020 03:00:13 +0000 (21:00 -0600)]
UBUNTU: [Debian] Update package names in getabis

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Debian] Include scripts/module.lds from builddir in headers package
Seth Forshee [Wed, 4 Nov 2020 00:12:45 +0000 (18:12 -0600)]
UBUNTU: [Debian] Include scripts/module.lds from builddir in headers package

The script which was previously named scripts/module-common.lds
has now been renamed to scripts/module.lds.S. We need the final
linker script in headers packages. Move it to the per-arch
headers packages since it may now differ between architectures.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Switch arm64 default cpufreq governor to ondemand
Seth Forshee [Tue, 3 Nov 2020 13:22:34 +0000 (07:22 -0600)]
UBUNTU: [Config] Switch arm64 default cpufreq governor to ondemand

Reverting back to the previous setting on the advice of cking.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10-5.10.0-1.2
Seth Forshee [Mon, 2 Nov 2020 19:18:27 +0000 (13:18 -0600)]
UBUNTU: Ubuntu-5.10-5.10.0-1.2

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: update dkms package versions
Seth Forshee [Mon, 2 Nov 2020 19:15:36 +0000 (13:15 -0600)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Temporarily disable DEBUG_INFO_BTF for armhf
Seth Forshee [Mon, 2 Nov 2020 19:10:39 +0000 (13:10 -0600)]
UBUNTU: [Config] Temporarily disable DEBUG_INFO_BTF for armhf

pahole is segfaulting on armhf. A fix is in progress, but in the
mean time disable BTF to get a working build.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Switch default CPUFreq governer for arm64/armhf to schedultil
Seth Forshee [Mon, 2 Nov 2020 18:12:52 +0000 (12:12 -0600)]
UBUNTU: [Config] Switch default CPUFreq governer for arm64/armhf to schedultil

This is now the upstream default for these architectures, so
update our configs to match.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Update numerous configs to conform with policy
Seth Forshee [Mon, 2 Nov 2020 18:05:57 +0000 (12:05 -0600)]
UBUNTU: [Config] Update numerous configs to conform with policy

When reviewing the annotations updates for the 5.10-rc2 rebase,
I noted a large number of options which did not conform to our
config policy. These have been updated. I suspect there may be
others from the 5.10-rc1 rebase which also do not conform to
policy, so further review is needed.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Update configs and annotations after rebase to 5.10-rc2
Seth Forshee [Mon, 2 Nov 2020 15:35:18 +0000 (09:35 -0600)]
UBUNTU: [Config] Update configs and annotations after rebase to 5.10-rc2

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Rebase to v5.10-rc2
Seth Forshee [Mon, 2 Nov 2020 15:33:40 +0000 (09:33 -0600)]
UBUNTU: Rebase to v5.10-rc2

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Start new release
Seth Forshee [Mon, 2 Nov 2020 15:33:04 +0000 (09:33 -0600)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Packaging] move to hirsute
Paolo Pisati [Thu, 29 Oct 2020 15:30:09 +0000 (16:30 +0100)]
UBUNTU: [Packaging] move to hirsute

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: SAUCE: PCI: Enable ACS quirk on all CML root ports
Kai-Heng Feng [Thu, 22 Oct 2020 05:51:00 +0000 (07:51 +0200)]
UBUNTU: SAUCE: PCI: Enable ACS quirk on all CML root ports

BugLink: https://bugs.launchpad.net/bugs/1900847
In addition to KIOXIA NVMe, Intel NVMe under another root port also has
the same ACS violation issue.

According to Intel, all CML root ports need this workaround, so add all
root ports from [1] to existing quirk.

[1] IntelĀ® 400 Series Chipset Family Platform Controller Hub (PCH) Datasheet, Volume 1 of 2, Content ID: 620854 Version: 002

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10-5.10.0-0.1
Paolo Pisati [Tue, 27 Oct 2020 15:57:08 +0000 (16:57 +0100)]
UBUNTU: Ubuntu-5.10-5.10.0-0.1

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: update dkms package versions
Paolo Pisati [Tue, 27 Oct 2020 15:55:58 +0000 (16:55 +0100)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: SAUCE: LSM: Use lsmblob in smk_netlbl_mls()
Paolo Pisati [Tue, 27 Oct 2020 11:04:12 +0000 (11:04 +0000)]
UBUNTU: SAUCE: LSM: Use lsmblob in smk_netlbl_mls()

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: SAUCE: LSM: change ima_read_file() to use lsmblob
Paolo Pisati [Tue, 27 Oct 2020 10:27:39 +0000 (10:27 +0000)]
UBUNTU: SAUCE: LSM: change ima_read_file() to use lsmblob

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: SAUCE: apparmor: rename kzfree() to kfree_sensitive()
Paolo Pisati [Tue, 27 Oct 2020 09:45:23 +0000 (09:45 +0000)]
UBUNTU: SAUCE: apparmor: rename kzfree() to kfree_sensitive()

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: SAUCE: platform/x86: dell-uart-backlight: rename kzfree() to kfree_sensitive()
Paolo Pisati [Tue, 27 Oct 2020 09:43:59 +0000 (09:43 +0000)]
UBUNTU: SAUCE: platform/x86: dell-uart-backlight: rename kzfree() to kfree_sensitive()

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: [Config] Update configs and annotations for v5.10-rc1
Paolo Pisati [Mon, 26 Oct 2020 15:12:41 +0000 (16:12 +0100)]
UBUNTU: [Config] Update configs and annotations for v5.10-rc1

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: Rebase to v5.10-rc1
Paolo Pisati [Mon, 26 Oct 2020 14:32:18 +0000 (15:32 +0100)]
UBUNTU: Rebase to v5.10-rc1

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: Start new release
Paolo Pisati [Mon, 26 Oct 2020 13:55:49 +0000 (14:55 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: SAUCE: doc: remove python3-venv dependency
Paolo Pisati [Thu, 8 Oct 2020 09:33:20 +0000 (11:33 +0200)]
UBUNTU: SAUCE: doc: remove python3-venv dependency

BugLink: https://bugs.launchpad.net/bugs/1896801
Since upstream has removed python3-venv, update our build dependencies and let
linux-doc build outside a virtualenv.

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: dccp: avoid double free of ccid on child socket
Thadeu Lima de Souza Cascardo [Fri, 28 Aug 2020 02:47:47 +0000 (23:47 -0300)]
UBUNTU: SAUCE: dccp: avoid double free of ccid on child socket

When a dccp socket is cloned, the pointers to dccps_hc_rx_ccid and
dccps_hc_tx_ccid are copied. When CCID features are activated on the child
socket, the CCID objects are freed, leaving the parent socket with dangling
pointers.

During cloning, set dccps_hc_rx_ccid and dccps_hc_tx_ccid to NULL so the
parent objects are not freed.

Reported-by: Hadar Manor
CVE-2020-16119
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: drm/dp: HP DreamColor panel brigntness fix
Kai-Heng Feng [Wed, 7 Oct 2020 11:54:03 +0000 (19:54 +0800)]
UBUNTU: SAUCE: drm/dp: HP DreamColor panel brigntness fix

BugLink: https://bugs.launchpad.net/bugs/1898865
HP DreamColor panel, which is used by new HP ZBook Studio, needs to use
DPCD to control brightness.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: drm/i915/dpcd_bl: Skip testing control capability with force DPCD...
Kai-Heng Feng [Wed, 7 Oct 2020 11:54:00 +0000 (19:54 +0800)]
UBUNTU: SAUCE: drm/i915/dpcd_bl: Skip testing control capability with force DPCD quirk

BugLink: https://bugs.launchpad.net/bugs/1898865
HP DreamColor panel needs to be controlled via AUX interface. However,
it has both DP_EDP_BACKLIGHT_BRIGHTNESS_AUX_SET_CAP and
DP_EDP_BACKLIGHT_BRIGHTNESS_PWM_PIN_CAP set, so it fails to pass
intel_dp_aux_display_control_capable() test.

Skip the test if the panel has force DPCD quirk.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: Audit: Fix for missing NULL check
Casey Schaufler [Tue, 1 Sep 2020 18:19:11 +0000 (11:19 -0700)]
UBUNTU: SAUCE: Audit: Fix for missing NULL check

AppArmor audit calls can have a NULL audit context,
so the LSM context audit needs to check for this.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: AppArmor: Remove the exclusive flag
Casey Schaufler [Mon, 6 Apr 2020 15:05:13 +0000 (08:05 -0700)]
UBUNTU: SAUCE: AppArmor: Remove the exclusive flag

With the inclusion of the "display" process attribute
mechanism AppArmor no longer needs to be treated as an
"exclusive" security module. Remove the flag that indicates
it is exclusive. Remove the stub getpeersec_dgram AppArmor
hook as it has no effect in the single LSM case and
interferes in the multiple LSM case.

Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: LSM: Add /proc attr entry for full LSM context
Casey Schaufler [Fri, 21 Aug 2020 22:27:38 +0000 (15:27 -0700)]
UBUNTU: SAUCE: LSM: Add /proc attr entry for full LSM context

Add an entry /proc/.../attr/context which displays the full
process security "context" in compound format:
        lsm1\0value\0lsm2\0value\0...
This entry is not writable.

A security module may decide that its policy does not allow
this information to be displayed. In this case none of the
information will be displayed.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Cc: linux-api@vger.kernel.org
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: Audit: Add a new record for multiple object LSM
Casey Schaufler [Fri, 21 Aug 2020 21:59:03 +0000 (14:59 -0700)]
UBUNTU: SAUCE: Audit: Add a new record for multiple object LSM
 attributes

Create a new audit record type to contain the object information
when there are multiple security modules that require such data.
This record is emitted before the other records for the event, but
is linked with the same timestamp and serial number.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Cc: linux-audit@redhat.com
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: Audit: Add new record for multiple process LSM attributes
Casey Schaufler [Fri, 21 Aug 2020 21:29:19 +0000 (14:29 -0700)]
UBUNTU: SAUCE: Audit: Add new record for multiple process LSM attributes

Create a new audit record type to contain the subject information
when there are multiple security modules that require such data.
This record is linked with the same timestamp and serial number.
The record is produced only in cases where there is more than one
security module with a process "context".

Before this change the only audit events that required multiple
records were syscall events. Several non-syscall events include
subject contexts, so the use of audit_context data has been expanded
as necessary.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Cc: linux-audit@redhat.com
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: LSM: Verify LSM display sanity in binder
Casey Schaufler [Tue, 24 Mar 2020 00:00:09 +0000 (17:00 -0700)]
UBUNTU: SAUCE: LSM: Verify LSM display sanity in binder

Verify that the tasks on the ends of a binder transaction
use the same "display" security module. This prevents confusion
of security "contexts".

Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>