Skip to contentSkip to conversation

kernel: consolidated pull request

PATCH In review Bruce Ashfield 2 participants 11 messages Mar 19, 2021 – Mar 21, 2021

lore
Share & tools
lore
#0 lore raw

cover kernel: consolidated pull request

From: Bruce Ashfield <[email protected]>

Richard,

Here's my latest batch of bugfix and prep for release changes.

We have one configuration fix, as well as a fix to the tools that was hiding some warnings that we used to get.

** There's a chance that this kern-tools change will pop out some
warnings. I can fix the warnings easily, but if it does, I'd suggest just dropping it from the queue, since nothing depends on it.
**

We also have normal -stable bumps, that didn't cause any issues for me.

And finally, I'm preparing to bump the -dev kernel to v5.12 for the release, and found a couple of issues with lttng (as usual) and kernel-devsrc.

I split the lttng one into two patches, so you could decide on the backported patches separately from the devupstream bump.

The devsrc fix is safe for older kernels, and is a good thing to have in the release to provide some future proofing.

Cheers,

Bruce

The following changes since commit 3cda6c0bd175282903079dea4affb3fcd290f137:

sudo: upgrade 1.9.5p2 -> 1.9.6 (2021-03-16 17:52:21 +0000)

are available in the Git repository at:

git://git.yoctoproject.org/poky-contrib zedd/kernel
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel

Bruce Ashfield (8):
linux-yocto/5.10: fix SERIAL_OF_PLATFORM warning linux-yocto/5.4: update to v5.4.105
linux-yocto/5.10: update to v5.10.23
linux-yocto/5.10: cfg: features/numa: Remove NODES_SPAN_OTHER_NODES
option
kern-tools: add dropped options to audit output
lttng-modules: update devupstream to 2.12.5+
lttng-modules: backport patches to fix build against 5.12+ kernel
kernel-devsrc: fix on-target scripts/prepare for v5.12+

 .../kern-tools/kern-tools-native_git.bb       |   2 +-
 meta/recipes-kernel/linux/kernel-devsrc.bb    |   1 +
 .../linux/linux-yocto-rt_5.10.bb              |   6 +-
 .../linux/linux-yocto-rt_5.4.bb               |   6 +-
 .../linux/linux-yocto-tiny_5.10.bb            |   8 +-
 .../linux/linux-yocto-tiny_5.4.bb             |   8 +-
 meta/recipes-kernel/linux/linux-yocto_5.10.bb |  22 +--
 meta/recipes-kernel/linux/linux-yocto_5.4.bb  |  22 +--
 ...01-Fix-memory-leaks-on-event-destroy.patch |  58 +++++++
 ...preter-early-exits-on-uninitialized-.patch | 159 ++++++++++++++++++
 ...ecord-slab-name-for-kmem_cache_free-.patch |  91 ++++++++++
 ...be-null-ptr-deref-on-session-destroy.patch |  41 +++++
 .../lttng/lttng-modules_2.12.5.bb             |   9 +-
 13 files changed, 394 insertions(+), 39 deletions(-)
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0001-Fix-memory-leaks-on-event-destroy.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0002-Fix-filter-interpreter-early-exits-on-uninitialized-.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0003-fix-mm-tracing-record-slab-name-for-kmem_cache_free-.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0004-Fix-kretprobe-null-ptr-deref-on-session-destroy.patch
Signature · 1 line
2.19.1
#1 lore raw

PATCH 1/8 linux-yocto/5.10: fix SERIAL_OF_PLATFORM warning

From: Bruce Ashfield <[email protected]>

Integrating the following commit(s) to linux-yocto.:

a0249ac3bae cfg: classify CONFIG_SERIAL_OF_PLATFORM as non-hardware

By declaring the option non-hardware, we make it optional and hence fix the warning on non OF platforms.

---
 meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb   | 2 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto_5.10.bb      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb +1 -1
index 4a4aa2b9d4..7375537654 100644
@@ -12,7 +12,7 @@ python () {
 }
 
 SRCREV_machine ?= "36889a571fe57fe3561cc23f842b92e4ea9ca264"
-SRCREV_meta ?= "8c8f6a791bed6e8f675236946e805a7fc489e382"
+SRCREV_meta ?= "7d652f104151052fe4c0cf48d7bc0d7e0c0a7dad"
 
 SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.10;destsuffix=${KMETA}"
meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb +1 -1
index 8bb1037476..934c1c99b1 100644
@@ -17,7 +17,7 @@ KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine_qemuarm ?= "9d6d37cfe365ebd5b530f9c43c1ace924343bb15"
 SRCREV_machine ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
-SRCREV_meta ?= "8c8f6a791bed6e8f675236946e805a7fc489e382"
+SRCREV_meta ?= "7d652f104151052fe4c0cf48d7bc0d7e0c0a7dad"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
meta/recipes-kernel/linux/linux-yocto_5.10.bb +1 -1
index 03d7c6a3de..f867a125a4 100644
@@ -23,7 +23,7 @@ SRCREV_machine_qemux86 ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
 SRCREV_machine_qemux86-64 ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
 SRCREV_machine_qemumips64 ?= "f1c01716513524065f0f231c6e6502cd9a3ecb53"
 SRCREV_machine ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
