summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Tianjia Zhang [Thu, 7 Jan 2021 09:28:55 +0000 (17:28 +0800)]
X.509: Fix crash caused by NULL pointer
Origin: https://lore.kernel.org/linux-crypto/
20210107092855.76093-1-tianjia.zhang@linux.alibaba.com/
Bug-Debian: https://bugs.debian.org/979496
On the following call path, `sig->pkey_algo` is not assigned
in asymmetric_key_verify_signature(), which causes runtime
crash in public_key_verify_signature().
keyctl_pkey_verify
asymmetric_key_verify_signature
verify_signature
public_key_verify_signature
This patch simply check this situation and fixes the crash
caused by NULL pointer.
Fixes: 215525639631 ("X.509: support OSCCA SM2-with-SM3 certificate verification")
Cc: stable@vger.kernel.org # v5.10+
Reported-by: Tobias Markus <tobias@markus-regensburg.de>
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name X.509-Fix-crash-caused-by-NULL-pointer.patch
Ben Hutchings [Tue, 20 Aug 2019 17:12:35 +0000 (18:12 +0100)]
Partially revert "net: socket: implement 64-bit timestamps"
The introduction of SIOCGSTAMP{,NS}_OLD and move of SICOGSTAMP{,NS} to
a different header has caused build failures for various user-space
programs including qemu and suricata. It also causes a test failure
for glibc.
For now, remove the _OLD suffix on the old ioctl numbers and require
programs using 64-bit timestamps to explicitly use SIOCGSTAMP{,NS}_NEW.
References: https://lore.kernel.org/lkml/
af0eb47a-5b98-1bd9-3e8d-
652e7f28b01f@de.ibm.com/
References: https://bugs.debian.org/934316
References: https://ci.debian.net/data/autopkgtest/testing/amd64/g/glibc/
2772289/log.gz
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name partially-revert-net-socket-implement-64-bit-timestamps.patch
Ben Hutchings [Mon, 7 Sep 2020 02:38:04 +0000 (03:38 +0100)]
Makefile: Do not check for libelf when building OOT module
When building out-of-tree modules, the necessary tools should have
already been built. We therefore do not need libelf-dev to be
installed.
This effectively reverts commit
9f0c18aec620 "objtool: Fix
CONFIG_STACK_VALIDATION=y warning for out-of-tree modules", and
similarly moves the check introduced by commit
33a57ce0a54d "bpf:
Compile resolve_btfids tool at kernel compilation start".
Gbp-Pq: Topic debian
Gbp-Pq: Name makefile-do-not-check-for-libelf-when-building-oot-module.patch
Ben Hutchings [Wed, 11 Jan 2017 04:30:40 +0000 (04:30 +0000)]
Partially revert "usb: Kconfig: using select for USB_COMMON dependency"
Forwarded: https://marc.info/?l=linux-usb&m=
149248300414300
This reverts commit
cb9c1cfc86926d0e86d19c8e34f6c23458cd3478 for
USB_LED_TRIG. This config symbol has bool type and enables extra code
in usb_common itself, not a separate driver. Enabling it should not
force usb_common to be built-in!
Fixes: cb9c1cfc8692 ("usb: Kconfig: using select for USB_COMMON dependency")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name partially-revert-usb-kconfig-using-select-for-usb_co.patch
Ben Hutchings [Wed, 13 Apr 2016 20:48:06 +0000 (21:48 +0100)]
fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers
Bug-Debian: https://bugs.debian.org/819725
Forwarded: http://mid.gmane.org/
20160517133631.GF7555@decadent.org.uk
This helps initramfs builders and other tools to find the full
dependencies of a module.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
[Lukas Wunner: Forward-ported to 4.11: drop parts applied upstream]
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name fs-add-module_softdep-declarations-for-hard-coded-cr.patch
Ian Campbell [Wed, 20 Nov 2013 08:30:14 +0000 (08:30 +0000)]
phy/marvell: disable 4-port phys
Bug-Debian: https://bugs.debian.org/723177
Forwarded: http://thread.gmane.org/gmane.linux.debian.devel.bugs.general/
1107774/
The Marvell PHY was originally disabled because it can cause networking
failures on some systems. According to Lennert Buytenhek this is because some
of the variants added did not share the same register layout. Since the known
cases are all 4-ports disable those variants (indicated by a 4 in the
penultimate position of the model name) until they can be audited for
correctness.
[bwh: Also #if-out the init functions for these PHYs to avoid
compiler warnings]
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name disable-some-marvell-phys.patch
Ben Hutchings [Mon, 12 Feb 2018 23:59:26 +0000 (23:59 +0000)]
x86: Make x32 syscall support conditional on a kernel parameter
Bug-Debian: https://bugs.debian.org/708070
Forwarded: https://lore.kernel.org/lkml/
1415245982.3398.53.camel@decadent.org.uk/T/#u
Enabling x32 in the standard amd64 kernel would increase its attack
surface while provide no benefit to the vast majority of its users.
No-one seems interested in regularly checking for vulnerabilities
specific to x32 (at least no-one with a white hat).
Still, adding another flavour just to turn on x32 seems wasteful. And
the only differences on syscall entry are a few instructions that mask
out the x32 flag and compare the syscall number.
Use a static key to control whether x32 syscalls are really enabled, a
Kconfig parameter to set its default value and a kernel parameter
"syscall.x32" to change it at boot time.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/x86
Gbp-Pq: Name x86-make-x32-syscall-support-conditional.patch
Ben Hutchings [Mon, 5 Dec 2011 04:00:58 +0000 (04:00 +0000)]
x86: memtest: WARN if bad RAM found
Bug-Debian: https://bugs.debian.org/613321
Forwarded: http://thread.gmane.org/gmane.linux.kernel/
1286471
Since this is not a particularly thorough test, if we find any bad
bits of RAM then there is a fair chance that there are other bad bits
we fail to detect.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/x86
Gbp-Pq: Name x86-memtest-WARN-if-bad-RAM-found.patch
Uwe Kleine-König [Wed, 14 Oct 2020 20:00:30 +0000 (22:00 +0200)]
arm64: dts: rockchip: Add basic support for Kobol's Helios64
Origin: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/patch/?id=
09e006cfb43e8ec38afe28278b210dab72e6cac8
The hardware is described in detail on Kobol's wiki at
https://wiki.kobol.io/helios64/intro/.
Up to now the following peripherals are working:
- UART
- Micro-SD card
- eMMC
- ethernet port 1
- status LED
- temperature sensor on i2c bus 2
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Link: https://lore.kernel.org/r/20201014200030.845759-3-uwe@kleine-koenig.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Gbp-Pq: Topic features/arm64
Gbp-Pq: Name arm64-dts-rockchip-Add-basic-support-for-Kobol-s-Hel.patch
Aurelien Jarno [Sat, 9 Jan 2021 19:06:27 +0000 (20:06 +0100)]
MIPS: Support binutils configured with --enable-mips-fix-loongson3-llsc=yes
Forwarded: https://lore.kernel.org/linux-mips/
20210109193048.478339-1-aurelien@aurel32.net/T/#u
From version 2.35, binutils can be configured with
--enable-mips-fix-loongson3-llsc=yes, which means it defaults to
-mfix-loongson3-llsc. This breaks labels which might then point at the
wrong instruction.
The workaround to explicitly pass -mno-fix-loongson3-llsc has been
added in Linux version 5.1, but is only enabled when building a Loongson
64 kernel. As vendors might use a common toolchain for building Loongson
and non-Loongson kernels, just move that workaround to
arch/mips/Makefile. At the same time update the comments to reflect the
current status.
Cc: stable@vger.kernel.org # 5.1+
Cc: YunQiang Su <syq@debian.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Gbp-Pq: Topic bugfix/mips
Gbp-Pq: Name mips-support-binutils-configured-with-enable-mips-fi.patch
Ben Hutchings [Tue, 25 Sep 2018 18:44:13 +0000 (19:44 +0100)]
x86-32: Disable 3D-Now in generic config
We want the 686 flavour to run on Geode LX and similar AMD family 5
CPUs as well as family 6 and higher CPUs. This used to work with
CONFIG_M686=y. However commit
25d76ac88821 "x86/Kconfig: Explicitly
enumerate i686-class CPUs in Kconfig" in Linux 4.16 has made the
kernel require family 6 or higher.
It looks like a sensible choice would be to enable CONFIG_MGEODE_LX
and CONFIG_X86_GENERIC (for more generic optimisations), but this
currently enables CONFIG_X86_USE_3D_NOW which will cause the kernel to
crash on CPUs without the AMD-specific 3D-Now instructions.
Make CONFIG_X86_USE_3DNOW depend on CONFIG_X86_GENERIC being disabled.
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name x86-32-disable-3dnow-in-generic-config.patch
Geoff Levand [Wed, 13 Jun 2018 17:56:08 +0000 (10:56 -0700)]
arm64/acpi: Add fixup for HPE m400 quirks
Forwarded: https://patchwork.codeaurora.org/patch/547277/
Adds a new ACPI init routine acpi_fixup_m400_quirks that adds
a work-around for HPE ProLiant m400 APEI firmware problems.
The work-around disables APEI when CONFIG_ACPI_APEI is set and
m400 firmware is detected. Without this fixup m400 systems
experience errors like these on startup:
[Hardware Error]: Hardware error from APEI Generic Hardware Error Source: 2
[Hardware Error]: event severity: fatal
[Hardware Error]: Error 0, type: fatal
[Hardware Error]: section_type: memory error
[Hardware Error]: error_status: 0x0000000000001300
[Hardware Error]: error_type: 10, invalid address
Kernel panic - not syncing: Fatal hardware error!
Signed-off-by: Geoff Levand <geoff@infradead.org>
[bwh: Adjust context to apply to Linux 4.19]
Gbp-Pq: Topic bugfix/arm64
Gbp-Pq: Name arm64-acpi-Add-fixup-for-HPE-m400-quirks.patch
Krzysztof Kozlowski [Wed, 29 Aug 2018 07:32:23 +0000 (09:32 +0200)]
powerpc/boot: Fix missing crc32poly.h when building with KERNEL_XZ
Origin: https://patchwork.ozlabs.org/patch/963258/
After commit
faa16bc404d7 ("lib: Use existing define with
polynomial") the lib/xz/xz_crc32.c includes a header from include/linux
directory thus any other user of this code should define proper include
path.
This fixes the build error on powerpc with CONFIG_KERNEL_XZ:
In file included from ../arch/powerpc/boot/../../../lib/decompress_unxz.c:233:0,
from ../arch/powerpc/boot/decompress.c:42:
../arch/powerpc/boot/../../../lib/xz/xz_crc32.c:18:29: fatal error: linux/crc32poly.h: No such file or directory
Reported-by: Michal Kubecek <mkubecek@suse.cz>
Fixes: faa16bc404d7 ("lib: Use existing define with polynomial")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Meelis Roos <mroos@linux.ee>
Tested-by: Michal Kubecek <mkubecek@suse.cz>
Gbp-Pq: Topic bugfix/powerpc
Gbp-Pq: Name powerpc-boot-fix-missing-crc32poly.h-when-building-with-kernel_xz.patch
Ben Hutchings [Wed, 11 Jul 2018 22:40:55 +0000 (23:40 +0100)]
ARM: mm: Export __sync_icache_dcache() for xen-privcmd
Forwarded: https://marc.info/?l=linux-arm-kernel&m=
153134944429241
The xen-privcmd driver, which can be modular, calls set_pte_at()
which in turn may call __sync_icache_dcache().
The call to __sync_icache_dcache() may be optimised out because it is
conditional on !pte_special(), and xen-privcmd calls pte_mkspecial().
However, in a non-LPAE configuration there is no "special" bit and the
call is really unconditional.
Fixes: 3ad0876554ca ("xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/arm
Gbp-Pq: Name arm-mm-export-__sync_icache_dcache-for-xen-privcmd.patch
Ben Hutchings [Sat, 19 Aug 2017 20:42:09 +0000 (21:42 +0100)]
sh: Do not use hyphen in exported variable names
Forwarded: https://marc.info/?l=linux-sh&m=
150317827322995&w=2
arch/sh/Makefile defines and exports ld-bfd to be used by
arch/sh/boot/Makefile and arch/sh/boot/compressed/Makefile. Similarly
arch/sh/boot/Makefile defines and exports suffix-y to be used by
arch/sh/boot/compressed/Makefile. However some shells, including
dash, will not pass through environment variables whose name includes
a hyphen. Usually GNU make does not use a shell to recurse, but if
e.g. $(srctree) contains '~' it will use a shell here.
Rename these variables to ld_bfd and suffix_y.
References: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=sh4&ver=4.13%7Erc5-1%7Eexp1&stamp=
1502943967&raw=0
Fixes: ef9b542fce00 ("sh: bzip2/lzma uImage support.")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/sh
Gbp-Pq: Name sh-boot-do-not-use-hyphen-in-exported-variable-name.patch
Ben Hutchings [Sat, 22 Jul 2017 16:37:33 +0000 (17:37 +0100)]
perf tools: Fix unwind build on i386
Forwarded: no
EINVAL may not be defined when building unwind-libunwind.c with
REMOTE_UNWIND_LIBUNWIND, resulting in a compiler error in
LIBUNWIND__ARCH_REG_ID(). Its only caller, access_reg(), only checks
for a negative return value and doesn't care what it is. So change
-EINVAL to -1.
Fixes: 52ffe0ff02fc ("Support x86(32-bit) cross platform callchain unwind.")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name perf-tools-fix-unwind-build-on-i386.patch
Heinrich Schuchardt [Mon, 4 Jun 2018 17:15:23 +0000 (19:15 +0200)]
arm64: dts: rockchip: correct voltage selector on Firefly-RK3399
Bug-Debian: https://bugs.debian.org/900799
Origin: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/patch/?id=
710e8c4a54be82ee8a97324e7b4330bf191e08bf
Without this patch the Firefly-RK3399 board boot process hangs after these
lines:
fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!
fan53555-reg: supplied by vcc_sys
vcc1v8_s3: supplied by vcc_1v8
Blacklisting driver fan53555 allows booting.
The device tree uses a value of fcs,suspend-voltage-selector different to
any other board.
Changing this setting to the usual value is sufficient to enable booting
and also matches the value used in the vendor kernel.
Fixes: 171582e00db1 ("arm64: dts: rockchip: add support for firefly-rk3399 board")
Cc: stable@vger.kernel.org
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Gbp-Pq: Topic bugfix/arm64
Gbp-Pq: Name dts-rockchip-correct-voltage-selector-firefly-RK3399.patch
Ben Hutchings [Fri, 17 Feb 2017 01:30:30 +0000 (01:30 +0000)]
ARM: dts: kirkwood: Fix SATA pinmux-ing for TS419
Forwarded: https://www.spinics.net/lists/arm-kernel/msg563610.html
Bug-Debian: https://bugs.debian.org/855017
The old board code for the TS419 assigns MPP pins 15 and 16 as SATA
activity signals (and none as SATA presence signals). Currently the
device tree assigns the SoC's default pinmux groups for SATA, which
conflict with the second Ethernet port.
Reported-by: gmbh@gazeta.pl
Tested-by: gmbh@gazeta.pl
References: https://bugs.debian.org/855017
Cc: stable@vger.kernel.org # 3.15+
Fixes: 934b524b3f49 ("ARM: Kirkwood: Add DT description of QNAP 419")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/arm
Gbp-Pq: Name arm-dts-kirkwood-fix-sata-pinmux-ing-for-ts419.patch
Adam Borowski [Tue, 28 Mar 2017 14:55:05 +0000 (16:55 +0200)]
btrfs: warn about RAID5/6 being experimental at mount time
Bug-Debian: https://bugs.debian.org/863290
Origin: https://bugs.debian.org/863290#5
Too many people come complaining about losing their data -- and indeed,
there's no warning outside a wiki and the mailing list tribal knowledge.
Message severity chosen for consistency with XFS -- "alert" makes dmesg
produce nice red background which should get the point across.
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
[bwh: Also add_taint() so this is flagged in bug reports]
Gbp-Pq: Topic debian
Gbp-Pq: Name btrfs-warn-about-raid5-6-being-experimental-at-mount.patch
Ben Hutchings [Wed, 13 Jul 2016 00:37:22 +0000 (01:37 +0100)]
fanotify: Taint on use of FANOTIFY_ACCESS_PERMISSIONS
Forwarded: not-needed
Various free and proprietary AV products use this feature and users
apparently want it. But punting access checks to userland seems like
an easy way to deadlock the system, and there will be nothing we can
do about that. So warn and taint the kernel if this feature is
actually used.
Gbp-Pq: Topic debian
Gbp-Pq: Name fanotify-taint-on-use-of-fanotify_access_permissions.patch
Ben Hutchings [Sat, 18 Mar 2017 20:47:58 +0000 (20:47 +0000)]
fjes: Disable auto-loading
Bug-Debian: https://bugs.debian.org/853976
Forwarded: no
fjes matches a generic ACPI device ID, and relies on its probe
function to distinguish whether that really corresponds to a supported
device. Very few system will need the driver and it wastes memory on
all the other systems where the same device ID appears, so disable
auto-loading.
Gbp-Pq: Topic debian
Gbp-Pq: Name fjes-disable-autoload.patch
Ben Hutchings [Sat, 20 Apr 2013 14:52:02 +0000 (15:52 +0100)]
viafb: Autoload on OLPC XO 1.5 only
Bug-Debian: https://bugs.debian.org/705788
Forwarded: no
It appears that viafb won't work automatically on all the boards for
which it has a PCI device ID match. Currently, it is blacklisted by
udev along with most other framebuffer drivers, so this doesn't matter
much.
However, this driver is required for console support on the XO 1.5.
We need to allow it to be autoloaded on this model only, and then
un-blacklist it in udev.
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name viafb-autoload-on-olpc-xo1.5-only.patch
Ben Hutchings [Wed, 5 Feb 2014 23:01:30 +0000 (23:01 +0000)]
snd-pcsp: Disable autoload
Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/697709
There are two drivers claiming the platform:pcspkr device:
- pcspkr creates an input(!) device that can only beep
- snd-pcsp creates an equivalent input device plus a PCM device that can
play barely recognisable renditions of sampled sound
snd-pcsp is blacklisted by the alsa-base package, but not everyone
installs that. On PCs where no sound is wanted at all, both drivers
will still be loaded and one or other will complain that it couldn't
claim the relevant I/O range.
In case anyone finds snd-pcsp useful, we continue to build it. But
remove the alias, to ensure it's not loaded where it's not wanted.
Gbp-Pq: Topic debian
Gbp-Pq: Name snd-pcsp-disable-autoload.patch
Ben Hutchings [Sun, 31 Mar 2013 02:58:04 +0000 (03:58 +0100)]
cdc_ncm,cdc_mbim: Use NCM by default
Forwarded: not-needed
Devices that support both NCM and MBIM modes should be kept in NCM
mode unless there is userland support for MBIM.
Set the default value of cdc_ncm.prefer_mbim to false and leave it to
userland (modem-manager) to override this with a modprobe.conf file
once it's ready to speak MBIM.
Gbp-Pq: Topic debian
Gbp-Pq: Name cdc_ncm-cdc_mbim-use-ncm-by-default.patch
Ben Hutchings [Tue, 20 Aug 2019 23:32:16 +0000 (00:32 +0100)]
intel-iommu: Add Kconfig option to exclude iGPU by default
Bug-Debian: https://bugs.debian.org/935270
Bug-Kali: https://bugs.kali.org/view.php?id=5644
There is still laptop firmware that touches the integrated GPU behind
the operating system's back, and doesn't say so in the RMRR table.
Enabling the IOMMU for all devices causes breakage.
Replace CONFIG_INTEL_IOMMU_DEFAULT_ON with a 3-way choice
corresponding to "on", "off", and "on,intgpu_off".
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/x86
Gbp-Pq: Name intel-iommu-add-kconfig-option-to-exclude-igpu-by-default.patch
Ben Hutchings [Tue, 20 Aug 2019 23:05:30 +0000 (00:05 +0100)]
intel-iommu: Add option to exclude integrated GPU only
Bug-Debian: https://bugs.debian.org/935270
Bug-Kali: https://bugs.kali.org/view.php?id=5644
There is still laptop firmware that touches the integrated GPU behind
the operating system's back, and doesn't say so in the RMRR table.
Enabling the IOMMU for all devices causes breakage, but turning it off
for all graphics devices seems like a major weakness.
Add an option, intel_iommu=igpu_off, to exclude only integrated GPUs
from remapping. This is a narrower exclusion than igfx_off: it only
affects Intel devices on the root bus. Devices attached through an
external port (Thunderbolt or ExpressCard) won't be on the root bus.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/x86
Gbp-Pq: Name intel-iommu-add-option-to-exclude-integrated-gpu-only.patch
Ben Hutchings [Mon, 11 Jan 2016 15:23:55 +0000 (15:23 +0000)]
security,perf: Allow further restriction of perf_event_open
Forwarded: https://lkml.org/lkml/2016/1/11/587
When kernel.perf_event_open is set to 3 (or greater), disallow all
access to performance events by users without CAP_SYS_ADMIN.
Add a Kconfig symbol CONFIG_SECURITY_PERF_EVENTS_RESTRICT that
makes this value the default.
This is based on a similar feature in grsecurity
(CONFIG_GRKERNSEC_PERF_HARDEN). This version doesn't include making
the variable read-only. It also allows enabling further restriction
at run-time regardless of whether the default is changed.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all
Gbp-Pq: Name security-perf-allow-further-restriction-of-perf_event_open.patch
Serge Hallyn [Fri, 31 May 2013 18:12:12 +0000 (19:12 +0100)]
add sysctl to disallow unprivileged CLONE_NEWUSER by default
Origin: http://kernel.ubuntu.com/git?p=serge%2Fubuntu-saucy.git;a=commit;h=
5c847404dcb2e3195ad0057877e1422ae90892b8
add sysctl to disallow unprivileged CLONE_NEWUSER by default
This is a short-term patch. Unprivileged use of CLONE_NEWUSER
is certainly an intended feature of user namespaces. However
for at least saucy we want to make sure that, if any security
issues are found, we have a fail-safe.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
[bwh: Remove unneeded binary sysctl bits]
[bwh: Keep this sysctl, but change the default to enabled]
Gbp-Pq: Topic debian
Gbp-Pq: Name add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by-default.patch
Ben Hutchings [Wed, 19 Jun 2013 03:35:28 +0000 (04:35 +0100)]
yama: Disable by default
Bug-Debian: https://bugs.debian.org/712740
Forwarded: not-needed
Gbp-Pq: Topic debian
Gbp-Pq: Name yama-disable-by-default.patch
Ben Hutchings [Wed, 16 Mar 2011 03:17:06 +0000 (03:17 +0000)]
sched: Do not enable autogrouping by default
Forwarded: not-needed
We want to provide the option of autogrouping but without enabling
it by default yet.
Gbp-Pq: Topic debian
Gbp-Pq: Name sched-autogroup-disabled.patch
Ben Hutchings [Fri, 2 Nov 2012 05:32:06 +0000 (05:32 +0000)]
fs: Enable link security restrictions by default
Bug-Debian: https://bugs.debian.org/609455
Forwarded: not-needed
This reverts commit
561ec64ae67ef25cac8d72bb9c4bfc955edfd415
('VFS: don't do protected {sym,hard}links by default').
Gbp-Pq: Topic debian
Gbp-Pq: Name fs-enable-link-security-restrictions-by-default.patch
Ben Hutchings [Sun, 4 Aug 2019 23:29:11 +0000 (00:29 +0100)]
hamradio: Disable auto-loading as mitigation against local exploits
Forwarded: not-needed
We can mitigate the effect of vulnerabilities in obscure protocols by
preventing unprivileged users from loading the modules, so that they
are only exploitable on systems where the administrator has chosen to
load the protocol.
The 'ham' radio protocols (ax25, netrom, rose) are not actively
maintained or widely used. Therefore disable auto-loading.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic debian
Gbp-Pq: Name hamradio-disable-auto-loading-as-mitigation-against-local-exploits.patch
Ben Hutchings [Thu, 16 Feb 2017 19:09:17 +0000 (19:09 +0000)]
dccp: Disable auto-loading as mitigation against local exploits
Forwarded: not-needed
We can mitigate the effect of vulnerabilities in obscure protocols by
preventing unprivileged users from loading the modules, so that they
are only exploitable on systems where the administrator has chosen to
load the protocol.
The 'dccp' protocol is not actively maintained or widely used.
Therefore disable auto-loading.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic debian
Gbp-Pq: Name dccp-disable-auto-loading-as-mitigation-against-local-exploits.patch
Ben Hutchings [Sat, 20 Nov 2010 02:24:55 +0000 (02:24 +0000)]
[PATCH] decnet: Disable auto-loading as mitigation against local exploits
Forwarded: not-needed
Recent review has revealed several bugs in obscure protocol
implementations that can be exploited by local users for denial of
service or privilege escalation. We can mitigate the effect of any
remaining vulnerabilities in such protocols by preventing unprivileged
users from loading the modules, so that they are only exploitable on
systems where the administrator has chosen to load the protocol.
The 'decnet' protocol is unmaintained and of mostly historical
interest, and the user-space support package 'dnet-common' loads the
module explicitly. Therefore disable auto-loading.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic debian
Gbp-Pq: Name decnet-Disable-auto-loading-as-mitigation-against-lo.patch
Ben Hutchings [Fri, 19 Nov 2010 02:12:48 +0000 (02:12 +0000)]
[PATCH 1/3] rds: Disable auto-loading as mitigation against local exploits
Forwarded: not-needed
Recent review has revealed several bugs in obscure protocol
implementations that can be exploited by local users for denial of
service or privilege escalation. We can mitigate the effect of any
remaining vulnerabilities in such protocols by preventing unprivileged
users from loading the modules, so that they are only exploitable on
systems where the administrator has chosen to load the protocol.
The 'rds' protocol is one such protocol that has been found to be
vulnerable, and which was not present in the 'lenny' kernel.
Therefore disable auto-loading.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic debian
Gbp-Pq: Name rds-Disable-auto-loading-as-mitigation-against-local.patch
Ben Hutchings [Fri, 19 Nov 2010 02:12:48 +0000 (02:12 +0000)]
[PATCH 2/3] af_802154: Disable auto-loading as mitigation against local exploits
Forwarded: not-needed
Recent review has revealed several bugs in obscure protocol
implementations that can be exploited by local users for denial of
service or privilege escalation. We can mitigate the effect of any
remaining vulnerabilities in such protocols by preventing unprivileged
users from loading the modules, so that they are only exploitable on
systems where the administrator has chosen to load the protocol.
The 'af_802154' (IEEE 802.15.4) protocol is not widely used, was
not present in the 'lenny' kernel, and seems to receive only sporadic
maintenance. Therefore disable auto-loading.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic debian
Gbp-Pq: Name af_802154-Disable-auto-loading-as-mitigation-against.patch
Ben Hutchings [Mon, 12 Mar 2018 01:14:03 +0000 (01:14 +0000)]
firmware_class: Refer to Debian wiki page when logging missing firmware
Bug-Debian: https://bugs.debian.org/888405
Forwarded: not-needed
If firmware loading fails due to a missing file, log a second error
message referring to our wiki page about firmware. This will explain
why some firmware is in non-free, or can't be packaged at all. Only
do this once per boot.
Do something similar in the radeon and amdgpu drivers, where we have
an early check to avoid failing at a point where we cannot display
anything.
Gbp-Pq: Topic debian
Gbp-Pq: Name firmware_class-refer-to-debian-wiki-firmware-page.patch
Ben Hutchings [Tue, 8 Jan 2013 03:25:52 +0000 (03:25 +0000)]
radeon, amdgpu: Firmware is required for DRM and KMS on R600 onward
Bug-Debian: https://bugs.debian.org/607194
Bug-Debian: https://bugs.debian.org/607471
Bug-Debian: https://bugs.debian.org/610851
Bug-Debian: https://bugs.debian.org/627497
Bug-Debian: https://bugs.debian.org/632212
Bug-Debian: https://bugs.debian.org/637943
Bug-Debian: https://bugs.debian.org/649448
Bug-Debian: https://bugs.debian.org/697229
Forwarded: no
radeon requires firmware/microcode for the GPU in all chips, but for
newer chips (apparently R600 'Evergreen' onward) it also expects
firmware for the memory controller and other sub-blocks.
radeon attempts to gracefully fall back and disable some features if
the firmware is not available, but becomes unstable - the framebuffer
and/or system memory may be corrupted, or the display may stay black.
Therefore, perform a basic check for the existence of
/lib/firmware/{radeon,amdgpu} when a device is probed, and abort if it
is missing, except for the pre-R600 case.
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name radeon-amdgpu-firmware-is-required-for-drm-and-kms-on-r600-onward.patch
Ben Hutchings [Sun, 9 Dec 2012 16:40:31 +0000 (16:40 +0000)]
firmware: Remove redundant log messages from drivers
Forwarded: no
Now that firmware_class logs every success and failure consistently,
many other log messages can be removed from drivers.
This will probably need to be split up into multiple patches prior to
upstream submission.
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name firmware-remove-redundant-log-messages-from-drivers.patch
Ben Hutchings [Sun, 9 Dec 2012 16:02:00 +0000 (16:02 +0000)]
firmware_class: Log every success and failure against given device
Forwarded: no
The hundreds of users of request_firmware() have nearly as many
different log formats for reporting failures. They also have only the
vaguest hint as to what went wrong; only firmware_class really knows
that. Therefore, add specific log messages for the failure modes that
aren't currently logged.
In case of a driver that tries multiple names, this may result in the
impression that it failed to initialise. Therefore, also log successes.
This makes many error messages in drivers redundant, which will be
removed in later patches.
This does not cover the case where we fall back to a user-mode helper
(which is no longer enabled in Debian).
NOTE: hw-detect will depend on the "firmware: failed to load %s (%d)\n"
format to detect missing firmware.
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name firmware_class-log-every-success-and-failure.patch
Ben Hutchings [Wed, 20 Jan 2021 16:40:43 +0000 (16:40 +0000)]
iwlwifi: Do not request unreleased firmware for IWL6000
Bug-Debian: https://bugs.debian.org/689416
Forwarded: not-needed
The iwlwifi driver currently supports firmware API versions 4-6 for
these devices. It will request the file for the latest supported
version and then fall back to earlier versions. However, the latest
version that has actually been released is 4, so we expect the
requests for versions 6 and then 5 to fail.
The installer appears to report any failed request, and it is probably
not easy to detect that this particular failure is harmless. So stop
requesting the unreleased firmware.
Gbp-Pq: Topic debian
Gbp-Pq: Name iwlwifi-do-not-request-unreleased-firmware.patch
Ben Hutchings [Mon, 24 Aug 2009 22:19:58 +0000 (23:19 +0100)]
af9005: Use request_firmware() to load register init script
Forwarded: no
Read the register init script from the Windows driver. This is sick
but should avoid the potential copyright infringement in distributing
a version of the script which is directly derived from the driver.
Gbp-Pq: Topic features/all
Gbp-Pq: Name drivers-media-dvb-usb-af9005-request_firmware.patch
Ben Hutchings [Thu, 10 Dec 2020 16:31:39 +0000 (17:31 +0100)]
kbuild: Look for module.lds under arch directory too
Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/975571
The module.lds linker script is now built under the scripts directory,
where previously it was under arch/$(SRCARCH).
However, we package the scripts directory as linux-kbuild, which is
meant to be able to do support native and cross-builds. That means it
shouldn't contain files for a specific target architecture without a
wrapper to select between them, and it doesn't appear that linker
scripts are powerful enough to implement such a wrapper.
Building module.lds in a different location would require relatively
large changes. Moving it in the package build rules can work, but we
need to support custom kernel builds from the same source so we can't
assume it's moved.
Therefore, we move module.lds under the arch build directory in
rules.real and change Makefile.modfinal to look for it in both places.
Gbp-Pq: Topic debian
Gbp-Pq: Name kbuild-look-for-module.lds-under-arch-directory-too.patch
Bastian Blank [Tue, 4 Aug 2020 09:44:37 +0000 (09:44 +0000)]
[PATCH 2/2] perf/traceevent: Support asciidoctor for documentation
From
cd02fc78859ef9aefd7c92406f9523622da0b472 Mon Sep 17 00:00:00 2001
Forwarded: not-needed
Gbp-Pq: Topic debian
Gbp-Pq: Name perf-traceevent-support-asciidoctor-for-documentatio.patch
Bastian Blank [Tue, 4 Aug 2020 09:44:19 +0000 (09:44 +0000)]
[PATCH 1/2] Documentation: Drop sphinx version check
From
252aa79fdbd4ac2da09d9b98f81bf11f5e3e1870 Mon Sep 17 00:00:00 2001
Forwarded: not-needed
Gbp-Pq: Topic debian
Gbp-Pq: Name documentation-drop-sphinx-version-check.patch
Ben Hutchings [Fri, 22 Jun 2018 16:27:00 +0000 (17:27 +0100)]
android: Enable building ashmem and binder as modules
Bug-Debian: https://bugs.debian.org/901492
We want to enable use of the Android ashmem and binder drivers to
support Anbox, but they should not be built-in as that would waste
resources and increase security attack surface on systems that don't
need them.
- Add a MODULE_LICENSE declaration to ashmem
- Change the Makefiles to build each driver as an object with the
"_linux" suffix (which is what Anbox expects)
- Change config symbol types to tristate
Gbp-Pq: Topic debian
Gbp-Pq: Name android-enable-building-ashmem-and-binder-as-modules.patch
Ben Hutchings [Mon, 7 Sep 2020 01:51:53 +0000 (02:51 +0100)]
Export symbols needed by Android drivers
Bug-Debian: https://bugs.debian.org/901492
We want to enable use of the Android ashmem and binder drivers to
support Anbox, but they should not be built-in as that would waste
resources and increase security attack surface on systems that don't
need them.
Export the currently un-exported symbols they depend on.
Gbp-Pq: Topic debian
Gbp-Pq: Name export-symbols-needed-by-android-drivers.patch
Ben Hutchings [Fri, 13 Apr 2018 19:10:28 +0000 (20:10 +0100)]
wireless: Add Debian wireless-regdb certificates
Forwarded: not-needed
This hex dump is generated using:
{
for cert in debian/certs/wireless-regdb-*.pem; do
openssl x509 -in $cert -outform der;
done
} | hexdump -v -e '1/1 "0x%.2x," "\n"' > net/wireless/certs/debian.hex
Gbp-Pq: Topic debian
Gbp-Pq: Name wireless-add-debian-wireless-regdb-certificates.patch
Bastian Blank [Fri, 7 Oct 2011 20:37:52 +0000 (21:37 +0100)]
Install perf scripts non-executable
Forwarded: no
[bwh: Forward-ported to 4.13]
Gbp-Pq: Topic debian
Gbp-Pq: Name tools-perf-install.patch
Bastian Blank [Mon, 26 Sep 2011 12:53:12 +0000 (13:53 +0100)]
Create manpages and binaries including the version
Forwarded: no
[bwh: Fix version insertion in perf man page cross-references and perf
man page title. Install bash_completion script for perf with a
version-dependent name. And do the same for trace.]
Gbp-Pq: Topic debian
Gbp-Pq: Name tools-perf-version.patch
Nobuhiro Iwamatsu [Wed, 20 Jan 2021 16:40:43 +0000 (16:40 +0000)]
[sh4] Fix uImage build
Bug-Debian: https://bugs.debian.org/569034
Forwarded: not-needed
[bwh: This was added without a description, but I think it is done
only to avoid a build-dependency on u-boot-tools.]
Gbp-Pq: Topic debian
Gbp-Pq: Name arch-sh4-fix-uimage-build.patch
YunQiang Su [Mon, 16 Nov 2020 01:11:00 +0000 (09:11 +0800)]
Use RELAXED ieee754 mode for Loongson-3 as 3A 4000 is 2008-only
Forwarded: not-needed
There are 2 mode of value of IEEE NaN hardcoded by CPU.
Currently, our mipsel/mips64el port is in so-called lagacy mode.
Loongson 3A 4000 is set as the so-called 2008 mode.
To make Debian workable on Loongson 3A 4000, we need set the kerenl in
RELAXED mode.
https://web.archive.org/web/
20180830093617/https://dmz-portal.mips.com/wiki/MIPS_ABI_-_NaN_Interlinking
Gbp-Pq: Topic debian
Gbp-Pq: Name mips-ieee754-relaxed.patch
YunQiang Su [Mon, 14 May 2018 08:16:18 +0000 (16:16 +0800)]
Disable uImage generation for mips generic
Forwarded: not-needed
MIPS generic trys to generate uImage when build, which then ask for
u-boot-tools.
Gbp-Pq: Topic debian
Gbp-Pq: Name mips-boston-disable-its.patch
Ben Hutchings [Mon, 13 Sep 2010 01:16:18 +0000 (02:16 +0100)]
[PATCH] Partially revert "MIPS: Add -Werror to arch/mips/Kbuild"
Forwarded: not-needed
This reverts commits
66f9ba101f54bda63ab1db97f9e9e94763d0651b and
5373633cc9253ba82547473e899cab141c54133e.
We really don't want to add -Werror anywhere.
Gbp-Pq: Topic debian
Gbp-Pq: Name mips-disable-werror.patch
dann frazier [Mon, 26 Mar 2007 22:30:51 +0000 (16:30 -0600)]
Hardcode arch script output
Bug-Debian: https://bugs.debian.org/392592
Forwarded: not-needed
Here's a patch that simply uses hardcoded definitions instead of
doing the dynamic tests that require architecture-specific scripts.
I don't particularly like this approach because it restricts
portability and diverts from upstream. But, it is simpler, and this
really needs to be fixed somehow before etch (along with a rebuild of
linux-modules-extra-2.6), so I'm willing to live with it if my other
patch is deemed unacceptable.
My primary concern is that, in the future, the output of these scripts
will change and we (or our successors) will either not notice or
forget to update the hardcoded values.
Including the scripts in linux-kbuild will avoid this manual step
altogether, and allow for the possibility of other archs to provide
their own scripts in the future.
Gbp-Pq: Topic debian
Gbp-Pq: Name ia64-hardcode-arch-script-output.patch
Bastian Blank [Sun, 22 Feb 2009 14:39:35 +0000 (15:39 +0100)]
kbuild: Make the toolchain variables easily overwritable
Forwarded: not-needed
Allow make variables to be overridden for each flavour by a file in
the build tree, .kernelvariables.
We currently use this for ARCH, KERNELRELEASE, CC, and in some cases
also CROSS_COMPILE, KCFLAGS.
This file can only be read after we establish the build tree, and all
use of $(ARCH) needs to be moved after this.
[bwh: Updated for 5.3: include .kernelvariables from current directory
rather than using undefined $(obj).]
Gbp-Pq: Topic debian
Gbp-Pq: Name kernelvariables.patch
Ben Hutchings [Tue, 12 May 2015 18:29:22 +0000 (19:29 +0100)]
Make mkcompile_h accept an alternate timestamp string
Forwarded: not-needed
We want to include the Debian version in the utsname::version string
instead of a full timestamp string. However, we still need to provide
a standard timestamp string for gen_initramfs_list.sh to make the
kernel image reproducible.
Make mkcompile_h use $KBUILD_BUILD_VERSION_TIMESTAMP in preference to
$KBUILD_BUILD_TIMESTAMP.
Gbp-Pq: Topic debian
Gbp-Pq: Name uname-version-timestamp.patch
Ben Hutchings [Tue, 24 Jul 2012 02:13:10 +0000 (03:13 +0100)]
Include package version along with kernel release in stack traces
Forwarded: not-needed
For distribution binary packages we assume
$DISTRIBUTION_OFFICIAL_BUILD, $DISTRIBUTOR and $DISTRIBUTION_VERSION
are set.
Gbp-Pq: Topic debian
Gbp-Pq: Name version.patch
Ben Hutchings [Sat, 24 Aug 2019 18:00:41 +0000 (19:00 +0100)]
Documentation: Fix broken link to CIPSO draft
Forwarded: not-needed
We exclude the CIPSO draft text as its licence is not DFSG compliant.
Link to the IETF's online version instead.
Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name documentation-fix-broken-link-to-cipso-draft.patch
Ben Hutchings [Sat, 2 Jun 2012 18:53:38 +0000 (19:53 +0100)]
video: Remove nvidiafb and rivafb
Bug-Debian: https://bugs.debian.org/383481
Forwarded: no
These drivers contain register programming code provided by the
hardware vendor that appears to have been deliberately obfuscated.
This is arguably not the preferred form for modification.
These drivers are also largely redundant with nouveau. The RIVA 128
(NV3) is not supported by nouveau but is about 15 years old and
probably discontinued 10 years ago.
Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name video-remove-nvidiafb-and-rivafb.patch
Frederik Schüler [Fri, 5 Jan 2007 15:55:24 +0000 (15:55 +0000)]
Add removal patches for: 3c359, smctr, keyspan, cops
Forwarded: not-needed
Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name drivers-net-appletalk-cops.patch
Ben Hutchings [Sun, 27 May 2012 00:56:58 +0000 (01:56 +0100)]
vs6624: mark as broken
Forwarded: not-needed
Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name vs6624-disable.patch
Ben Hutchings [Mon, 17 Aug 2009 01:45:41 +0000 (02:45 +0100)]
dvb-usb-af9005: mark as broken
Forwarded: not-needed
Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name drivers-media-dvb-dvb-usb-af9005-disable.patch
Ben Hutchings [Mon, 13 Apr 2009 16:34:00 +0000 (17:34 +0100)]
Remove microcode patches for mgsuvd (not enabled in Debian configs)
Forwarded: not-needed
Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name arch-powerpc-platforms-8xx-ucode-disable.patch
Ian Campbell [Thu, 17 Jan 2013 08:55:21 +0000 (08:55 +0000)]
Tweak gitignore for Debian pkg-kernel using git svn.
Forwarded: not-needed
[bwh: Tweak further for pure git]
Gbp-Pq: Topic debian
Gbp-Pq: Name gitignore.patch
Salvatore Bonaccorso [Wed, 20 Jan 2021 16:40:43 +0000 (16:40 +0000)]
linux (5.10.9-1) unstable; urgency=medium
* New upstream stable update:
https://www.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.6
- [arm64] rtc: pcf2127: move watchdog initialisation to a separate
function
- [arm64] rtc: pcf2127: only use watchdog when explicitly available
- dt-bindings: rtc: add reset-source property
- kdev_t: always inline major/minor helper functions
- ALSA: hda/realtek - Modify Dell platform name
- ALSA: hda/hdmi: Fix incorrect mutex unlock in silent_stream_disable()
- [x86] drm/i915/tgl: Fix Combo PHY DPLL fractional divider for 38.4MHz
ref clock
- RDMA/core: remove use of dma_virt_ops
- RDMA/siw,rxe: Make emulated devices virtual in the device tree
- fuse: fix bad inode
- perf: Break deadlock involving exec_update_mutex
- rwsem: Implement down_read_killable_nested
- rwsem: Implement down_read_interruptible
- exec: Transform exec_update_mutex into a rw_semaphore
https://www.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.7
- i40e: Fix Error I40E_AQ_RC_EINVAL when removing VFs
- iavf: fix double-release of rtnl_lock
- net/sched: sch_taprio: ensure to reset/destroy all child qdiscs
- [arm64,armhf] net: mvpp2: Add TCAM entry to drop flow control pause
frames
- [arm64,armhf] net: mvpp2: prs: fix PPPoE with ipv6 packet parse
- atm: idt77252: call pci_disable_device() on error path
- [arm64,armhf] net: mvpp2: Fix GoP port 3 Networking Complex Control
configurations
- [arm64,armhf] net: stmmac: dwmac-meson8b: ignore the second clock input
- [arm64,armhf] net: ethernet: mvneta: Fix error handling in mvneta_probe
- qede: fix offload for IPIP tunnel packets
- virtio_net: Fix recursive call to cpus_read_lock()
- [armhf] net/ncsi: Use real net-device for response handler
- net-sysfs: take the rtnl lock when storing xps_cpus
- net-sysfs: take the rtnl lock when accessing xps_cpus_map and num_tc
- net-sysfs: take the rtnl lock when storing xps_rxqs
- net-sysfs: take the rtnl lock when accessing xps_rxqs_map and num_tc
- [armhf] net: ethernet: ti: cpts: fix ethtool output when no ptp_clock
registered
- tun: fix return value when the number of iovs exceeds MAX_SKB_FRAGS
- e1000e: Only run S0ix flows if shutdown succeeded
- e1000e: bump up timeout to wait when ME un-configures ULP mode
- Revert "e1000e: disable s0ix entry and exit flows for ME systems"
- e1000e: Export S0ix flags to ethtool
- bnxt_en: Check TQM rings for maximum supported value.
- [arm64,armhf] net: mvpp2: fix pkt coalescing int-threshold configuration
- bnxt_en: Fix AER recovery.
- ipv4: Ignore ECN bits for fib lookups in fib_compute_spec_dst()
- net: sched: prevent invalid Scell_log shift count
- [arm64] net: hns: fix return value check in __lb_other_process()
- erspan: fix version 1 check in gre_parse_header()
- net: hdlc_ppp: Fix issues when mod_timer is called while timer is
running
- vhost_net: fix ubuf refcount incorrectly when sendmsg fails
- r8169: work around power-saving bug on some chip versions
- CDC-NCM: remove "connected" log message
- net: usb: qmi_wwan: add Quectel EM160R-GL
- block: add debugfs stanza for QUEUE_FLAG_NOWAIT
- workqueue: Kick a worker based on the actual activation of delayed works
- scsi: ufs: Fix wrong print message in dev_err()
- scsi: ufs-pci: Fix restore from S4 for Intel controllers
- scsi: ufs-pci: Ensure UFS device is in PowerDown mode for
suspend-to-disk ->poweroff()
- scsi: ufs-pci: Fix recovery from hibernate exit errors for Intel
controllers
- scsi: ufs-pci: Enable UFSHCD_CAP_RPM_AUTOSUSPEND for Intel controllers
- scsi: block: Introduce BLK_MQ_REQ_PM
- scsi: ide: Do not set the RQF_PREEMPT flag for sense requests
- scsi: scsi_transport_spi: Set RQF_PM for domain validation commands
- scsi: core: Only process PM requests if rpm_status != RPM_ACTIVE
- lib/genalloc: fix the overflow when size is too big
- scsi: ufs: Clear UAC for FFU and RPMB LUNs
- Bluetooth: revert: hci_h5: close serdev device and free hu in h5_close
- scsi: block: Remove RQF_PREEMPT and BLK_MQ_REQ_PREEMPT
- scsi: block: Do not accept any requests while suspended
- crypto: ecdh - avoid buffer overflow in ecdh_set_secret()
- [powerpc*] Handle .text.{hot,unlikely}.* in linker script
- [x86] Staging: comedi: Return -EFAULT if copy_to_user() fails
- usb: gadget: enable super speed plus
- USB: cdc-acm: blacklist another IR Droid device
- USB: cdc-wdm: Fix use after free in service_outstanding_interrupt().
- [arm64,armhf] usb: dwc3: meson-g12a: disable clk on error handling path
in probe
- [arm64,armhf] usb: dwc3: gadget: Restart DWC3 gadget when enabling
pullup
- [arm64,armhf] usb: dwc3: gadget: Clear wait flag on dequeue
- [arm64] usb: dwc3: ulpi: Use VStsDone to detect PHY regs access
completion
- [arm64] usb: dwc3: ulpi: Replace CPU-based busyloop with Protocol-based
one
- [arm64] usb: dwc3: ulpi: Fix USB2.0 HS/FS/LS PHY suspend regression
- [arm64,armhf] usb: chipidea: ci_hdrc_imx: add missing put_device() call
in usbmisc_get_init_data()
- USB: xhci: fix U1/U2 handling for hardware with XHCI_INTEL_HOST quirk
set
- usb: usbip: vhci_hcd: protect shift size
- usb: uas: Add PNY USB Portable SSD to unusual_uas
- USB: serial: iuu_phoenix: fix DMA from stack
- USB: serial: option: add LongSung M5710 module support
- USB: serial: option: add Quectel EM160R-GL
- USB: yurex: fix control-URB timeout handling
- USB: usblp: fix DMA to stack
- ALSA: usb-audio: Fix UBSAN warnings for MIDI jacks
- USB: Gadget: dummy-hcd: Fix shift-out-of-bounds bug
- usb: gadget: f_uac2: reset wMaxPacketSize
- usb: gadget: function: printer: Fix a memory leak for interface
descriptor
- usb: gadget: u_ether: Fix MTU size mismatch with RX packet size
- usb: gadget: Fix spinlock lockup on usb_function_deactivate
- usb: gadget: configfs: Preserve function ordering after bind failure
- usb: gadget: configfs: Fix use-after-free issue with udc_name
- USB: serial: keyspan_pda: remove unused variable
- mm: make wait_on_page_writeback() wait for multiple pending writebacks
- [x86] mm: Fix leak of pmd ptlock
- [x86] KVM: mmu: Use -1 to flag an undefined spte in get_mmio_spte()
- [x86] KVM: mmu: Get root level from walkers when retrieving MMIO SPTE
- kvm: check tlbs_dirty directly
- [x86] KVM: mmu: Ensure TDP MMU roots are freed after yield
- [x86] resctrl: Use an IPI instead of task_work_add() to update PQR_ASSOC
MSR
- [x86] resctrl: Don't move a task to the same resource group
- blk-iocost: fix NULL iocg deref from racing against initialization
- ALSA: hda/via: Fix runtime PM for Clevo W35xSS
- ALSA: hda/conexant: add a new hda codec CX11970
- ALSA: hda/realtek - Fix speaker volume control on Lenovo C940
- ALSA: hda/realtek: Add mute LED quirk for more HP laptops
- ALSA: hda/realtek: Enable mute and micmute LED on HP EliteBook 850 G7
- ALSA: hda/realtek: Add two "Intel Reference board" SSID in the ALC256.
- [amd64] iommu/vt-d: Move intel_iommu info from struct intel_svm to
struct intel_svm_dev
- btrfs: qgroup: don't try to wait flushing if we're already holding a
transaction
- btrfs: send: fix wrong file path when there is an inode with a pending
rmdir
- Revert "device property: Keep secondary firmware node secondary by type"
- dmabuf: fix use-after-free of dmabuf's file->f_inode
- [x86] drm/i915: clear the shadow batch
- [x86] drm/i915: clear the gpu reloc batch
- bcache: check unsupported feature sets for bcache register
- bcache: introduce BCH_FEATURE_INCOMPAT_LOG_LARGE_BUCKET_SIZE for large
bucket
- net/mlx5e: Fix SWP offsets when vlan inserted by driver
- netfilter: x_tables: Update remaining dereference to RCU
- netfilter: ipset: fix shift-out-of-bounds in htable_bits()
- netfilter: xt_RATEEST: reject non-null terminated string from userspace
- netfilter: nft_dynset: report EOPNOTSUPP on missing set feature
- [x86] mtrr: Correct the range check before performing MTRR type lookups
- xsk: Fix memory leak for failed bind
- rtlwifi: rise completion at the last step of firmware callback
- scsi: target: Fix XCOPY NAA identifier lookup (CVE-2020-28374)
https://www.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.8
- [powerpc] 32s: Fix RTAS machine check with VMAP stack
- io_uring: synchronise IOPOLL on task_submit fail
- io_uring: limit {io|sq}poll submit locking scope
- io_uring: patch up IOPOLL overflow_flush sync
- [arm64] RDMA/hns: Avoid filling sl in high 3 bits of vlan_id
- [arm64,armhf] iommu/arm-smmu-qcom: Initialize SCTLR of the bypass
context
- [arm64,armhf] drm/panfrost: Don't corrupt the queue mutex on open/close
- io_uring: Fix return value from alloc_fixed_file_ref_node
- scsi: ufs: Fix -Wsometimes-uninitialized warning
- btrfs: skip unnecessary searches for xattrs when logging an inode
- btrfs: fix deadlock when cloning inline extent and low on free metadata
space
- btrfs: shrink delalloc pages instead of full inodes
- [arm64] net: hns3: fix incorrect handling of sctp6 rss tuple
- [arm64] net: hns3: fix the number of queues actually used by ARQ
- [arm64] net: hns3: fix a phy loopback fail issue
- [arm64,armhf] net: stmmac: dwmac-sun8i: Fix probe error handling
- [arm64,armhf] net: stmmac: dwmac-sun8i: Balance internal PHY resource
references
- [arm64,armhf] net: stmmac: dwmac-sun8i: Balance internal PHY power
- [arm64,armhf] net: stmmac: dwmac-sun8i: Balance syscon
(de)initialization
- net: vlan: avoid leaks on register_vlan_dev() failures
- net: ipv6: fib: flush exceptions when purging route
- net: fix pmtu check in nopmtudisc mode
- net: ip: always refragment ip defragmented packets
- nexthop: Fix off-by-one error in error path
- nexthop: Unlink nexthop group entry in error path
- nexthop: Bounce NHA_GATEWAY in FDB nexthop groups
- [s390x] qeth: fix deadlock during recovery
- [s390x] qeth: fix locking for discipline setup / removal
- [s390x] qeth: fix L2 header access in qeth_l3_osa_features_check()
- net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address
- net/mlx5e: ethtool, Fix restriction of autoneg with 56G
- net/mlx5e: In skb build skip setting mark in switchdev mode
- net/mlx5: Check if lag is supported before creating one
- scsi: lpfc: Fix variable 'vport' set but not used in
lpfc_sli4_abts_err_handler()
- HID: wacom: Fix memory leakage caused by kfifo_alloc
- fanotify: Fix sys_fanotify_mark() on native x86-32
- [armhf] OMAP2+: omap_device: fix idling of devices during probe
- [x86] cpufreq: powernow-k8: pass policy rather than use
cpufreq_cpu_get()
- [armhf] spi: stm32: FIFO threshold level - fix align packet size
- i2c: i801: Fix the i2c-mux gpiod_lookup_table not being properly
terminated
- bcache: set bcache device into read-only mode for
BCH_FEATURE_INCOMPAT_OBSO_LARGE_BUCKET
- [amd64] iommu/vt-d: Fix misuse of ALIGN in qi_flush_piotlb()
- [amd64] iommu/intel: Fix memleak in intel_irq_remapping_alloc
- nvme-tcp: Fix possible race of io_work and direct send
- net/mlx5e: Fix memleak in mlx5e_create_l2_table_groups
- net/mlx5e: Fix two double free cases
- regmap: debugfs: Fix a memory leak when calling regmap_attach_dev
- [arm64,armhf] net: mvpp2: disable force link UP during port init
procedure
- [x86] drm/i915/dp: Track pm_qos per connector
- [arm64,armhf] net: mvneta: fix error message when MTU too large for XDP
- [arm64] KVM: Don't access PMCR_EL0 when no PMU is available
- xsk: Fix race in SKB mode transmit with shared cq
- xsk: Rollback reservation at NETDEV_TX_BUSY
- can: isotp: isotp_getname(): fix kernel information leak
- block: fix use-after-free in disk_part_iter_next
- net: drop bogus skb with CHECKSUM_PARTIAL and offset beyond end of
trimmed packet
- regmap: debugfs: Fix a reversed if statement in regmap_debugfs_init()
- [arm64,armhf] drm/panfrost: Remove unused variables in
panfrost_job_close()
- tools headers UAPI: Sync linux/fscrypt.h with the kernel sources
https://www.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.9
- btrfs: reloc: fix wrong file extent type check to avoid false ENOENT
- btrfs: prevent NULL pointer dereference in extent_io_tree_panic
- ALSA: hda/realtek: fix right sounds and mute/micmute LEDs for HP
machines
- ALSA: doc: Fix reference to mixart.rst
- [amd64] ASoC: AMD Renoir - add DMI entry for Lenovo ThinkPad X395
- ASoC: dapm: remove widget from dirty list on free
- [x86] hyperv: check cpu mask after interrupt has been disabled
- drm/amdgpu: add green_sardine device id (v2)
- drm/amdgpu: fix DRM_INFO flood if display core is not supported (bug
210921)
- drm/amdgpu: add new device id for Renior
- [x86] drm/i915: Allow the sysadmin to override security mitigations
- [x86] drm/i915/gt: Limit VFE threads based on GT
- [x86] drm/i915/backlight: fix CPU mode backlight takeover on LPT
- [armhf] drm/bridge: sii902x: Refactor init code into separate function
- dt-bindings: display: sii902x: Add supply bindings
- [armhf] drm/bridge: sii902x: Enable I/O and core VCC supplies if present
- tracing/kprobes: Do the notrace functions check without kprobes on
ftrace
- tools/bootconfig: Add tracing_on support to helper scripts
- ext4: use IS_ERR instead of IS_ERR_OR_NULL and set inode null when
IS_ERR
- ext4: fix wrong list_splice in ext4_fc_cleanup
- ext4: fix bug for rename with RENAME_WHITEOUT
- cifs: check pointer before freeing
- cifs: fix interrupted close commands
- [riscv64] Drop a duplicated PAGE_KERNEL_EXEC
- [riscv64] return -ENOSYS for syscall -1
- [riscv64] Fixup CONFIG_GENERIC_TIME_VSYSCALL
- [mips*] fix Section mismatch in reference
- [mips*] lib: uncached: fix non-standard usage of variable 'sp'
- [mips*] boot: Fix unaligned access with CONFIG_MIPS_RAW_APPENDED_DTB
- [mips*] Fix malformed NT_FILE and NT_SIGINFO in 32bit coredumps
- [mips*] relocatable: fix possible boot hangup with KASLR enabled
- RDMA/ocrdma: Fix use after free in ocrdma_dealloc_ucontext_pd()
- ACPI: scan: Harden acpi_device_add() against device ID overflows
- xen/privcmd: allow fetching resource sizes
- mm/vmalloc.c: fix potential memory leak
- mm/hugetlb: fix potential missing huge page size info
- mm/process_vm_access.c: include compat.h
- dm raid: fix discard limits for raid1
- dm snapshot: flush merged data before committing metadata
- dm integrity: fix flush with external metadata device
- dm integrity: fix the maximum number of arguments
- dm crypt: use GFP_ATOMIC when allocating crypto requests from softirq
- dm crypt: do not wait for backlogged crypto request completion in
softirq
- dm crypt: do not call bio_endio() from the dm-crypt tasklet
- dm crypt: defer decryption to a tasklet if interrupts disabled
- r8152: Add Lenovo Powered USB-C Travel Hub
- btrfs: tree-checker: check if chunk item end overflows
- ext4: don't leak old mountpoint samples
- io_uring: don't take files/mm for a dead task
- io_uring: drop mm and files after task_work_run
- ath11k: fix crash caused by NULL rx_channel
- netfilter: ipset: fixes possible oops in mtype_resize
- ath11k: qmi: try to allocate a big block of DMA memory first
- btrfs: fix async discard stall
- btrfs: merge critical sections of discard lock in workfn
- btrfs: fix transaction leak and crash after RO remount caused by qgroup
rescan
- ethernet: ucc_geth: fix definition and size of ucc_geth_tx_global_pram
- [arm64,armhf] hwmon: (pwm-fan) Ensure that calculation doesn't discard
big period values
- spi: fix the divide by 0 error when calculating xfer waiting time
- io_uring: drop file refs after task cancel
- bfq: Fix computation of shallow depth
- misdn: dsp: select CONFIG_BITREVERSE
- net: ethernet: fs_enet: Add missing MODULE_LICENSE
- nvme-pci: mark Samsung PM1725a as IGNORE_DEV_SUBNQN
- nvme: avoid possible double fetch in handling CQE
- nvmet-rdma: Fix list_del corruption on queue establishment failure
- drm/amdgpu: fix a GPU hang issue when remove device
- drm/amdgpu: fix potential memory leak during navi12 deinitialization
- [amd64] iommu/vt-d: Fix lockdep splat in sva bind()/unbind()
- ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI
- [arm64] drm/msm: Call msm_init_vram before binding the gpu
- poll: fix performance regression due to out-of-line __put_user()
- rcu-tasks: Move RCU-tasks initialization to before early_initcall()
- bpf: Simplify task_file_seq_get_next()
- bpf: Save correct stopping point in file seq iteration
- nvme-fc: avoid calling _nvme_fc_abort_outstanding_ios from interrupt
context
- [amd64] iommu/vt-d: Update domain geometry in iommu_ops.at(de)tach_dev
- net/mlx5: Fix passing zero to 'PTR_ERR'
- net/mlx5: E-Switch, fix changing vf VLANID
- blk-mq-debugfs: Add decode for BLK_MQ_F_TAG_HCTX_SHARED
- mm: fix clear_refs_write locking
- mm: don't play games with pinned pages in clear_page_refs
- mm: don't put pinned pages into the swap cache
- perf intel-pt: Fix 'CPU too large' error
- dump_common_audit_data(): fix racy accesses to ->d_name
- [x86] ASoC: Intel: fix error code cnl_set_dsp_D0()
- nvmet-rdma: Fix NULL deref when setting pi_enable and traddr INADDR_ANY
- nvme: don't intialize hwmon for discovery controllers
- nvme-tcp: fix possible data corruption with bio merges
- nvme-tcp: Fix warning with CONFIG_DEBUG_PREEMPT
- NFS4: Fix use-after-free in trace_event_raw_event_nfs4_set_lock
- pNFS: We want return-on-close to complete when evicting the inode
- pNFS: Mark layout for return if return-on-close was not sent
- pNFS: Stricter ordering of layoutget and layoutreturn
- NFS: Adjust fs_context error logging
- NFS/pNFS: Don't call pnfs_free_bucket_lseg() before removing the request
- NFS/pNFS: Don't leak DS commits in pnfs_generic_retry_commit()
- NFS/pNFS: Fix a leak of the layout 'plh_outstanding' counter
- NFS: nfs_delegation_find_inode_server must first reference the
superblock
- NFS: nfs_igrab_and_active must first reference the superblock
- scsi: ufs: Fix possible power drain during system suspend
- ext4: fix superblock checksum failure when setting password salt
- RDMA/restrack: Don't treat as an error allocation ID wrapping
- [amd64] RDMA/usnic: Fix memleak in find_free_vf_and_create_qp_grp
- bnxt_en: Improve stats context resource accounting with RDMA driver
loaded.
- RDMA/mlx5: Fix wrong free of blue flame register on error
- IB/mlx5: Fix error unwinding when set_has_smi_cap fails
- umount(2): move the flag validity checks first
- [x86] drm/i915/dsi: Use unconditional msleep for the panel_on_delay when
there is no reset-deassert MIPI-sequence
- [x86] drm/i915/icl: Fix initing the DSI DSC power refcount during HW
readout
- [x86] drm/i915/gt: Restore clear-residual mitigations for Ivybridge,
Baytrail
- mm, slub: consider rest of partial list if acquire_slab() fails
- [riscv64] Trace irq on only interrupt is enabled
- [amd64] iommu/vt-d: Fix unaligned addresses for
intel_flush_svm_range_dev()
- net: sunrpc: interpret the return value of kstrtou32 correctly
- dm: eliminate potential source of excessive kernel log noise
- ALSA: fireface: Fix integer overflow in transmit_midi_msg()
- ALSA: firewire-tascam: Fix integer overflow in midi_port_work()
- netfilter: conntrack: fix reading nf_conntrack_buckets
- netfilter: nf_nat: Fix memleak in nf_nat_init
[ Aurelien Jarno ]
* Ignore ABI change for dfltcc_* symbols.
* [riscv64] PCI: Enable PCI_HOST_GENERIC.
[ Salvatore Bonaccorso ]
* Bump ABI to 2
* [rt] Update to 5.10.8-rt24
[ Bastian Blank ]
* [arm64] Enable support for Marvell EBU SoC.
* Enable remaining NET_ACT_*.
* Enable ACPI_HMAT, EFI_SOFT_RESERVE.
* Enable remaining THERMAL_GOV_*, ENERGY_MODEL.
* Set SCTP_DEFAULT_COOKIE_HMAC_SHA1.
* [x86] Enable SERIAL_8250_LPSS. (closes: #973985)
* Enable CRYPTO_DEV_VIRTIO.
* Enable DRM_AMD_DC_*.
* [arm] Enable CRYPTO_NHPOLY1305_NEON. (closes: #980214)
* [arm64] Enable MFD_AXP20X_I2C. (closes: #980114)
* [amd64] Enable SENSORS_AMD_ENERGY. (closes: #970699)
* [cloud] Enable SUSPEND. (closes: #964845)
* [armhf] Enable GPIO_PCA953X_IRQ. (closes: #972221)
* [arm] Enable DRM_VC4, DRM_VC4_HDMI_CEC. (closes: #956951)
* [x86] Enable STMMAC_ETH, DWMAC_INTEL. (closes: #980180)
[dgit import unpatched linux 5.10.9-1]
Salvatore Bonaccorso [Wed, 20 Jan 2021 16:40:43 +0000 (16:40 +0000)]
Import linux_5.10.9.orig.tar.xz
[dgit import orig linux_5.10.9.orig.tar.xz]
Salvatore Bonaccorso [Wed, 20 Jan 2021 16:40:43 +0000 (16:40 +0000)]
Import linux_5.10.9-1.debian.tar.xz
[dgit import tarball linux 5.10.9-1 linux_5.10.9-1.debian.tar.xz]