diff options
6 files changed, 133 insertions, 220 deletions
diff --git a/debian/changelog b/debian/changelog index 41904c356699..88dc95ed222d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -linux (5.4.10-1) UNRELEASED; urgency=medium +linux (5.4.11-1) UNRELEASED; urgency=medium * New upstream stable update: https://www.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.4.9 @@ -163,12 +163,144 @@ linux (5.4.10-1) UNRELEASED; urgency=medium https://www.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.4.10 - [powerpc*] pmem: Fix kernel crash due to wrong range value usage in flush_dcache_range + https://www.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.4.11 + - bpf: Fix passing modified ctx to ld/abs/ind instruction + - [x86] ASoC: rt5682: fix i2c arbitration lost issue + - spi: pxa2xx: Add support for Intel Jasper Lake + - regulator: fix use after free issue + - ASoC: max98090: fix possible race conditions + - gpio: Handle counting of Freescale chipselects + - netfilter: ctnetlink: netns exit must wait for callbacks + - [x86] intel: Disable HPET on Intel Ice Lake platforms + - netfilter: nf_tables_offload: Check for the NETDEV_UNREGISTER event + - mwifiex: Fix heap overflow in mmwifiex_process_tdls_action_frame() + - regulator: core: fix regulator_register() error paths to properly + release rdev + - [x86] efi: Update e820 with reserved EFI boot services data to fix kexec + breakage + - [x86] ASoC: Intel: bytcr_rt5640: Update quirk for Teclast X89 + - efi/gop: Return EFI_NOT_FOUND if there are no usable GOPs + - efi/gop: Return EFI_SUCCESS if a usable GOP was found + - efi/gop: Fix memory leak in __gop_query32/64() + - [x86,arm64] efi/earlycon: Remap entire framebuffer after page + initialization + - netfilter: uapi: Avoid undefined left-shift in xt_sctp.h + - netfilter: nft_set_rbtree: bogus lookup/get on consecutive elements in + named sets + - netfilter: nf_tables: validate NFT_SET_ELEM_INTERVAL_END + - netfilter: nf_tables: validate NFT_DATA_VALUE after nft_data_init() + - netfilter: nf_tables: skip module reference count bump on object updates + - netfilter: nf_tables_offload: return EOPNOTSUPP if rule specifies no + actions + - [arm64] spi: spi-cavium-thunderx: Add missing pci_release_regions() + - [arm*] reset: Do not register resource data for missing resets + - [x86] ASoC: topology: Check return value for snd_soc_add_dai_link() + - [x86] ASoC: topology: Check return value for soc_tplg_pcm_create() + - [x86] ASoC: SOF: loader: snd_sof_fw_parse_ext_data log warning on + unknown header + - [x86] ASoC: SOF: Intel: split cht and byt debug window sizes + - [armhf] dts: am335x-sancloud-bbe: fix phy mode + - [riscv64] bpf, riscv: Limit to 33 tail calls + - [mips64el,mipsel] bpf, mips: Limit to 33 tail calls + - perf header: Fix false warning when there are no duplicate cache entries + - [armhf] spi: spi-ti-qspi: Fix a bug when accessing non default CS + - [armhf] bus: ti-sysc: Fix missing reset delay handling + - clk: walk orphan list on clock provider registration + - mac80211: fix TID field in monitor mode transmit + - cfg80211: fix double-free after changing network namespace + - pinctrl: pinmux: fix a possible null pointer in + pinmux_can_be_used_for_gpio + - [powerpc*] Ensure that swiotlb buffer is allocated from low memory + - btrfs: Fix error messages in qgroup_rescan_init + - Btrfs: fix cloning range with a hole when using the NO_HOLES feature + - [powerpc*] vcpu: Assume dedicated processors as non-preempt + - [powerpc*] spinlocks: Include correct header for static key + - btrfs: handle error in btrfs_cache_block_group + - Btrfs: fix hole extent items with a zero size after range cloning + - [powerpc*] ocxl: Fix potential memory leak on context creation + - bpf: Clear skb->tstamp in bpf_redirect when necessary + - bnx2x: Do not handle requests from VFs after parity + - bnx2x: Fix logic to get total no. of PFs per engine + - cxgb4: Fix kernel panic while accessing sge_info + - net: usb: lan78xx: Fix error message format specifier + - [hppa/parisc] add missing __init annotation + - rfkill: Fix incorrect check to avoid NULL pointer dereference + - staging: axis-fifo: add unspecified HAS_IOMEM dependency + - [arm*] iommu/iova: Init the struct iova to fix the possible memleak + - [x86] perf/x86: Fix potential out-of-bounds access + - [x86] perf/x86/intel: Fix PT PMI handling + - sched/psi: Fix sampling error and rare div0 crashes with cgroups and + high uptime + - psi: Fix a division error in psi poll() + - [x86] usb: typec: fusb302: Fix an undefined reference to + 'extcon_get_state' + - block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT + - fs: avoid softlockups in s_inodes iterators + - fs: call fsnotify_sb_delete after evict_inodes + - [arm64] iommu/dma: Relax locking in iommu_dma_prepare_msi() + - io_uring: don't wait when under-submitting + - clk: Move clk_core_reparent_orphans() under CONFIG_OF + - [arm64,armhf] net: stmmac: Determine earlier the size of RX buffer + - [arm64,armhf] net: stmmac: Do not accept invalid MTU values + - [arm64,armhf] net: stmmac: xgmac: Clear previous RX buffer size + - [arm64,armhf] net: stmmac: RX buffer size must be 16 byte aligned + - [arm64,armhf] net: stmmac: Always arm TX Timer at end of transmission + start + - xsk: Add rcu_read_lock around the XSK wakeup + - net/mlx5e: Fix concurrency issues between config flow and XSK + - net/i40e: Fix concurrency issues between config flow and XSK + - net/ixgbe: Fix concurrency issues between config flow and XSK + - [arm64] cpu_errata: Add Hisilicon TSV110 to spectre-v2 safe list + - block: Fix a lockdep complaint triggered by request queue flushing + - [s390x] dasd/cio: Interpret ccw_device_get_mdc return value correctly + - [s390x] dasd: fix memleak in path handling error case + - block: fix memleak when __blk_rq_map_user_iov() is failed + - sbitmap: only queue kyber's wait callback if not already active + - [s390x] qeth: handle error due to unsupported transport mode + - [s390x] qeth: fix promiscuous mode after reset + - [s390x] qeth: don't return -ENOTSUPP to userspace + - llc2: Fix return statement of llc_stat_ev_rx_null_dsap_xid_c (and + _test_c) + - [x86] hv_netvsc: Fix unwanted rx_table reset + - gtp: fix bad unlock balance in gtp_encap_enable_socket + - macvlan: do not assume mac_header is set in macvlan_broadcast() + - [arm64,armhf] net: dsa: mv88e6xxx: Preserve priority when setting CPU + port. + - [armhf] net: freescale: fec: Fix ethtool -d runtime PM + - [arm64,armhf] net: stmmac: dwmac-sun8i: Allow all RGMII modes + - [arm64,armhf] net: stmmac: dwmac-sunxi: Allow all RGMII modes + - [arm64,armhf] net: stmmac: Fixed link does not need MDIO Bus + - net: usb: lan78xx: fix possible skb leak + - pkt_sched: fq: do not accept silly TCA_FQ_QUANTUM + - sch_cake: avoid possible divide by zero in cake_enqueue() + - sctp: free cmd->obj.chunk for the unprocessed SCTP_CMD_REPLY + - tcp: fix "old stuff" D-SACK causing SACK to be treated as D-SACK + - vxlan: fix tos value before xmit + - net: sch_prio: When ungrafting, replace with FIFO + - vlan: fix memory leak in vlan_dev_set_egress_priority + - vlan: vlan_changelink() should propagate errors + - [arm64,riscv64] macb: Don't unregister clks unconditionally + - net/mlx5: Move devlink registration before interfaces load + - [arm64,armhf] net: dsa: mv88e6xxx: force cmode write on 6141/6341 + - net/mlx5e: Always print health reporter message to dmesg + - net/mlx5: DR, No need for atomic refcount for internal SW steering + resources + - net/mlx5e: Fix hairpin RSS table size + - net/mlx5: DR, Init lists that are used in rule's member + - [arm64,armhf] usb: dwc3: gadget: Fix request complete check + - USB: core: fix check for duplicate endpoints + - USB: serial: option: add Telit ME910G1 0x110a composition + - usb: missing parentheses in USE_NEW_SCHEME [ Salvatore Bonaccorso ] * signing_templates/rules.real: Include modules.builtin.modinfo file in image (Closes: #948427) * [rt] Drop "lib/ubsan: Don't seralize UBSAN report" * nvme: Ignore ABI changes + * Drop "ARM: dts: bcm283x: Fix critical trip point" + * Drop "tracing: Do not create directories if lockdown is in affect" + * Drop "libtraceevent: Fix lib installation with O=" + * Drop "libtraceevent: Copy pkg-config file to output folder when using O=" [ Ben Hutchings ] * f2fs: Fix crypto softdep: it uses crc32, not crc32c diff --git a/debian/patches/bugfix/all/0002-libtraceevent-Fix-lib-installation-with-O.patch b/debian/patches/bugfix/all/0002-libtraceevent-Fix-lib-installation-with-O.patch deleted file mode 100644 index 28eede20e8f3..000000000000 --- a/debian/patches/bugfix/all/0002-libtraceevent-Fix-lib-installation-with-O.patch +++ /dev/null @@ -1,51 +0,0 @@ -From: Sudip Mukherjee <sudipm.mukherjee@gmail.com> -Date: Fri, 15 Nov 2019 11:36:09 +0000 -Subject: [PATCH 2/5] libtraceevent: Fix lib installation with O= -Origin: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=587db8ebdac2c5eb3a8851e16b26f2e2711ab797 - -When we use 'O=' with make to build libtraceevent in a separate folder -it fails to install libtraceevent.a and libtraceevent.so.1.1.0 with the -error: - - INSTALL /home/sudip/linux/obj-trace/libtraceevent.a - INSTALL /home/sudip/linux/obj-trace/libtraceevent.so.1.1.0 - - cp: cannot stat 'libtraceevent.a': No such file or directory - Makefile:225: recipe for target 'install_lib' failed - make: *** [install_lib] Error 1 - -I used the command: - - make O=../../../obj-trace DESTDIR=~/test prefix==/usr install - -It turns out libtraceevent Makefile, even though it builds in a separate -folder, searches for libtraceevent.a and libtraceevent.so.1.1.0 in its -source folder. - -So, add the 'OUTPUT' prefix to the source path so that 'make' looks for -the files in the correct place. - -Signed-off-by: Sudipm Mukherjee <sudipm.mukherjee@gmail.com> -Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org> -Cc: linux-trace-devel@vger.kernel.org -Link: http://lore.kernel.org/lkml/20191115113610.21493-1-sudipm.mukherjee@gmail.com -Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> ---- - tools/lib/traceevent/Makefile | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile -index cbb429f55062..83446fe2cf01 100644 ---- a/tools/lib/traceevent/Makefile -+++ b/tools/lib/traceevent/Makefile -@@ -97,6 +97,7 @@ EVENT_PARSE_VERSION = $(EP_VERSION).$(EP_PATCHLEVEL).$(EP_EXTRAVERSION) - - LIB_TARGET = libtraceevent.a libtraceevent.so.$(EVENT_PARSE_VERSION) - LIB_INSTALL = libtraceevent.a libtraceevent.so* -+LIB_INSTALL := $(addprefix $(OUTPUT),$(LIB_INSTALL)) - - INCLUDES = -I. -I $(srctree)/tools/include $(CONFIG_INCLUDES) - --- -2.11.0 - diff --git a/debian/patches/bugfix/all/0003-libtraceevent-Copy-pkg-config-file-to-output-folder-.patch b/debian/patches/bugfix/all/0003-libtraceevent-Copy-pkg-config-file-to-output-folder-.patch deleted file mode 100644 index 98cef470dc2a..000000000000 --- a/debian/patches/bugfix/all/0003-libtraceevent-Copy-pkg-config-file-to-output-folder-.patch +++ /dev/null @@ -1,40 +0,0 @@ -From: Sudip Mukherjee <sudipm.mukherjee@gmail.com> -Date: Fri, 15 Nov 2019 11:36:10 +0000 -Subject: [PATCH 3/5] libtraceevent: Copy pkg-config file to output folder when using O= -Origin: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=15b3904f8e884e0d34d5f09906cf6526d0b889a2 - -When we use 'O=' with make to build libtraceevent in a separate folder -it still copies 'libtraceevent.pc' to its source folder. Modify the -Makefile so that it uses the output folder to copy the pkg-config file -and install from there. - -Signed-off-by: Sudipm Mukherjee <sudipm.mukherjee@gmail.com> -Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org> -Cc: linux-trace-devel@vger.kernel.org -Link: http://lore.kernel.org/lkml/20191115113610.21493-2-sudipm.mukherjee@gmail.com -Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> ---- - tools/lib/traceevent/Makefile | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile -index 83446fe2cf01..c5a03356a999 100644 ---- a/tools/lib/traceevent/Makefile -+++ b/tools/lib/traceevent/Makefile -@@ -208,10 +208,11 @@ define do_install - $(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2' - endef - --PKG_CONFIG_FILE = libtraceevent.pc -+PKG_CONFIG_SOURCE_FILE = libtraceevent.pc -+PKG_CONFIG_FILE := $(addprefix $(OUTPUT),$(PKG_CONFIG_SOURCE_FILE)) - define do_install_pkgconfig_file - if [ -n "${pkgconfig_dir}" ]; then \ -- cp -f ${PKG_CONFIG_FILE}.template ${PKG_CONFIG_FILE}; \ -+ cp -f ${PKG_CONFIG_SOURCE_FILE}.template ${PKG_CONFIG_FILE}; \ - sed -i "s|INSTALL_PREFIX|${1}|g" ${PKG_CONFIG_FILE}; \ - sed -i "s|LIB_VERSION|${EVENT_PARSE_VERSION}|g" ${PKG_CONFIG_FILE}; \ - sed -i "s|LIB_DIR|${libdir}|g" ${PKG_CONFIG_FILE}; \ --- -2.11.0 - diff --git a/debian/patches/bugfix/arm/ARM-dts-bcm283x-Fix-critical-trip-point.patch b/debian/patches/bugfix/arm/ARM-dts-bcm283x-Fix-critical-trip-point.patch deleted file mode 100644 index 2c5b0f6166a0..000000000000 --- a/debian/patches/bugfix/arm/ARM-dts-bcm283x-Fix-critical-trip-point.patch +++ /dev/null @@ -1,40 +0,0 @@ -From: Stefan Wahren <wahrenst@gmx.net> -Date: Sat, 30 Nov 2019 13:31:13 +0100 -Subject: ARM: dts: bcm283x: Fix critical trip point -Origin: https://git.kernel.org/linus/30e647a764d446723a7e0fb08d209e0104f16173 - -During definition of the CPU thermal zone of BCM283x SoC family there -was a misunderstanding of the meaning "criticial trip point" and the -thermal throttling range of the VideoCore firmware. The latter one takes -effect when the core temperature is at least 85 degree celsius or higher - -So the current critical trip point doesn't make sense, because the -thermal shutdown appears before the firmware has a chance to throttle -the ARM core(s). - -Fix these unwanted shutdowns by increasing the critical trip point -to a value which shouldn't be reached with working thermal throttling. - -Fixes: 0fe4d2181cc4 ("ARM: dts: bcm283x: Add CPU thermal zone with 1 trip point") -Signed-off-by: Stefan Wahren <wahrenst@gmx.net> -Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> ---- - arch/arm/boot/dts/bcm283x.dtsi | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi -index 3caaa57eb6c8..839491628e87 100644 ---- a/arch/arm/boot/dts/bcm283x.dtsi -+++ b/arch/arm/boot/dts/bcm283x.dtsi -@@ -37,7 +37,7 @@ cpu_thermal: cpu-thermal { - - trips { - cpu-crit { -- temperature = <80000>; -+ temperature = <90000>; - hysteresis = <0>; - type = "critical"; - }; --- -2.24.0 - diff --git a/debian/patches/features/all/lockdown/tracing-Do-not-create-directories-if-lockdown-is-in-.patch b/debian/patches/features/all/lockdown/tracing-Do-not-create-directories-if-lockdown-is-in-.patch deleted file mode 100644 index ea827bdde6cd..000000000000 --- a/debian/patches/features/all/lockdown/tracing-Do-not-create-directories-if-lockdown-is-in-.patch +++ /dev/null @@ -1,84 +0,0 @@ -From: "Steven Rostedt (VMware)" <rostedt@goodmis.org> -Date: Mon, 2 Dec 2019 16:25:27 -0500 -Subject: tracing: Do not create directories if lockdown is in affect -Origin: https://git.kernel.org/linus/a356646a56857c2e5ad875beec734d7145ecd49a - -If lockdown is disabling tracing on boot up, it prevents the tracing files -from even bering created. But when that happens, there's several places that -will give a warning that the files were not created as that is usually a -sign of a bug. - -Add in strategic locations where a check is made to see if tracing is -disabled by lockdown, and if it is, do not go further, and fail silently -(but print that tracing is disabled by lockdown, without doing a WARN_ON()). - -Cc: Matthew Garrett <mjg59@google.com> -Fixes: 17911ff38aa5 ("tracing: Add locked_down checks to the open calls of files created for tracefs") -Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> ---- - kernel/trace/ring_buffer.c | 6 ++++++ - kernel/trace/trace.c | 17 +++++++++++++++++ - 2 files changed, 23 insertions(+) - ---- a/kernel/trace/ring_buffer.c -+++ b/kernel/trace/ring_buffer.c -@@ -11,6 +11,7 @@ - #include <linux/trace_seq.h> - #include <linux/spinlock.h> - #include <linux/irq_work.h> -+#include <linux/security.h> - #include <linux/uaccess.h> - #include <linux/hardirq.h> - #include <linux/kthread.h> /* for self test */ -@@ -5068,6 +5069,11 @@ static __init int test_ringbuffer(void) - int cpu; - int ret = 0; - -+ if (security_locked_down(LOCKDOWN_TRACEFS)) { -+ pr_warning("Lockdown is enabled, skipping ring buffer tests\n"); -+ return 0; -+ } -+ - pr_info("Running ring buffer tests...\n"); - - buffer = ring_buffer_alloc(RB_TEST_BUFFER_SIZE, RB_FL_OVERWRITE); ---- a/kernel/trace/trace.c -+++ b/kernel/trace/trace.c -@@ -1804,6 +1804,12 @@ int __init register_tracer(struct tracer - return -1; - } - -+ if (security_locked_down(LOCKDOWN_TRACEFS)) { -+ pr_warning("Can not register tracer %s due to lockdown\n", -+ type->name); -+ return -EPERM; -+ } -+ - mutex_lock(&trace_types_lock); - - tracing_selftest_running = true; -@@ -8639,6 +8645,11 @@ struct dentry *tracing_init_dentry(void) - { - struct trace_array *tr = &global_trace; - -+ if (security_locked_down(LOCKDOWN_TRACEFS)) { -+ pr_warning("Tracing disabled due to lockdown\n"); -+ return ERR_PTR(-EPERM); -+ } -+ - /* The top level trace array uses NULL as parent */ - if (tr->dir) - return NULL; -@@ -9081,6 +9092,12 @@ __init static int tracer_alloc_buffers(v - int ring_buf_size; - int ret = -ENOMEM; - -+ -+ if (security_locked_down(LOCKDOWN_TRACEFS)) { -+ pr_warning("Tracing disabled due to lockdown\n"); -+ return -EPERM; -+ } -+ - /* - * Make sure we don't accidently add more trace options - * than we have bits for. diff --git a/debian/patches/series b/debian/patches/series index d699dd2c2772..7903a41b2f7b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -72,7 +72,6 @@ bugfix/powerpc/powerpc-boot-fix-missing-crc32poly.h-when-building-with-kernel_xz bugfix/arm64/arm64-acpi-Add-fixup-for-HPE-m400-quirks.patch bugfix/x86/x86-32-disable-3dnow-in-generic-config.patch bugfix/ppc64el/libbpf-fix-readelf-output-parsing-on-powerpc-with-re.patch -bugfix/arm/ARM-dts-bcm283x-Fix-critical-trip-point.patch # Arch features features/mips/MIPS-Loongson-3-Add-Loongson-LS3A-RS780E-1-way-machi.patch @@ -89,7 +88,6 @@ bugfix/all/partially-revert-net-socket-implement-64-bit-timestamps.patch # Miscellaneous features # Lockdown missing pieces -features/all/lockdown/tracing-Do-not-create-directories-if-lockdown-is-in-.patch features/all/lockdown/efi-add-an-efi_secure_boot-flag-to-indicate-secure-b.patch features/all/lockdown/efi-lock-down-the-kernel-if-booted-in-secure-boot-mo.patch features/all/lockdown/add-a-sysrq-option-to-lift-kernel-lockdown.patch @@ -130,8 +128,6 @@ bugfix/all/usbip-fix-misuse-of-strncpy.patch bugfix/all/usbip-network-fix-unaligned-member-access.patch bugfix/all/tools-perf-pmu-events-fix-reproducibility.patch bugfix/all/0001-libtraceevent-Fix-header-installation.patch -bugfix/all/0002-libtraceevent-Fix-lib-installation-with-O.patch -bugfix/all/0003-libtraceevent-Copy-pkg-config-file-to-output-folder-.patch bugfix/all/0004-libtraceevent-allow-custom-libdir-path.patch bugfix/all/0005-libtraceevent-Add-dependency-on-libdl.patch |