-SRCREV_meta ?= "8c8f6a791bed6e8f675236946e805a7fc489e382"
+SRCREV_meta ?= "7d652f104151052fe4c0cf48d7bc0d7e0c0a7dad"
 
 # remap qemuarm to qemuarma15 for the 5.8 kernel
 # KMACHINE_qemuarm ?= "qemuarma15"
Signature · 1 line
2.19.1
#2 lore raw

PATCH 2/8 linux-yocto/5.4: update to v5.4.105

In reply to Bruce Ashfield

From: Bruce Ashfield <[email protected]>

Updating linux-yocto/5.4 to the latest korg -stable release that comprises the following commits:

ce615a08404c Linux 5.4.105
d17cf4cb1928 nvme-pci: add quirks for Lexar 256GB SSD
1d08ff846484 nvme-pci: mark Seagate Nytro XM1440 as QUIRK_NO_NS_DESC_LIST. 9106a7844efb HID: i2c-hid: Add I2C_HID_QUIRK_NO_IRQ_AFTER_RESET for ITE8568 EC on Voyo Winpad A15 b5e10e9b3047 mmc: sdhci-of-dwcmshc: set SDHCI_QUIRK2_PRESET_VALUE_BROKEN 21f3fb36b5a2 drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register 1d113893ff9d misc: eeprom_93xx46: Add quirk to support Microchip 93LC46B eeprom 9f1f09887551 PCI: Add function 1 DMA alias quirk for Marvell 9215 SATA controller f40fdcb7ca29 ASoC: Intel: bytcr_rt5640: Add quirk for ARCHOS Cesium 140 242be7cddd25 ACPI: video: Add DMI quirk for GIGABYTE GB-BXBT-2807
86c8848d680a media: cx23885: add more quirks for reset DMA on some AMD IOMMU fd476c6d4e1a HID: mf: add support for 0079:1846 Mayflash/Dragonrise USB Gamecube Adapter ef9fa6bb8582 platform/x86: acer-wmi: Add ACER_CAP_KBD_DOCK quirk for the Aspire Switch 10E SW3-016 3a8eb20cb87b platform/x86: acer-wmi: Add support for SW_TABLET_MODE on Switch devices e3a3a69da177 platform/x86: acer-wmi: Add ACER_CAP_SET_FUNCTION_MODE capability flag b734af305c78 platform/x86: acer-wmi: Add new force_caps module parameter 025180244251 platform/x86: acer-wmi: Cleanup accelerometer device handling 37b4324cb78e platform/x86: acer-wmi: Cleanup ACER_CAP_FOO defines
200e14759da5 mwifiex: pcie: skip cancel_work_sync() on reset failure path c699a89d385c iommu/amd: Fix sleeping in atomic in increase_address_space() fa56bf637eac ACPICA: Fix race in generic_serial_bus (I2C) and GPIO op_region parameter handling f27765adb3f6 dm table: fix zoned iterate_devices based device capability checks 06ef17b88676 dm table: fix DAX iterate_devices based device capability checks b8aedc65db40 dm table: fix iterate_devices based device capability checks c1f5fc082beb net: dsa: add GRO support via gro_cells
84d5d3c9d3fb Linux 5.4.104
d859388ea25a r8169: fix resuming from suspend on RTL8105e if machine runs on battery 1fba84f3c491 rsxx: Return -EFAULT if copy_to_user() fails
77a81b10f894 ftrace: Have recordmcount use w8 to read relp->r_info in arm64_is_fake_mcount 9a20e5782d2d ALSA: hda: intel-nhlt: verify config type
86b3b62b81c5 IB/mlx5: Add missing error code
809ef2660c1b RDMA/rxe: Fix missing kconfig dependency on CRYPTO
26a1af33c9cd ALSA: ctxfi: cthw20k2: fix mask on conf to allow 4 bits
6827415290ab usbip: tools: fix build error for multiple definition
078170924d84 crypto - shash: reduce minimum alignment of shash_desc structure 1f8884d04480 arm64: ptrace: Fix seccomp of traced syscall -1 (NO_SYSCALL) 9e15b43fdaf3 drm/amdgpu: fix parameter error of RREG32_PCIE() in amdgpu_regs_pcie b367201430dd dm verity: fix FEC for RS roots unaligned to block size
1a4182923144 dm bufio: subtract the number of initial sectors in dm_bufio_get_device_size 52a643680165 PM: runtime: Update device status before letting suppliers suspend e49baccfe299 btrfs: fix warning when creating a directory with smack enabled a87911c26a1c btrfs: unlock extents in btrfs_zero_range in case of quota reservation errors 91bc3296bffb btrfs: free correct amount of space in btrfs_delayed_inode_reserve_metadata 8674c1a72a69 btrfs: validate qgroup inherit for SNAP_CREATE_V2 ioctl
0c740d2b8c61 btrfs: fix raid6 qstripe kmap
909a8d2b1e7b btrfs: raid56: simplify tracking of Q stripe presence
15726df8c09a tpm, tpm_tis: Decorate tpm_get_timeouts() with request_locality() 6d71cbc91104 tpm, tpm_tis: Decorate tpm_tis_gen_interrupt() with request_locality()

---
 .../linux/linux-yocto-rt_5.4.bb               |  6 ++---
 .../linux/linux-yocto-tiny_5.4.bb             |  8 +++----
 meta/recipes-kernel/linux/linux-yocto_5.4.bb  | 22 +++++++++----------
 3 files changed, 18 insertions(+), 18 deletions(-)
meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb +3 -3
index 85c360267b..182743d2e0 100644
@@ -11,13 +11,13 @@ python () {
         raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it")
 }
 
-SRCREV_machine ?= "34ae8b39b6414e1f05fed93966c5ab1db20b6963"
-SRCREV_meta ?= "feeb59687bc0f054af837a5061f8d413ec7c93e9"
+SRCREV_machine ?= "08b34e26f97c0549961710c3b14258910979aff4"
+SRCREV_meta ?= "f67ab86441a7ebe38b5a25126d6eebc2ef6fee99"
 
 SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}"
 
-LINUX_VERSION ?= "5.4.103"
+LINUX_VERSION ?= "5.4.105"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
 
meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb +4 -4
index 9dcea7b0ab..2bdaac0f50 100644
@@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig"
 
 require recipes-kernel/linux/linux-yocto.inc
 
-LINUX_VERSION ?= "5.4.103"
+LINUX_VERSION ?= "5.4.105"
 LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
 
 DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
@@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native"
 KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
-SRCREV_machine_qemuarm ?= "ffe71606242ccf95707aae7599805419f14277ff"
-SRCREV_machine ?= "80ade4d43bbcb497d363d44508af69af74a84092"
-SRCREV_meta ?= "feeb59687bc0f054af837a5061f8d413ec7c93e9"
+SRCREV_machine_qemuarm ?= "889b072e7b492ce96a80384f9d3e5412ff8ff839"
+SRCREV_machine ?= "96c96e27c3e9f2cdfb957ade03f10070286fff72"
+SRCREV_meta ?= "f67ab86441a7ebe38b5a25126d6eebc2ef6fee99"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
meta/recipes-kernel/linux/linux-yocto_5.4.bb +11 -11
index 118847dbd9..973cffce51 100644
@@ -12,16 +12,16 @@ KBRANCH_qemux86  ?= "v5.4/standard/base"
 KBRANCH_qemux86-64 ?= "v5.4/standard/base"
 KBRANCH_qemumips64 ?= "v5.4/standard/mti-malta64"
 
-SRCREV_machine_qemuarm ?= "31486fc68d8688908700a68b6655fd50c733d882"
-SRCREV_machine_qemuarm64 ?= "80ade4d43bbcb497d363d44508af69af74a84092"
-SRCREV_machine_qemumips ?= "aec63899e25194c00dbc5f25db8fe6c4461eef21"
-SRCREV_machine_qemuppc ?= "80ade4d43bbcb497d363d44508af69af74a84092"
-SRCREV_machine_qemuriscv64 ?= "80ade4d43bbcb497d363d44508af69af74a84092"
-SRCREV_machine_qemux86 ?= "80ade4d43bbcb497d363d44508af69af74a84092"
-SRCREV_machine_qemux86-64 ?= "80ade4d43bbcb497d363d44508af69af74a84092"
-SRCREV_machine_qemumips64 ?= "c155e91597bd1a1aae557405b5061bb8c2695e5d"
-SRCREV_machine ?= "80ade4d43bbcb497d363d44508af69af74a84092"
-SRCREV_meta ?= "feeb59687bc0f054af837a5061f8d413ec7c93e9"
+SRCREV_machine_qemuarm ?= "65543d1e3cd5140ac0384179e46d881b728b4013"
+SRCREV_machine_qemuarm64 ?= "96c96e27c3e9f2cdfb957ade03f10070286fff72"
+SRCREV_machine_qemumips ?= "182eacc3bb0ee860380decb664e05e6ec94fe003"
+SRCREV_machine_qemuppc ?= "96c96e27c3e9f2cdfb957ade03f10070286fff72"
+SRCREV_machine_qemuriscv64 ?= "96c96e27c3e9f2cdfb957ade03f10070286fff72"
+SRCREV_machine_qemux86 ?= "96c96e27c3e9f2cdfb957ade03f10070286fff72"
+SRCREV_machine_qemux86-64 ?= "96c96e27c3e9f2cdfb957ade03f10070286fff72"
+SRCREV_machine_qemumips64 ?= "bc21e93c3154523e0f490fed699feb79ab60536b"
+SRCREV_machine ?= "96c96e27c3e9f2cdfb957ade03f10070286fff72"
+SRCREV_meta ?= "f67ab86441a7ebe38b5a25126d6eebc2ef6fee99"
 
 # remap qemuarm to qemuarma15 for the 5.4 kernel
 # KMACHINE_qemuarm ?= "qemuarma15"
@@ -30,7 +30,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA}"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
-LINUX_VERSION ?= "5.4.103"
+LINUX_VERSION ?= "5.4.105"
 
 DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
 DEPENDS += "openssl-native util-linux-native"
Signature · 1 line
2.19.1
#3 lore raw

PATCH 3/8 linux-yocto/5.10: update to v5.10.23

In reply to Bruce Ashfield

From: Bruce Ashfield <[email protected]>

Updating linux-yocto/5.10 to the latest korg -stable release that comprises the following commits:

dfbf345b63c3 Linux 5.10.23
c8714d1faae8 nvme-pci: add quirks for Lexar 256GB SSD
e88e01440a48 nvme-pci: mark Seagate Nytro XM1440 as QUIRK_NO_NS_DESC_LIST. 3b659091587a KVM: SVM: Clear the CR4 register on reset
1611c323df9f scsi: ufs: Fix a duplicate dev quirk number
2dba0f805416 ASoC: Intel: sof_sdw: add quirk for HP Spectre x360 convertible c08344abc971 ASoC: Intel: sof_sdw: reorganize quirks by generation
1d3efd15e8a4 PCI: cadence: Retrain Link to work around Gen2 training defect 015d38539db9 ALSA: usb-audio: add mixer quirks for Pioneer DJM-900NXS2 d78acca2afe5 ALSA: usb-audio: Add DJM750 to Pioneer mixer quirk
96c4c0a9405e HID: i2c-hid: Add I2C_HID_QUIRK_NO_IRQ_AFTER_RESET for ITE8568 EC on Voyo Winpad A15 5b6526283499 mmc: sdhci-of-dwcmshc: set SDHCI_QUIRK2_PRESET_VALUE_BROKEN e62bdb34858c drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register e74b237ef989 scsi: ufs: ufs-exynos: Use UFSHCD_QUIRK_ALIGN_SG_WITH_PAGE_SIZE 0905bfe69ac2 scsi: ufs: ufs-exynos: Apply vendor-specific values for three timeouts c32b34115357 scsi: ufs: Introduce a quirk to allow only page-aligned sg entries eece8fe5ebb0 misc: eeprom_93xx46: Add quirk to support Microchip 93LC46B eeprom 2fc01226c288 scsi: ufs: Add a quirk to permit overriding UniPro defaults dbaa2667515e scsi: ufs-mediatek: Enable UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL ff72a41132b3 ASoC: Intel: sof_sdw: add missing TGL_HDMI quirk for Dell SKU 0A32 c7ebe45e403d KVM: x86: Supplement __cr4_reserved_bits() with X86_FEATURE_PCID check 422da3196be9 PCI: Add function 1 DMA alias quirk for Marvell 9215 SATA controller 0ff1f97510fd usb: cdns3: fix NULL pointer dereference on no platform data 8694c4e2b19c usb: cdns3: add quirk for enable runtime pm by default
febf7d870371 usb: cdns3: host: add xhci_plat_priv quirk XHCI_SKIP_PHY_INIT 3db17e283a92 usb: cdns3: host: add .suspend_quirk for xhci-plat.c
1b2ac1d95fb1 ASoC: Intel: bytcr_rt5640: Add quirk for ARCHOS Cesium 140 d3116e06fb16 ACPI: video: Add DMI quirk for GIGABYTE GB-BXBT-2807
c5188a98d2fb media: cx23885: add more quirks for reset DMA on some AMD IOMMU 748446897d36 HID: mf: add support for 0079:1846 Mayflash/Dragonrise USB Gamecube Adapter 8fb656fefddd platform/x86: acer-wmi: Add ACER_CAP_KBD_DOCK quirk for the Aspire Switch 10E SW3-016 ba1a647e0f11 platform/x86: acer-wmi: Add support for SW_TABLET_MODE on Switch devices 2c9132e543b7 platform/x86: acer-wmi: Add ACER_CAP_SET_FUNCTION_MODE capability flag 039cd40179e9 platform/x86: acer-wmi: Add new force_caps module parameter 74848026bcb1 platform/x86: acer-wmi: Cleanup accelerometer device handling be52e3ea4520 platform/x86: acer-wmi: Cleanup ACER_CAP_FOO defines
b159a9a4d357 bus: ti-sysc: Implement GPMC debug quirk to drop platform data f7f227eb32d1 ASoC: Intel: sof_sdw: add quirk for new TigerLake-SDCA device 36b3ba412d7c mwifiex: pcie: skip cancel_work_sync() on reset failure path f5526b77335d Bluetooth: btqca: Add valid le states quirk
93d20ce4c47f iommu/amd: Fix sleeping in atomic in increase_address_space() bf6dd437c3ba btrfs: don't flush from btrfs_delayed_inode_reserve_metadata cf9317ceb5a1 btrfs: export and rename qgroup_reserve_meta
7215d7742daf arm64: Make CPU_BIG_ENDIAN depend on ld.bfd or ld.lld 13.0.0+ a6425142f522 parisc: Enable -mlong-calls gcc option with CONFIG_COMPILE_TEST ea222427ae9c nvme-pci: mark Kingston SKC2000 as not supporting the deepest power state 6d7fdad08fbd ASoC: SOF: Intel: broadwell: fix mutual exclusion with catpt driver 62ba6d817c91 ACPICA: Fix race in generic_serial_bus (I2C) and GPIO op_region parameter handling b672142f76cb Linux 5.10.22
b31a9f0c366d r8169: fix resuming from suspend on RTL8105e if machine runs on battery aa40f5e33ce3 tomoyo: recognize kernel threads correctly
4645271c32b4 of: unittest: Fix build on architectures without CONFIG_OF_ADDRESS b70e6aacbe32 Revert "arm64: dts: amlogic: add missing ethernet reset ID" a7cefacccafa iommu/vt-d: Fix status code for Allocate/Free PASID command 5cc0813e7bb9 rsxx: Return -EFAULT if copy_to_user() fails
e88c1b25f2bc ftrace: Have recordmcount use w8 to read relp->r_info in arm64_is_fake_mcount a14c6ea66211 ALSA: hda: intel-nhlt: verify config type
7ef9d23bc312 IB/mlx5: Add missing error code
f767104af496 RDMA/rxe: Fix missing kconfig dependency on CRYPTO
8850a814d42d RDMA/cm: Fix IRQ restore in ib_send_cm_sidr_rep
253b7a11ce26 ALSA: ctxfi: cthw20k2: fix mask on conf to allow 4 bits
4d7ed9a49b0c mm: Remove examples from enum zone_type comment
8eaef922e938 arm64: mm: Set ZONE_DMA size based on early IORT scan
35ec3d09ff6a arm64: mm: Set ZONE_DMA size based on devicetree's dma-ranges a9861e7fa4f8 of: unittest: Add test for of_dma_get_max_cpu_address()
18bf6e998d08 of/address: Introduce of_dma_get_max_cpu_address()
3fbe62ffbb54 arm64: mm: Move zone_dma_bits initialization into zone_sizes_init() 407b173adfac arm64: mm: Move reserve_crashkernel() into mem_init()
85433307d8a1 crypto - shash: reduce minimum alignment of shash_desc structure 3868a277e6fc drm/amdgpu: fix parameter error of RREG32_PCIE() in amdgpu_regs_pcie c2fee74ea801 drm/amdgpu:disable VCN for Navi12 SKU
ce1cca17381f dm verity: fix FEC for RS roots unaligned to block size
7bda53f46387 dm bufio: subtract the number of initial sectors in dm_bufio_get_device_size a2501d87663b io_uring: ignore double poll add on the same waitqueue head 3301afbfef69 ring-buffer: Force before_stamp and write_stamp to be different on discard c6e5800bdf70 PM: runtime: Update device status before letting suppliers suspend ae971992e9fe btrfs: fix warning when creating a directory with smack enabled e6ba61aaff88 btrfs: unlock extents in btrfs_zero_range in case of quota reservation errors 37ffce966821 btrfs: free correct amount of space in btrfs_delayed_inode_reserve_metadata a64ad80223f2 btrfs: validate qgroup inherit for SNAP_CREATE_V2 ioctl
e82407d24968 btrfs: fix race between extent freeing/allocation when using bitmaps 1559d94fece2 btrfs: fix stale data exposure after cloning a hole with NO_HOLES enabled 6fc9e5866cb9 btrfs: fix race between swap file activation and snapshot creation 501fdd1cefae btrfs: fix race between writes to swap files and scrub
b2a487613218 btrfs: fix raid6 qstripe kmap
a01415e5e862 btrfs: avoid double put of block group when emptying cluster fbefc2d28900 tpm, tpm_tis: Decorate tpm_get_timeouts() with request_locality() bfa2e4ed1d39 tpm, tpm_tis: Decorate tpm_tis_gen_interrupt() with request_locality() 86c524934277 ALSA: usb-audio: Drop bogus dB range in too low level
4330e7a8bf01 ALSA: usb-audio: use Corsair Virtuoso mapping for Corsair Virtuoso SE 5c947a8a6f05 ALSA: hda/realtek: Enable headset mic of Acer SWIFT with ALC256

---
 .../linux/linux-yocto-rt_5.10.bb              |  6 ++---
 .../linux/linux-yocto-tiny_5.10.bb            |  8 +++----
 meta/recipes-kernel/linux/linux-yocto_5.10.bb | 22 +++++++++----------
 3 files changed, 18 insertions(+), 18 deletions(-)
meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb +3 -3
index 7375537654..60c3c59613 100644
@@ -11,13 +11,13 @@ python () {
         raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it")
 }
 
-SRCREV_machine ?= "36889a571fe57fe3561cc23f842b92e4ea9ca264"
-SRCREV_meta ?= "7d652f104151052fe4c0cf48d7bc0d7e0c0a7dad"
+SRCREV_machine ?= "09e60e61f3a0716c1d715024db69ed493b374352"
+SRCREV_meta ?= "581687c525f24f8e82582e789d39a508dfa083ed"
 
 SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.10;destsuffix=${KMETA}"
 
-LINUX_VERSION ?= "5.10.21"
+LINUX_VERSION ?= "5.10.23"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 
meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb +4 -4
index 934c1c99b1..852951789a 100644
@@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig"
 
 require recipes-kernel/linux/linux-yocto.inc
 
-LINUX_VERSION ?= "5.10.21"
+LINUX_VERSION ?= "5.10.23"
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 
 DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
@@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native"
 KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
-SRCREV_machine_qemuarm ?= "9d6d37cfe365ebd5b530f9c43c1ace924343bb15"
-SRCREV_machine ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
-SRCREV_meta ?= "7d652f104151052fe4c0cf48d7bc0d7e0c0a7dad"
+SRCREV_machine_qemuarm ?= "828298476280f149282db7209dd18c8bd0f46657"
+SRCREV_machine ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
+SRCREV_meta ?= "581687c525f24f8e82582e789d39a508dfa083ed"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
meta/recipes-kernel/linux/linux-yocto_5.10.bb +11 -11
index f867a125a4..20be08af42 100644
@@ -13,17 +13,17 @@ KBRANCH_qemux86  ?= "v5.10/standard/base"
 KBRANCH_qemux86-64 ?= "v5.10/standard/base"
 KBRANCH_qemumips64 ?= "v5.10/standard/mti-malta64"
 
-SRCREV_machine_qemuarm ?= "b633861686a11bf7ff02b3d40cd71a0113b4739c"
-SRCREV_machine_qemuarm64 ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
-SRCREV_machine_qemumips ?= "d36658c0f303a89dff5ed7f3bb9923c525dfd95c"
-SRCREV_machine_qemuppc ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
-SRCREV_machine_qemuriscv64 ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
+SRCREV_machine_qemuarm ?= "e3b57b3a99ff881a16bbdff86ba811bf251c10a9"
+SRCREV_machine_qemuarm64 ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
+SRCREV_machine_qemumips ?= "68527a50a2f5b0992ba85255325d76a9f187c237"
+SRCREV_machine_qemuppc ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
+SRCREV_machine_qemuriscv64 ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
 SRCREV_machine_qemuriscv32 ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
-SRCREV_machine_qemux86 ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
-SRCREV_machine_qemux86-64 ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
-SRCREV_machine_qemumips64 ?= "f1c01716513524065f0f231c6e6502cd9a3ecb53"
-SRCREV_machine ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
-SRCREV_meta ?= "7d652f104151052fe4c0cf48d7bc0d7e0c0a7dad"
+SRCREV_machine_qemux86 ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
+SRCREV_machine_qemux86-64 ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
+SRCREV_machine_qemumips64 ?= "c19b50af1e3680ff6050a0cce8dcd888accafd9b"
+SRCREV_machine ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
+SRCREV_meta ?= "581687c525f24f8e82582e789d39a508dfa083ed"
 
 # remap qemuarm to qemuarma15 for the 5.8 kernel
 # KMACHINE_qemuarm ?= "qemuarma15"
@@ -32,7 +32,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.10;destsuffix=${KMETA}"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
-LINUX_VERSION ?= "5.10.21"
+LINUX_VERSION ?= "5.10.23"
 
 DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
 DEPENDS += "openssl-native util-linux-native"
Signature · 1 line
2.19.1
#4 lore raw

PATCH 4/8 linux-yocto/5.10: cfg: features/numa: Remove NODES_SPAN_OTHER_NODES option

In reply to Bruce Ashfield

From: Bruce Ashfield <[email protected]>

Integrating the following commit(s) to:

f5babefa399 features/numa: Remove NODES_SPAN_OTHER_NODES option

---
 meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb   | 2 +-
 meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb | 2 +-
 meta/recipes-kernel/linux/linux-yocto_5.10.bb      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb +1 -1
index 60c3c59613..7b5d69843b 100644
@@ -12,7 +12,7 @@ python () {
 }
 
 SRCREV_machine ?= "09e60e61f3a0716c1d715024db69ed493b374352"
-SRCREV_meta ?= "581687c525f24f8e82582e789d39a508dfa083ed"
+SRCREV_meta ?= "f5babefa399359d7a5f880342c03ced78dbd48d2"
 
 SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \
            git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.10;destsuffix=${KMETA}"
meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb +1 -1
index 852951789a..a903a7ad45 100644
@@ -17,7 +17,7 @@ KCONF_BSP_AUDIT_LEVEL = "2"
 
 SRCREV_machine_qemuarm ?= "828298476280f149282db7209dd18c8bd0f46657"
 SRCREV_machine ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
-SRCREV_meta ?= "581687c525f24f8e82582e789d39a508dfa083ed"
+SRCREV_meta ?= "f5babefa399359d7a5f880342c03ced78dbd48d2"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
meta/recipes-kernel/linux/linux-yocto_5.10.bb +1 -1
index 20be08af42..9c122832f4 100644
@@ -23,7 +23,7 @@ SRCREV_machine_qemux86 ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
 SRCREV_machine_qemux86-64 ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
 SRCREV_machine_qemumips64 ?= "c19b50af1e3680ff6050a0cce8dcd888accafd9b"
 SRCREV_machine ?= "04a11eb4aec4efe3064f27b207e8a41c28bb08cd"
-SRCREV_meta ?= "581687c525f24f8e82582e789d39a508dfa083ed"
+SRCREV_meta ?= "f5babefa399359d7a5f880342c03ced78dbd48d2"
 
 # remap qemuarm to qemuarma15 for the 5.8 kernel
 # KMACHINE_qemuarm ?= "qemuarma15"
Signature · 1 line
2.19.1
#5 lore raw

PATCH 5/8 kern-tools: add dropped options to audit output

In reply to Bruce Ashfield

From: Bruce Ashfield <[email protected]>

The rewrite of the configuration audit code dropped the ability to generate warnings for configuration options that didn't make it into the final .config.

We integrated the following commit to restore those warnings:

symbol_why: classify based on config.queue hints

The config.queue has typing hints inline with each fragment, we should be using them to further classify the options, and not only relying on the special hardware.cfg, etc, files that are part of the meta data

We also should be checking for options that were set to a non 'no' value, and that don't make it into the final .config, since without that check it means we are missing some warnings.

---
 meta/recipes-kernel/kern-tools/kern-tools-native_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/kern-tools/kern-tools-native_git.bb +1 -1
index 1d900d85fa..2c76fbae2d 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://tools/kgit;beginline=5;endline=9;md5=9c30e971d435e249
 
 DEPENDS = "git-native"
 
-SRCREV = "8f6aaab7f64c6de30d267e31a73f7c3bb30125a9"
+SRCREV = "1c2fa6c4ecb9fdc3b5b495845141a424b59db33f"
 PR = "r12"
 PV = "0.2+git${SRCPV}"
 
Signature · 1 line
2.19.1
#6 lore raw

PATCH 6/8 lttng-modules: update devupstream to 2.12.5+

In reply to Bruce Ashfield

From: Bruce Ashfield <[email protected]>

When building against kernel v5.12-rc+, we need extra changes on top of the 2.12.5 release. We can bump devupstream separately from the main release to grab those changes.

---
 meta/recipes-kernel/lttng/lttng-modules_2.12.5.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-kernel/lttng/lttng-modules_2.12.5.bb +3 -2
index 48e91e158d..ea36a3464b 100644
@@ -35,7 +35,8 @@ DEFAULT_PREFERENCE_class-devupstream = "-1"
 SRC_URI_class-devupstream = "git://git.lttng.org/lttng-modules;branch=stable-2.12 \
            file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch \
            "
-SRCREV_class-devupstream = "be71b60a327d7ad2588abc5cad2861177119972b"
-PV_class-devupstream = "2.12.3+git${SRCPV}"
+
+SRCREV_class-devupstream = "92cc3e7f76a545a2cd4828576971f1eea83f4e68"
+PV_class-devupstream = "2.12.5+git${SRCPV}"
 S_class-devupstream = "${WORKDIR}/git"
 SRCREV_FORMAT ?= "lttng_git"
Signature · 1 line
2.19.1
#7 lore raw

PATCH 7/8 lttng-modules: backport patches to fix build against 5.12+ kernel

In reply to Bruce Ashfield

From: Bruce Ashfield <[email protected]>

There are four changes in addition to the 2.12.5 release that we need to build against the 5.12 kernel. Rather than only rely on people knowing to use devupstream support to build against newer kernels, we backport the 4 patches while waiting for release.

---
 ...01-Fix-memory-leaks-on-event-destroy.patch |  58 +++++++
 ...preter-early-exits-on-uninitialized-.patch | 159 ++++++++++++++++++
 ...ecord-slab-name-for-kmem_cache_free-.patch |  91 ++++++++++
 ...be-null-ptr-deref-on-session-destroy.patch |  41 +++++
 .../lttng/lttng-modules_2.12.5.bb             |   4 +
 5 files changed, 353 insertions(+)
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0001-Fix-memory-leaks-on-event-destroy.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0002-Fix-filter-interpreter-early-exits-on-uninitialized-.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0003-fix-mm-tracing-record-slab-name-for-kmem_cache_free-.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0004-Fix-kretprobe-null-ptr-deref-on-session-destroy.patch
meta/recipes-kernel/lttng/lttng-modules/0001-Fix-memory-leaks-on-event-destroy.patch new file +58 -0
new file mode 100644
index 0000000000..21da932a75
@@ -0,0 +1,58 @@
+From b3fdf78b15beb940918da1e41eb68e24ba31bb87 Mon Sep 17 00:00:00 2001
+From: Mathieu Desnoyers <[email protected]>
+Date: Wed, 3 Mar 2021 10:10:16 -0500
+Subject: [PATCH 1/4] Fix: memory leaks on event destroy
+
+Both filter runtime and event enabler ref objects are owned by the
+event, but are not freed upon destruction of the event object, thus
+leaking memory.
+
+Upstream-status: backport
+
+Signed-off-by: Mathieu Desnoyers <[email protected]>
+Change-Id: Ice9b1c18b47584838aea2b965494d3c8391f4c84
+---
+ lttng-events.c | 7 +++++++
+ lttng-events.h | 1 +
+ 2 files changed, 8 insertions(+)
+
+diff --git a/lttng-events.c b/lttng-events.c
+index f3398adc..984bd341 100644
+--- a/lttng-events.c
++++ b/lttng-events.c
+@@ -919,6 +919,8 @@ int _lttng_event_unregister(struct lttng_event *event)
+ static
+ void _lttng_event_destroy(struct lttng_event *event)
+ {
++	struct lttng_enabler_ref *enabler_ref, *tmp_enabler_ref;
++
+ 	switch (event->instrumentation) {
+ 	case LTTNG_KERNEL_TRACEPOINT:
+ 		lttng_event_put(event->desc);
+@@ -944,6 +946,11 @@ void _lttng_event_destroy(struct lttng_event *event)
+ 	}
+ 	list_del(&event->list);
+ 	lttng_destroy_context(event->ctx);
++	lttng_free_event_filter_runtime(event);
++	/* Free event enabler refs */
++	list_for_each_entry_safe(enabler_ref, tmp_enabler_ref,
++				 &event->enablers_ref_head, node)
++		kfree(enabler_ref);
+ 	kmem_cache_free(event_cache, event);
+ }
+ 
+diff --git a/lttng-events.h b/lttng-events.h
+index 1b9ab167..13b6abf5 100644
+--- a/lttng-events.h
++++ b/lttng-events.h
+@@ -716,6 +716,7 @@ int lttng_enabler_attach_bytecode(struct lttng_enabler *enabler,
+ 		struct lttng_kernel_filter_bytecode __user *bytecode);
+ void lttng_enabler_event_link_bytecode(struct lttng_event *event,
+ 		struct lttng_enabler *enabler);
++void lttng_free_event_filter_runtime(struct lttng_event *event);
+ 
+ int lttng_probes_init(void);
+ 
+-- 
+2.19.1
+
meta/recipes-kernel/lttng/lttng-modules/0002-Fix-filter-interpreter-early-exits-on-uninitialized-.patch new file +159 -0

159 lines not on this page · raw message

meta/recipes-kernel/lttng/lttng-modules/0003-fix-mm-tracing-record-slab-name-for-kmem_cache_free-.patch new file +91 -0

91 lines not on this page · raw message

meta/recipes-kernel/lttng/lttng-modules/0004-Fix-kretprobe-null-ptr-deref-on-session-destroy.patch new file +41 -0

41 lines not on this page · raw message

meta/recipes-kernel/lttng/lttng-modules_2.12.5.bb +4 -0
index ea36a3464b..5b05c644a6 100644
@@ -11,6 +11,10 @@ include lttng-platforms.inc
 
 SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \
            file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch \
+           file://0001-Fix-memory-leaks-on-event-destroy.patch \
+           file://0002-Fix-filter-interpreter-early-exits-on-uninitialized-.patch  \
+           file://0003-fix-mm-tracing-record-slab-name-for-kmem_cache_free-.patch \
+           file://0004-Fix-kretprobe-null-ptr-deref-on-session-destroy.patch \
            "
 
 SRC_URI[sha256sum] = "c4d1a1b42c728e37b6b7947ae16563a011c4b297311aa04d56f9a1791fb5a30a"
Signature · 1 line
2.19.1
#8 lore raw

PATCH 8/8 kernel-devsrc: fix on-target scripts/prepare for v5.12+

In reply to Bruce Ashfield

From: Bruce Ashfield <[email protected]>

AR is now captured are part of the build environment. If we don't subtitute our on-target variant for the cross version, we'll end up getting a prompted configure when preparing to build modules.

---
 meta/recipes-kernel/linux/kernel-devsrc.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-kernel/linux/kernel-devsrc.bb +1 -0
index dadeade3aa..455c836527 100644
@@ -271,6 +271,7 @@ do_install() {
     if [ -e "$kerneldir/build/include/config/auto.conf.cmd" ]; then
         sed -i 's/ifneq "$(CC)" ".*-linux-.*gcc.*$/ifneq "$(CC)" "gcc"/' "$kerneldir/build/include/config/auto.conf.cmd"
         sed -i 's/ifneq "$(LD)" ".*-linux-.*ld.bfd.*$/ifneq "$(LD)" "ld"/' "$kerneldir/build/include/config/auto.conf.cmd"
+        sed -i 's/ifneq "$(AR)" ".*-linux-.*ar.*$/ifneq "$(AR)" "ar"/' "$kerneldir/build/include/config/auto.conf.cmd"
         sed -i 's/ifneq "$(HOSTCXX)" ".*$/ifneq "$(HOSTCXX)" "g++"/' "$kerneldir/build/include/config/auto.conf.cmd"
         sed -i 's/ifneq "$(HOSTCC)" ".*$/ifneq "$(HOSTCC)" "gcc"/' "$kerneldir/build/include/config/auto.conf.cmd"
         sed -i 's/ifneq "$(CC_VERSION_TEXT)".*\(gcc.*\)"/ifneq "$(CC_VERSION_TEXT)" "\1"/' "$kerneldir/build/include/config/auto.conf.cmd"
Signature · 1 line
2.19.1
#9 lore raw
In reply to Bruce Ashfield

Hi Bruce,

Quoted 9 lines · On Fri, 2021-03-19 at 14:58 -0400, [email protected] wrote:

Here's my latest batch of bugfix and prep for release changes.

We have one configuration fix, as well as a fix to the tools that was hiding some warnings that we used to get.

  ** There's a chance that this kern-tools change will pop out some warnings. I can fix the warnings easily, but if it does, I'd suggest just dropping it from the queue, since nothing depends on it. **

There is a warning so I'll defer that piece for now:

https://autobuilder.yoctoproject.org/typhoon/#/builders/37/builds/3227

(maybe needs a yocto-bsp bump?)

Do we know the cause of the beaglebone regression btw? We don't really know what to do with M3 due to that...

Cheers,

Richard

#10 lore raw
Quoted 14 lines · Richard Purdie

Hi Bruce,

Quoted 9 lines · On Fri, 2021-03-19 at 14:58 -0400, [email protected] wrote:

Here's my latest batch of bugfix and prep for release changes.

We have one configuration fix, as well as a fix to the tools that was hiding some warnings that we used to get.

** There's a chance that this kern-tools change will pop out some
warnings. I can fix the warnings easily, but if it does, I'd suggest just dropping it from the queue, since nothing depends on it.
**

Quoted 5 lines

There is a warning so I'll defer that piece for now:

https://autobuilder.yoctoproject.org/typhoon/#/builders/37/builds/3227

(maybe needs a yocto-bsp bump?)

This is unique to that BSP, so a bump wouldn't get it.

I'll pull together a fix for it, and send a bump to the BSPs to pick it up (and resend the tools tweak at the same time).

Quoted 3 lines

Do we know the cause of the beaglebone regression btw? We don't really know what to do with M3 due to that...

Unless Kevin @ WindRiver has ideas, I don't actually have a platform available for any testing, so we need to hear from him.

Bruce

Quoted 5 lines

Cheers,

Richard

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II