Skip to contentSkip to conversation

7.3.5-rc1 review

PATCH In review Greg Kroah-Hartman 16 participants 526 messages Nov 13 – Nov 16 Page 5 of 5

Subsystems (2)
lore
Share & tools
lore
author maintainer
#489 lore raw

PATCH 483/507 ASoC: hdac_hda: Restore the codec device type on unbind

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Peter Ujfalusi <[email protected]>

[ Upstream commit 08a44bde821d4fe22c0b6e63da04b3c59ac243a8 ]

hdac_hda_codec_probe() changes the type of the codec device to HDA_DEV_ASOC to prevent snd_hda_codec_unregister() from unregistering the device when the card is freed.

The type is never restored, and hda_bus_match() requires the device and driver types to be equal. After unbinding the codec driver via sysfs the HDA_DEV_LEGACY codec drivers no longer match the device and bind fails with -ENODEV.

Restore HDA_DEV_LEGACY with a device managed action registered before the component, so it runs after the component and the card are gone.

Fixes b60ee2e281b6 ("ASoC: hdac_hda: overwrite hdev type to HDA_DEV_ASOC")
---
 sound/soc/codecs/hdac_hda.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
sound/soc/codecs/hdac_hda.c +12 -0
index 0604315a1f0f3..9e45b20940f2f 100644
@@ -633,6 +633,13 @@ static const struct snd_soc_component_driver hdac_hda_hdmi_codec = {
 	.endianness		= 1,
 };
 
+static void hdac_hda_restore_dev_type(void *data)
+{
+	struct hdac_device *hdev = data;
+
+	hdev->type = HDA_DEV_LEGACY;
+}
+
 static int hdac_hda_dev_probe(struct hdac_device *hdev)
 {
 	struct hdac_hda_priv *hda_pvt;
@@ -650,6 +657,11 @@ static int hdac_hda_dev_probe(struct hdac_device *hdev)
 		hda_pvt->need_display_power = true;
 	dev_set_drvdata(&hdev->dev, hda_pvt);
 
+	/* Allow the legacy codec driver to match again after unbind */
+	ret = devm_add_action(&hdev->dev, hdac_hda_restore_dev_type, hdev);
+	if (ret)
+		return ret;
+
 	/* hold the ref while we probe */
 	hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev));
 	if (!hlink) {
Signature · 1 line
2.53.0
author maintainer
#490 lore raw

PATCH 484/507 erofs: fix metadata reads at the end of file-backed images

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Hengyu Liang <[email protected]>

[ Upstream commit 52dceb88082b4c7983d1c8c7de1c181f018055ac ]

Commit e587a984d332 ("erofs: use dedicated meta inodes for file-backed mounts") made erofs_read_meta_folio() read the metadata of a file-backed mount one whole folio at a time.

However, an image only has to be a multiple of its block size. With a block size below the page size, it can end in the middle of a page. The read of that last page is then short, and erofs_fileio_ki_complete() fails it with -EIO. As of now, inodes in the last page of such an image cannot be read, and an image smaller than a page cannot be mounted.

The issue can be reproduced with util-linux 2.41, whose mount uses the image file directly:

mkdir src
for i in $(seq 50); do echo $i > src/$i; done
mkfs.erofs -b512 test.erofs src
mount -t erofs test.erofs /mnt
ls -l /mnt

Before that commit, ls -l lists all 50 files. After it, ls -l reports "Input/output error" for 24 of them.

This patch reads the folio only up to the end of the backing file and zeroes the rest, as the page cache of the backing file did before. A folio that lies wholly past the end is zeroed without a read.

Fixes e587a984d332 ("erofs: use dedicated meta inodes for file-backed mounts")
[ sashal: adjusted context to retain the older metadata I/O allocation and completion mechanism ]
---
 fs/erofs/fileio.c | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
fs/erofs/fileio.c +15 -3
index ebb81a7ffd4cb..ac846cfbc5633 100644
@@ -201,17 +201,29 @@ int erofs_read_meta_folio(struct file *file, struct folio *folio)
 		.dev = { .m_pa = folio_pos(folio), },
 	};
 	struct inode *inode = folio_inode(folio);
+	size_t len = folio_size(folio);
+	loff_t pos, isize;
 	int err;
 
 	err = erofs_map_dev(inode->i_sb, &io.dev);
 	if (err)
 		return err;
 
+	pos = io.dev.m_dif->fsoff + io.dev.m_pa;
+	isize = i_size_read(file_inode(io.dev.m_dif->file));
+	if (pos + folio_size(folio) > isize) {
+		len = isize > pos ? isize - pos : 0;
+		folio_zero_segment(folio, len, folio_size(folio));
+		if (!len) {
+			folio_end_read(folio, true);
+			return 0;
+		}
+	}
+
 	io.rq = erofs_fileio_rq_alloc(&io.dev);
-	io.rq->bio.bi_iter.bi_sector =
-		(io.dev.m_dif->fsoff + io.dev.m_pa) >> 9;
+	io.rq->bio.bi_iter.bi_sector = pos >> 9;
 	erofs_onlinefolio_init(folio);
-	bio_add_folio_nofail(&io.rq->bio, folio, folio_size(folio), 0);
+	bio_add_folio_nofail(&io.rq->bio, folio, len, 0);
 	erofs_fileio_rq_submit(io.rq);
 	return 0;
 }
Signature · 1 line
2.53.0
author maintainer
#491 lore raw

PATCH 485/507 PCI: cadence: Remove device links to PHY

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: [email protected] <[email protected]>

[ Upstream commit b59e98ae3841f84d0fb21dbf80e69e6c241a29d9 ]

This is a partial revert of the device link pieces from commit dfb80534692d ("PCI: cadence: Add generic PHY support to host and EP drivers").

The trouble with this is that a PHY consumer driver dereferences fields from struct phy, which will become no longer possible.

Since commit 987351e1ea77 ("phy: core: Add consumer device link support") from 2019, the PHY core also adds a device link to order PHY provider and consumer suspend/resume operations. The reverted functionality is from 2018 and is redundant with the PHY core now.

Stable-dep-of: cfe96ce583c5 ("PCI: cadence: Store the core controller in platform drvdata")

---
 .../pci/controller/cadence/pcie-cadence-plat.c   |  4 ----
 drivers/pci/controller/cadence/pcie-cadence.c    | 16 +---------------
 drivers/pci/controller/cadence/pcie-cadence.h    |  2 --
 3 files changed, 1 insertion(+), 21 deletions(-)
drivers/pci/controller/cadence/pcie-cadence-plat.c +0 -4
index a1ea24fc3b63f..5900d68c6e83a 100644
@@ -41,7 +41,6 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
 	struct pci_host_bridge *bridge;
 	struct cdns_pcie_ep *ep;
 	struct cdns_pcie_rc *rc;
-	int phy_count;
 	bool is_rc;
 	int ret;
 
@@ -122,9 +121,6 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
 	pm_runtime_put_sync(dev);
 	pm_runtime_disable(dev);
 	cdns_pcie_disable_phy(cdns_plat_pcie->pcie);
-	phy_count = cdns_plat_pcie->pcie->phy_count;
-	while (phy_count--)
-		device_link_del(cdns_plat_pcie->pcie->link[phy_count]);
 
 	return 0;
 }
drivers/pci/controller/cadence/pcie-cadence.c +1 -15
index a1eada56edba7..0ac9802499414 100644
@@ -222,7 +222,6 @@ int cdns_pcie_init_phy(struct device *dev, struct cdns_pcie *pcie)
 	struct device_node *np = dev->of_node;
 	int phy_count;
 	struct phy **phy;
-	struct device_link **link;
 	int i;
 	int ret;
 	const char *name;
@@ -238,10 +237,6 @@ int cdns_pcie_init_phy(struct device *dev, struct cdns_pcie *pcie)
 	if (!phy)
 		return -ENOMEM;
 
-	link = devm_kcalloc(dev, phy_count, sizeof(*link), GFP_KERNEL);
-	if (!link)
-		return -ENOMEM;
-
 	for (i = 0; i < phy_count; i++) {
 		of_property_read_string_index(np, "phy-names", i, &name);
 		phy[i] = devm_phy_get(dev, name);
@@ -249,17 +244,10 @@ int cdns_pcie_init_phy(struct device *dev, struct cdns_pcie *pcie)
 			ret = PTR_ERR(phy[i]);
 			goto err_phy;
 		}
-		link[i] = device_link_add(dev, &phy[i]->dev, DL_FLAG_STATELESS);
-		if (!link[i]) {
-			devm_phy_put(dev, phy[i]);
-			ret = -EINVAL;
-			goto err_phy;
-		}
 	}
 
 	pcie->phy_count = phy_count;
 	pcie->phy = phy;
-	pcie->link = link;
 
 	ret =  cdns_pcie_enable_phy(pcie);
 	if (ret)
@@ -268,10 +256,8 @@ int cdns_pcie_init_phy(struct device *dev, struct cdns_pcie *pcie)
 	return 0;
 
 err_phy:
-	while (--i >= 0) {
-		device_link_del(link[i]);
+	while (--i >= 0)
 		devm_phy_put(dev, phy[i]);
-	}
 
 	return ret;
 }
drivers/pci/controller/cadence/pcie-cadence.h +0 -2
index b4d51adefea53..4a96e1869e535 100644
@@ -260,7 +260,6 @@ struct cdns_plat_pcie_of_data {
  * @is_hpa: indicates if the architecture is HPA
  * @phy_count: number of supported PHY devices
  * @phy: list of pointers to specific PHY control blocks
- * @link: list of pointers to corresponding device link representations
  * @ops: Platform-specific ops to control various inputs from Cadence PCIe
  *       wrapper
  * @cdns_pcie_reg_offsets: Register bank offsets for different SoC
@@ -276,7 +275,6 @@ struct cdns_pcie {
 	bool				     is_hpa;
 	int			             phy_count;
 	struct phy		             **phy;
-	struct device_link	             **link;
 	const  struct cdns_pcie_ops          *ops;
 	const  struct cdns_plat_pcie_of_data *cdns_pcie_reg_offsets;
 	int				     max_link_speed;
Signature · 1 line
2.53.0
author maintainer
#492 lore raw

PATCH 486/507 PCI: cadence: Store the core controller in platform drvdata

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Linmao Li <[email protected]>

[ Upstream commit cfe96ce583c51bf6e034d4038c652a1e8227867c ]

cdns_plat_pcie_probe() stores a struct cdns_plat_pcie pointer with platform_set_drvdata(). cdns_plat_pcie_shutdown() and the callbacks in cdns_pcie_pm_ops retrieve the same pointer with dev_get_drvdata() but use it as a struct cdns_pcie pointer. This makes them read phy_count and phy beyond the wrapper.

struct cdns_plat_pcie only contains a pointer to struct cdns_pcie. Drop the redundant wrapper and store the struct cdns_pcie pointer directly.

---
 .../controller/cadence/pcie-cadence-plat.c    | 27 ++++++-------------
 1 file changed, 8 insertions(+), 19 deletions(-)
drivers/pci/controller/cadence/pcie-cadence-plat.c +8 -19
index 5900d68c6e83a..abda260543c8b 100644
@@ -14,14 +14,6 @@
 
 #define CDNS_PLAT_CPU_TO_BUS_ADDR	0x0FFFFFFF
 
-/**
- * struct cdns_plat_pcie - private data for this PCIe platform driver
- * @pcie: Cadence PCIe controller
- */
-struct cdns_plat_pcie {
-	struct cdns_pcie        *pcie;
-};
-
 static const struct of_device_id cdns_plat_pcie_of_match[];
 
 static u64 cdns_plat_cpu_addr_fixup(struct cdns_pcie *pcie, u64 cpu_addr)
@@ -36,9 +28,9 @@ static const struct cdns_pcie_ops cdns_plat_ops = {
 static int cdns_plat_pcie_probe(struct platform_device *pdev)
 {
 	const struct cdns_plat_pcie_of_data *data;
-	struct cdns_plat_pcie *cdns_plat_pcie;
 	struct device *dev = &pdev->dev;
 	struct pci_host_bridge *bridge;
+	struct cdns_pcie *pcie;
 	struct cdns_pcie_ep *ep;
 	struct cdns_pcie_rc *rc;
 	bool is_rc;
@@ -51,11 +43,6 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
 	is_rc = data->is_rc;
 
 	pr_debug(" Started %s with is_rc: %d\n", __func__, is_rc);
-	cdns_plat_pcie = devm_kzalloc(dev, sizeof(*cdns_plat_pcie), GFP_KERNEL);
-	if (!cdns_plat_pcie)
-		return -ENOMEM;
-
-	platform_set_drvdata(pdev, cdns_plat_pcie);
 	if (is_rc) {
 		if (!IS_ENABLED(CONFIG_PCIE_CADENCE_PLAT_HOST))
 			return -ENODEV;
@@ -67,9 +54,9 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
 		rc = pci_host_bridge_priv(bridge);
 		rc->pcie.dev = dev;
 		rc->pcie.ops = &cdns_plat_ops;
-		cdns_plat_pcie->pcie = &rc->pcie;
+		pcie = &rc->pcie;
 
-		ret = cdns_pcie_init_phy(dev, cdns_plat_pcie->pcie);
+		ret = cdns_pcie_init_phy(dev, pcie);
 		if (ret) {
 			dev_err(dev, "failed to init phy\n");
 			return ret;
@@ -94,9 +81,9 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
 
 		ep->pcie.dev = dev;
 		ep->pcie.ops = &cdns_plat_ops;
-		cdns_plat_pcie->pcie = &ep->pcie;
+		pcie = &ep->pcie;
 
-		ret = cdns_pcie_init_phy(dev, cdns_plat_pcie->pcie);
+		ret = cdns_pcie_init_phy(dev, pcie);
 		if (ret) {
 			dev_err(dev, "failed to init phy\n");
 			return ret;
@@ -114,13 +101,15 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
 			goto err_init;
 	}
 
+	platform_set_drvdata(pdev, pcie);
+
 	return 0;
 
  err_init:
  err_get_sync:
 	pm_runtime_put_sync(dev);
 	pm_runtime_disable(dev);
-	cdns_pcie_disable_phy(cdns_plat_pcie->pcie);
+	cdns_pcie_disable_phy(pcie);
 
 	return 0;
 }
Signature · 1 line
2.53.0
author maintainer
#493 lore raw

PATCH 487/507 PCI: cadence: Preserve all error codes in cdns_plat_pcie_probe()

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Vladimir Oltean <[email protected]>

[ Upstream commit fe108800a865b268eec103e4940c248c85a86e9f ]

The blamed commit functionally changed the error path of cdns_pcie_host_probe(), now cdns_plat_pcie_probe().

When the old code path executed "goto err_get_sync", the PCIe controller probe function propagated the pm_runtime_get_sync() error code. The new code doesn't, and returns 0.

Similarly for the "goto err_init" previously triggered by cdns_pcie_host_init() errors, and now triggered by cdns_pcie_host_setup() and cdns_pcie_ep_setup() errors. These are not propagated and will result in probing success, which is incorrect.

Fixes bd22885aa188 ("PCI: cadence: Refactor driver to use as a core library")
---
 drivers/pci/controller/cadence/pcie-cadence-plat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/cadence/pcie-cadence-plat.c +1 -1
index abda260543c8b..4a24302cc5b2c 100644
@@ -111,7 +111,7 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
 	pm_runtime_disable(dev);
 	cdns_pcie_disable_phy(pcie);
 
-	return 0;
+	return ret;
 }
 
 static void cdns_plat_pcie_shutdown(struct platform_device *pdev)
Signature · 1 line
2.53.0
author maintainer
#494 lore raw

PATCH 488/507 f2fs: fix to invalidate curseg if change_curseg() fails

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Chao Yu <[email protected]>

[ Upstream commit e74476ad8162c1facc74b74ce2d1372492df872e ]

Our consistency stress test (fsstress + fio + atomic write workers + "f2fs_io shutdown 1") triggers below kernel BUG:

F2FS-fs (vdd): Stopped filesystem due to reason: 0

 ------------[ cut here ]------------
 kernel BUG at fs/f2fs/segment.c:3989!
 Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
 Workqueue: writeback wb_workfn (flush-253:48)
 RIP: 0010:f2fs_allocate_data_block+0x257a/0x38e0
 Call Trace:
  <TASK>
  do_write_block+0x155/0xc10
  f2fs_outplace_write_data+0x192/0x340
  f2fs_do_write_data_page+0xc57/0x1880
  f2fs_write_single_data_page+0xda9/0x15a0
  f2fs_write_cache_pages+0x973/0x1f20
  __f2fs_write_data_pages+0x6c4/0x1890
  do_writepages+0x21e/0x560
  __writeback_single_inode+0x119/0x11b0
  writeback_sb_inodes+0x67d/0x17a0
  wb_writeback+0x207/0x820
  wb_workfn+0x128/0xc30
  process_one_work+0x925/0x1600
  worker_thread+0x60a/0xff0
  kthread+0x35f/0x460
  ret_from_fork+0x474/0x7e0
  ret_from_fork_asm+0x1a/0x30
  </TASK>

The BUG is f2fs_bug_on(sbi, curseg->next_blkoff >= BLKS_PER_SEG(sbi)) in f2fs_allocate_data_block(), next_blkoff was 512.

The root cause is a race in between atomic write commit and shutdown as below:

Thread A (commit atomic write) Thread B (shutdown) Thread C (writeback)
- f2fs_ioc_commit_atomic_write
- f2fs_commit_atomic_write
- __f2fs_commit_atomic_write
- __replace_atomic_write_block
- f2fs_replace_block
- __f2fs_replace_block
- f2fs_ioc_shutdown
- f2fs_do_shutdown
: F2FS_GOING_DOWN_METASYNC
- f2fs_sync_fs
- f2fs_write_single_data_page : pass f2fs_cp_error() check
- f2fs_stop_checkpoint
: set CP_ERROR_FLAG
- change_curseg
- reset_curseg
: curseg->segno = new_segno
: curseg->alloc_type = SSR
: curseg->next_blkoff = __next_free_blkoff()
which is BLKS_PER_SEG if there is no free
slot in new_segno
- f2fs_get_sum_cache
: return -EIO due to f2fs_cp_error()
: return error w/o restoring curseg
: goto out_unlock, skip restoring
old segno, blkoff and alloc_type
- f2fs_do_write_data_page
- f2fs_outplace_write_data
- do_write_block
- f2fs_allocate_data_block : curseg->segno is valid : f2fs_bug_on(next_blkoff >= BLKS_PER_SEG)

Since commit 86f33603f8c5 ("f2fs: handle errors of f2fs_get_meta_page_nofail"), change_curseg() can fail after the curseg has already been switched to the new segment, then the curseg is left in an inconsistent state: it points to a segment which may have no free slot, its summary block is zeroed, and the caller can not restore it. Subsequent block allocation on the curseg will trigger the BUG. Moreover, the writeback thread dies with curseg_lock, curseg_mutex and sentry_lock held, so the commit, shutdown and other I/O threads hang in D state.

Since change_curseg() only fails once CP_ERROR_FLAG is set, no checkpoint will be committed afterward, let's invalidate the curseg via reset_curseg_fields() on failure, as new_curseg() does for -ENOSPC, then f2fs_allocate_data_block() will fail with -ENOSPC on the curseg instead of triggering BUG, and do_write_block() can handle the error since CP_ERROR_FLAG has been set.

Fixes 86f33603f8c5 ("f2fs: handle errors of f2fs_get_meta_page_nofail")
[ sashal: Adjusted context to retain the existing folio summary API instead of the upstream cached-block API. ]
---
 fs/f2fs/segment.c | 1 +
 1 file changed, 1 insertion(+)
fs/f2fs/segment.c +1 -0
index 09d044c6a166d..75f78ed7eb909 100644
@@ -3234,6 +3234,7 @@ static int change_curseg(struct f2fs_sb_info *sbi, int type)
 	if (IS_ERR(sum_folio)) {
 		/* GC won't be able to use stale summary pages by cp_error */
 		memset(curseg->sum_blk, 0, sbi->sum_entry_size);
+		reset_curseg_fields(curseg);
 		return PTR_ERR(sum_folio);
 	}
 	sum_node = SUM_BLK_PAGE_ADDR(sbi, sum_folio, new_segno);
Signature · 1 line
2.53.0
author maintainer
#495 lore raw

PATCH 489/507 ACPI: utils: Add exclusive AML evaluation helpers

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Ali Ahmet Memiş <[email protected]>

[ Upstream commit 80892972ff23bf0b9049230ef0931b34163aaed3 ]

ACPICA drops the interpreter lock while AML waits, for example around EC accesses, so two methods can run interleaved.

Some firmware relies on methods not interleaving, for instance by switching an EC page selector without taking the AML mutex that the other users of that page hold.

Add acpi_evaluate_object_exclusive(), acpi_evaluate_integer_exclusive() and acpi_execute_simple_method_exclusive() which serialize the evaluation under a global mutex, for callers that are known to be affected.

Stable-dep-of: 645f370c932d ("ACPI: battery: Evaluate battery methods exclusively")

---
 drivers/acpi/utils.c    | 41 +++++++++++++++++++++++++++++++++++++++++
 include/acpi/acpi_bus.h |  7 +++++++
 2 files changed, 48 insertions(+)
drivers/acpi/utils.c +41 -0
index d499b72574ab2..ea8cb876c12d2 100644
@@ -10,6 +10,7 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/mutex.h>
 #include <linux/slab.h>
 #include <linux/init.h>
 #include <linux/types.h>
@@ -243,6 +244,28 @@ acpi_extract_package(union acpi_object *package,
 
 EXPORT_SYMBOL(acpi_extract_package);
 
+static DEFINE_MUTEX(acpi_exclusive_eval_lock);
+
+/**
+ * acpi_evaluate_object_exclusive - Evaluate an object without interleaving
+ * @handle: ACPI handle of the object or its scope.
+ * @pathname: Path of the object relative to @handle.
+ * @arguments: Arguments to pass, or NULL.
+ * @buffer: Buffer for the return value, or NULL.
+ *
+ * Same as acpi_evaluate_object(), but serialized with other exclusive
+ * evaluations.  Use it only for methods known to break when interleaved.
+ */
+acpi_status acpi_evaluate_object_exclusive(acpi_handle handle, acpi_string pathname,
+					   struct acpi_object_list *arguments,
+					   struct acpi_buffer *buffer)
+{
+	guard(mutex)(&acpi_exclusive_eval_lock);
+
+	return acpi_evaluate_object(handle, pathname, arguments, buffer);
+}
+EXPORT_SYMBOL_GPL(acpi_evaluate_object_exclusive);
+
 acpi_status
 acpi_evaluate_integer(acpi_handle handle,
 		      acpi_string pathname,
@@ -277,6 +300,16 @@ acpi_evaluate_integer(acpi_handle handle,
 
 EXPORT_SYMBOL(acpi_evaluate_integer);
 
+acpi_status acpi_evaluate_integer_exclusive(acpi_handle handle, acpi_string pathname,
+					    struct acpi_object_list *arguments,
+					    unsigned long long *data)
+{
+	guard(mutex)(&acpi_exclusive_eval_lock);
+
+	return acpi_evaluate_integer(handle, pathname, arguments, data);
+}
+EXPORT_SYMBOL_GPL(acpi_evaluate_integer_exclusive);
+
 int acpi_get_local_u64_address(acpi_handle handle, u64 *addr)
 {
 	acpi_status status;
@@ -685,6 +718,14 @@ acpi_status acpi_execute_simple_method(acpi_handle handle, char *method,
 }
 EXPORT_SYMBOL(acpi_execute_simple_method);
 
+acpi_status acpi_execute_simple_method_exclusive(acpi_handle handle, char *method, u64 arg)
+{
+	guard(mutex)(&acpi_exclusive_eval_lock);
+
+	return acpi_execute_simple_method(handle, method, arg);
+}
+EXPORT_SYMBOL_GPL(acpi_execute_simple_method_exclusive);
+
 /**
  * acpi_evaluate_ej0: Evaluate _EJ0 method for hotplug operations
  * @handle: ACPI device handle
include/acpi/acpi_bus.h +7 -0
index a10a591c18b23..8b1d329455f7b 100644
@@ -32,6 +32,12 @@ acpi_status
 acpi_evaluate_integer(acpi_handle handle,
 		      acpi_string pathname,
 		      struct acpi_object_list *arguments, unsigned long long *data);
+acpi_status acpi_evaluate_object_exclusive(acpi_handle handle, acpi_string pathname,
+					   struct acpi_object_list *arguments,
+					   struct acpi_buffer *buffer);
+acpi_status acpi_evaluate_integer_exclusive(acpi_handle handle, acpi_string pathname,
+					    struct acpi_object_list *arguments,
+					    unsigned long long *data);
 bool acpi_evaluate_reference(acpi_handle handle, acpi_string pathname,
 			     struct acpi_object_list *arguments,
 			     struct acpi_handle_list *list);
@@ -48,6 +54,7 @@ acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code,
 bool acpi_has_method(acpi_handle handle, char *name);
 acpi_status acpi_execute_simple_method(acpi_handle handle, char *method,
 				       u64 arg);
+acpi_status acpi_execute_simple_method_exclusive(acpi_handle handle, char *method, u64 arg);
 acpi_status acpi_evaluate_ej0(acpi_handle handle);
 acpi_status acpi_evaluate_lck(acpi_handle handle, int lock);
 acpi_status acpi_evaluate_reg(acpi_handle handle, u8 space_id, u32 function);
Signature · 1 line
2.53.0
author maintainer
#496 lore raw

PATCH 490/507 ACPI: battery: Evaluate battery methods exclusively

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Ali Ahmet Memiş <[email protected]>

[ Upstream commit 645f370c932db2cd3893f7fee61aa8b9debc8ac0 ]

On ThinkPad P1 Gen2 and P53, INT3403 _TMP switches the EC page selector without taking the AML mutex the battery methods use, so _BIX and _BST running at the same time can read the wrong page. Since commit d33e89d12295 ("thermal: core: Suspend thermal zones later and resume them earlier") this happens on most resumes.

Evaluate the battery methods with acpi_evaluate_object_exclusive().

---
 drivers/acpi/battery.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
drivers/acpi/battery.c +5 -7
index 670853ec3a4d7..7169ac7e83f31 100644
@@ -583,9 +583,8 @@ static int acpi_battery_get_info(struct acpi_battery *battery)
 		struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
 		acpi_status status = AE_ERROR;
 
-		status = acpi_evaluate_object(battery->device->handle,
-					      use_bix ? "_BIX":"_BIF",
-					      NULL, &buffer);
+		status = acpi_evaluate_object_exclusive(battery->device->handle,
+							use_bix ? "_BIX" : "_BIF", NULL, &buffer);
 
 		if (ACPI_FAILURE(status)) {
 			acpi_handle_info(battery->device->handle,
@@ -624,8 +623,7 @@ static int acpi_battery_get_state(struct acpi_battery *battery)
 			msecs_to_jiffies(cache_time)))
 		return 0;
 
-	status = acpi_evaluate_object(battery->device->handle, "_BST",
-				      NULL, &buffer);
+	status = acpi_evaluate_object_exclusive(battery->device->handle, "_BST", NULL, &buffer);
 	if (ACPI_FAILURE(status)) {
 		acpi_handle_info(battery->device->handle,
 				 "_BST evaluation failed: %s",
@@ -675,8 +673,8 @@ static int acpi_battery_set_alarm(struct acpi_battery *battery)
 	    !test_bit(ACPI_BATTERY_ALARM_PRESENT, &battery->flags))
 		return -ENODEV;
 
-	status = acpi_execute_simple_method(battery->device->handle, "_BTP",
-					    battery->alarm);
+	status = acpi_execute_simple_method_exclusive(battery->device->handle, "_BTP",
+						      battery->alarm);
 	if (ACPI_FAILURE(status))
 		return -ENODEV;
 
Signature · 1 line
2.53.0
author maintainer
#497 lore raw

PATCH 491/507 PCI: dwc: Set DMA_BYPASS bit in outbound IATU CTRL2 register

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Sumit Kumar <[email protected]>

[ Upstream commit efadda401c5c8e2390ba66508eba154dbd0db5a9 ]

An outbound iATU region matches any local (AXI/application-side) address that falls within its Base/Limit window and rewrites it to the PCIe-side address programmed in that region's Target Address Registers before the transaction goes out on the link. This matching does not distinguish CPU-initiated transactions from ones issued by the internal DMA engine (eDMA/HDMA).

Example: outbound region 0 is programmed with Base/Limit covering local addresses 0x8000_0000-0x8000_0FFF and Target 0x1_0000_0000, for CPU-initiated accesses. The DMA engine is later given a descriptor whose destination is the host address 0x8000_0080, which happens to fall inside region 0's Base/Limit range. The iATU matches the DMA transaction against region 0 too and rewrites it to 0x1_0000_0080 instead of passing 0x8000_0080 through unchanged. The transaction then lands on the wrong host address, causing data corruption or an IOMMU fault when the rewritten address has no valid mapping.

Set the DMA_BYPASS bit (bit 27) in PCIE_ATU_REGION_CTRL2 when programming outbound iATU regions so only CPU/AXI-initiated transactions are matched against the region; DMA engine transactions bypass the translation and go out on the PCIe link with their original address.

[ sashal: Adapted ATU_* register macros to the existing PCIE_ATU_* naming convention. ]
---
 drivers/pci/controller/dwc/pcie-designware.c | 2 ++
 drivers/pci/controller/dwc/pcie-designware.h | 1 +
 2 files changed, 3 insertions(+)
drivers/pci/controller/dwc/pcie-designware.c +2 -0
index 593388f29bdd4..9297d0e607e3a 100644
@@ -577,6 +577,8 @@ int dw_pcie_prog_outbound_atu(struct dw_pcie *pci,
 		/* The data-less messages only for now */
 		val |= PCIE_ATU_INHIBIT_PAYLOAD | atu->code;
 	}
+	if (dw_pcie_ver_is_ge(pci, 460A))
+		val |= PCIE_ATU_DMA_BYPASS;
 	dw_pcie_writel_atu_ob(pci, atu->index, PCIE_ATU_REGION_CTRL2, val);
 
 	/*
drivers/pci/controller/dwc/pcie-designware.h +1 -0
index 0735ae9409240..668a5ba1c6f59 100644
@@ -201,6 +201,7 @@
 #define PCIE_ATU_ENABLE			BIT(31)
 #define PCIE_ATU_BAR_MODE_ENABLE	BIT(30)
 #define PCIE_ATU_CFG_SHIFT_MODE_ENABLE	BIT(28)
+#define PCIE_ATU_DMA_BYPASS		BIT(27)
 #define PCIE_ATU_INHIBIT_PAYLOAD	BIT(22)
 #define PCIE_ATU_FUNC_NUM_MATCH_EN      BIT(19)
 #define PCIE_ATU_LOWER_BASE		0x008
Signature · 1 line
2.53.0
author maintainer
#498 lore raw

PATCH 492/507 clk: nuvoton: ma35d1: Keep the clock count in the driver

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Miquel Raynal <[email protected]>

[ Upstream commit 26ec588063d9b6c70773b8729372e2bf6d3ea95a ]

The number of clocks is not a binding since this is a value that can change. As such, in order to support the missing watchdog clocks and allow the deprecation and removal of CLK_MAX_IDX from the bindings, we need to switch to a local definition first.

Stable-dep-of: 1dc3871ce7ec ("clk: nuvoton: ma35d1: Add missing WDT/WWDT parent clocks")

---
 drivers/clk/nuvoton/clk-ma35d1.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/clk/nuvoton/clk-ma35d1.c +3 -2
index 9f65d0623517a..6aa42a3e1be3b 100644
@@ -17,6 +17,7 @@
 static DEFINE_SPINLOCK(ma35d1_lock);
 
 #define PLL_MAX_NUM		5
+#define	MA35D1_CLK_COUNT	236
 
 /* Clock Control Registers Offset */
 #define REG_CLK_PWRCTL		0x00
@@ -467,12 +468,12 @@ static int ma35d1_clocks_probe(struct platform_device *pdev)
 	int ret;
 
 	ma35d1_hw_data = devm_kzalloc(dev,
-				      struct_size(ma35d1_hw_data, hws, CLK_MAX_IDX),
+				      struct_size(ma35d1_hw_data, hws, MA35D1_CLK_COUNT),
 				      GFP_KERNEL);
 	if (!ma35d1_hw_data)
 		return -ENOMEM;
 
-	ma35d1_hw_data->num = CLK_MAX_IDX;
+	ma35d1_hw_data->num = MA35D1_CLK_COUNT;
 	hws = ma35d1_hw_data->hws;
 
 	clk_base = devm_platform_ioremap_resource(pdev, 0);
Signature · 1 line
2.53.0
author maintainer
#499 lore raw

PATCH 493/507 dt-bindings: clock: ma35d1: Drop CLK_MAX_IDX define

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Miquel Raynal <[email protected]>

[ Upstream commit 653738db38c7c7f0fb959a7870f9461cf4987825 ]

Drop CLK_MAX_IDX define of MA35D1 include. This is not a binding and should not be placed here. Value is defined in the user driver.

Stable-dep-of: 1dc3871ce7ec ("clk: nuvoton: ma35d1: Add missing WDT/WWDT parent clocks")

---
 include/dt-bindings/clock/nuvoton,ma35d1-clk.h | 1 -
 1 file changed, 1 deletion(-)
include/dt-bindings/clock/nuvoton,ma35d1-clk.h +0 -1
index ba2d70f776a6d..2d6a44a7e55c4 100644
@@ -248,6 +248,5 @@
 #define ADC_GATE	233
 #define EADC_DIV	234
 #define EADC_GATE	235
-#define	CLK_MAX_IDX	236
 
 #endif /* __DT_BINDINGS_CLOCK_NUVOTON_MA35D1_CLK_H */
Signature · 1 line
2.53.0
author maintainer
#500 lore raw

PATCH 494/507 dt-bindings: clock: ma35d1: Add missing WDT/WWDT parent clocks

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Miquel Raynal <[email protected]>

[ Upstream commit 8c7453cb0b01bee47ec2f902a9ac1872d3b77f3d ]

The WDT and WWDT muxes have PCLK3/4096 and PCLK4/4096 among their possible parents, but these fixed factor clocks are currently not defined, even though they are needed to properly describe the clock tree. Add them to the bindings.

Stable-dep-of: 1dc3871ce7ec ("clk: nuvoton: ma35d1: Add missing WDT/WWDT parent clocks")

---
 include/dt-bindings/clock/nuvoton,ma35d1-clk.h | 2 ++
 1 file changed, 2 insertions(+)
include/dt-bindings/clock/nuvoton,ma35d1-clk.h +2 -0
index 2d6a44a7e55c4..764d837d6162a 100644
@@ -248,5 +248,7 @@
 #define ADC_GATE	233
 #define EADC_DIV	234
 #define EADC_GATE	235
+#define PCLK3_DIV4096	236
+#define PCLK4_DIV4096	237
 
 #endif /* __DT_BINDINGS_CLOCK_NUVOTON_MA35D1_CLK_H */
Signature · 1 line
2.53.0
author maintainer
#501 lore raw

PATCH 495/507 clk: nuvoton: ma35d1: Add missing WDT/WWDT parent clocks

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Miquel Raynal <[email protected]>

[ Upstream commit 1dc3871ce7ec819030c22297f8960c61cc42a990 ]

The WDT and WWDT muxes list PCLK3/4096 and PCLK4/4096 among their possible parents, but the driver never registers the corresponding clocks, so these parents could never be used.

Add pclk3_div4096 and pclk4_div4096 as fixed factor children of pclk3 and pclk4 and expose them through the clock provider.

---
 drivers/clk/nuvoton/clk-ma35d1.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/clk/nuvoton/clk-ma35d1.c +3 -1
index 6aa42a3e1be3b..c914079cee2d4 100644
@@ -17,7 +17,7 @@
 static DEFINE_SPINLOCK(ma35d1_lock);
 
 #define PLL_MAX_NUM		5
-#define	MA35D1_CLK_COUNT	236
+#define	MA35D1_CLK_COUNT	238
 
 /* Clock Control Registers Offset */
 #define REG_CLK_PWRCTL		0x00
@@ -544,6 +544,8 @@ static int ma35d1_clocks_probe(struct platform_device *pdev)
 	hws[HCLK3] = ma35d1_clk_fixed_factor(dev, "hclk3", "sysclk1_mux", 1, 2);
 	hws[PCLK3] = ma35d1_clk_fixed_factor(dev, "pclk3", "sysclk1_mux", 1, 2);
 	hws[PCLK4] = ma35d1_clk_fixed_factor(dev, "pclk4", "sysclk1_mux", 1, 2);
+	hws[PCLK3_DIV4096] = ma35d1_clk_fixed_factor(dev, "pclk3_div4096", "pclk3", 1, 4096);
+	hws[PCLK4_DIV4096] = ma35d1_clk_fixed_factor(dev, "pclk4_div4096", "pclk4", 1, 4096);
 
 	hws[USBPHY0] = ma35d1_clk_fixed("usbphy0", 480000000);
 	hws[USBPHY1] = ma35d1_clk_fixed("usbphy1", 480000000);
Signature · 1 line
2.53.0
author maintainer
#502 lore raw

PATCH 496/507 f2fs: release a removed xattr node in roll-forward recovery

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Daeho Jeong <[email protected]>

[ Upstream commit f5924de8867c09206ba631b9faed63862ec00a10 ]

When xattrs shrink enough to fit in the inline xattr area, write_all_xattrs() truncates the xattr node and clears i_xattr_nid. If the file is then fsynced without a checkpoint, only the inode block is written, with i_xattr_nid of 0.

Roll-forward recovery starts from the checkpointed inode, whose i_xattr_nid still points to the old xattr node. f2fs_recover_inline_xattr() copies only the inline xattr area, and f2fs_update_inode() writes the old i_xattr_nid back. So the inode keeps the stale xattr node:

- The node block is never released, and fsck reports "nonzero bytes in xattr space after end of list".
- If the inline xattr list ends exactly at the end of the inline area, its terminator is read from the stale node, and the removed xattrs come back after recovery.

When the fsynced inode has no xattr node but the checkpointed one has, release the old xattr node as truncate_node() does: check its block address, invalidate the block and drop its node cache, which may still be dirty.

Fixes 28cdce0459cc ("f2fs: recover inline xattr data in roll-forward process")
[ sashal: Replaced newer node-cache helpers with f2fs_folio_put() and truncate_inode_pages_range(). ]
---
 fs/f2fs/node.c | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
fs/f2fs/node.c +39 -0
index 70593f95abfb5..e166c5a5d1703 100644
@@ -2883,6 +2883,45 @@ int f2fs_recover_inline_xattr(struct inode *inode, struct folio *folio)
 	f2fs_folio_wait_writeback(ifolio, NODE, true, true);
 	memcpy(dst_addr, src_addr, inline_size);
 update_inode:
+	/*
+	 * The xattr node of the checkpoint was removed before fsync, e.g. the
+	 * xattrs became small enough to fit inline. Release it as well, or
+	 * the inode keeps pointing to the stale xattrs.
+	 */
+	if (!ri->i_xattr_nid && F2FS_I(inode)->i_xattr_nid) {
+		struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
+		struct node_info ni;
+		int err;
+
+		err = f2fs_get_node_info(sbi, F2FS_I(inode)->i_xattr_nid,
+								&ni, false);
+		if (err) {
+			f2fs_folio_put(ifolio, true);
+			return err;
+		}
+
+		if (ni.blk_addr != NEW_ADDR &&
+		    !f2fs_is_valid_blkaddr(sbi, ni.blk_addr,
+					   DATA_GENERIC_ENHANCE)) {
+			f2fs_err_ratelimited(sbi,
+				"nat entry is corrupted, run fsck to fix it, ino:%u, nid:%u, blkaddr:%u",
+				ni.ino, ni.nid, ni.blk_addr);
+			set_sbi_flag(sbi, SBI_NEED_FSCK);
+			f2fs_handle_error(sbi, ERROR_INCONSISTENT_NAT);
+			f2fs_folio_put(ifolio, true);
+			return -EFSCORRUPTED;
+		}
+
+		f2fs_invalidate_blocks(sbi, ni.blk_addr, 1);
+		dec_valid_node_count(sbi, inode, false);
+		set_node_addr(sbi, &ni, NULL_ADDR, false);
+		/* drop the cached xattr node, which may be dirty */
+		truncate_inode_pages_range(NODE_MAPPING(sbi),
+				F2FS_BLK_TO_BYTES((loff_t)ni.nid),
+				F2FS_BLK_END_BYTES((loff_t)ni.nid));
+		f2fs_i_xnid_write(inode, 0);
+	}
+
 	f2fs_update_inode(inode, ifolio);
 	f2fs_folio_put(ifolio, true);
 	return 0;
Signature · 1 line
2.53.0
author maintainer
#503 lore raw

PATCH 497/507 media: ipu6: Rename pointer to firmware context

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Antti Laakso <[email protected]>

[ Upstream commit ac1a76fdf7e1815445c76d90ef688eff85cbb012 ]

The name fwcom is used to refer firmware communication context and firmware communication configuration. Try to avoid confusion and rename context variable.

Stable-dep-of: d3d9bc694fe0 ("media: ipu6: Fix firmware config leak on stream start")

---
 drivers/media/pci/intel/ipu6/ipu6-fw-isys.c   | 56 ++++++++++---------
 .../media/pci/intel/ipu6/ipu6-isys-video.c    |  4 +-
 drivers/media/pci/intel/ipu6/ipu6-isys.c      |  6 +-
 drivers/media/pci/intel/ipu6/ipu6-isys.h      |  5 +-
 4 files changed, 36 insertions(+), 35 deletions(-)
drivers/media/pci/intel/ipu6/ipu6-fw-isys.c +29 -27
index 62ed92ff1d303..a65e9f1aa1042 100644
@@ -32,7 +32,7 @@ static int handle_proxy_response(struct ipu6_isys *isys, unsigned int req_id)
 	struct ipu6_fw_isys_proxy_resp_info_abi *resp;
 	int ret;
 
-	resp = ipu6_recv_get_token(isys->fwcom, IPU6_BASE_PROXY_RECV_QUEUES);
+	resp = ipu6_recv_get_token(isys->fwctx, IPU6_BASE_PROXY_RECV_QUEUES);
 	if (!resp)
 		return 1;
 
@@ -42,7 +42,7 @@ static int handle_proxy_response(struct ipu6_isys *isys, unsigned int req_id)
 
 	ret = req_id == resp->request_id ? 0 : -EIO;
 
-	ipu6_recv_put_token(isys->fwcom, IPU6_BASE_PROXY_RECV_QUEUES);
+	ipu6_recv_put_token(isys->fwctx, IPU6_BASE_PROXY_RECV_QUEUES);
 
 	return ret;
 }
@@ -52,7 +52,7 @@ int ipu6_fw_isys_send_proxy_token(struct ipu6_isys *isys,
 				  unsigned int index,
 				  unsigned int offset, u32 value)
 {
-	struct ipu6_fw_com_context *ctx = isys->fwcom;
+	struct ipu6_fw_com_context *ctx = isys->fwctx;
 	struct device *dev = &isys->adev->auxdev.dev;
 	struct ipu6_fw_proxy_send_queue_token *token;
 	unsigned int timeout = 1000;
@@ -96,7 +96,7 @@ int ipu6_fw_isys_complex_cmd(struct ipu6_isys *isys,
 			     dma_addr_t dma_mapped_buf,
 			     size_t size, u16 send_type)
 {
-	struct ipu6_fw_com_context *ctx = isys->fwcom;
+	struct ipu6_fw_com_context *ctx = isys->fwctx;
 	struct device *dev = &isys->adev->auxdev.dev;
 	struct ipu6_fw_send_queue_token *token;
 
@@ -138,7 +138,7 @@ int ipu6_fw_isys_close(struct ipu6_isys *isys)
 	struct device *dev = &isys->adev->auxdev.dev;
 	int retry = IPU6_ISYS_CLOSE_RETRY;
 	unsigned long flags;
-	void *fwcom;
+	void *fwctx;
 	int ret;
 
 	/*
@@ -148,9 +148,9 @@ int ipu6_fw_isys_close(struct ipu6_isys *isys)
 	 * spinlock to wait the interrupt handler to be finished
 	 */
 	spin_lock_irqsave(&isys->power_lock, flags);
-	ret = ipu6_fw_com_close(isys->fwcom);
-	fwcom = isys->fwcom;
-	isys->fwcom = NULL;
+	ret = ipu6_fw_com_close(isys->fwctx);
+	fwctx = isys->fwctx;
+	isys->fwctx = NULL;
 	spin_unlock_irqrestore(&isys->power_lock, flags);
 	if (ret)
 		dev_err(dev, "Device close failure: %d\n", ret);
@@ -158,14 +158,14 @@ int ipu6_fw_isys_close(struct ipu6_isys *isys)
 	/* release probably fails if the close failed. Let's try still */
 	do {
 		usleep_range(400, 500);
-		ret = ipu6_fw_com_release(fwcom, 0);
+		ret = ipu6_fw_com_release(fwctx, 0);
 		retry--;
 	} while (ret && retry);
 
 	if (ret) {
 		dev_err(dev, "Device release time out %d\n", ret);
 		spin_lock_irqsave(&isys->power_lock, flags);
-		isys->fwcom = fwcom;
+		isys->fwctx = fwctx;
 		spin_unlock_irqrestore(&isys->power_lock, flags);
 	}
 
@@ -176,11 +176,11 @@ void ipu6_fw_isys_cleanup(struct ipu6_isys *isys)
 {
 	int ret;
 
-	ret = ipu6_fw_com_release(isys->fwcom, 1);
+	ret = ipu6_fw_com_release(isys->fwctx, 1);
 	if (ret < 0)
 		dev_warn(&isys->adev->auxdev.dev,
 			 "Device busy, fw_com release failed.");
-	isys->fwcom = NULL;
+	isys->fwctx = NULL;
 }
 
 static void start_sp(struct ipu6_bus_device *adev)
@@ -212,7 +212,7 @@ static int query_sp(struct ipu6_bus_device *adev)
 }
 
 static int ipu6_isys_fwcom_cfg_init(struct ipu6_isys *isys,
-				    struct ipu6_fw_com_cfg *fwcom,
+				    struct ipu6_fw_com_cfg *fwcom_cfg,
 				    unsigned int num_streams)
 {
 	unsigned int max_send_queues, max_sram_blocks, max_devq_size;
@@ -258,14 +258,16 @@ static int ipu6_isys_fwcom_cfg_init(struct ipu6_isys *isys,
 	if (!output_queue_cfg)
 		return -ENOMEM;
 
-	fwcom->input = input_queue_cfg;
-	fwcom->output = output_queue_cfg;
+	fwcom_cfg->input = input_queue_cfg;
+	fwcom_cfg->output = output_queue_cfg;
 
-	fwcom->num_input_queues = isys_fw_cfg->num_send_queues[type_proxy] +
+	fwcom_cfg->num_input_queues =
+		isys_fw_cfg->num_send_queues[type_proxy] +
 		isys_fw_cfg->num_send_queues[type_dev] +
 		isys_fw_cfg->num_send_queues[type_msg];
 
-	fwcom->num_output_queues = isys_fw_cfg->num_recv_queues[type_proxy] +
+	fwcom_cfg->num_output_queues =
+		isys_fw_cfg->num_recv_queues[type_proxy] +
 		isys_fw_cfg->num_recv_queues[type_dev] +
 		isys_fw_cfg->num_recv_queues[type_msg];
 
@@ -280,7 +282,7 @@ static int ipu6_isys_fwcom_cfg_init(struct ipu6_isys *isys,
 			isys_fw_cfg->buffer_partition.num_gda_pages[i] = 0;
 	}
 
-	/* FW assumes proxy interface at fwcom queue 0 */
+	/* FW assumes proxy interface at fwcom_cfg queue 0 */
 	for (i = 0; i < isys_fw_cfg->num_send_queues[type_proxy]; i++) {
 		input_queue_cfg[i].token_size =
 			sizeof(struct ipu6_fw_proxy_send_queue_token);
@@ -314,9 +316,9 @@ static int ipu6_isys_fwcom_cfg_init(struct ipu6_isys *isys,
 			IPU6_ISYS_SIZE_RECV_QUEUE;
 	}
 
-	fwcom->dmem_addr = isys->pdata->ipdata->hw_variant.dmem_offset;
-	fwcom->specific_addr = isys_fw_cfg;
-	fwcom->specific_size = sizeof(*isys_fw_cfg);
+	fwcom_cfg->dmem_addr = isys->pdata->ipdata->hw_variant.dmem_offset;
+	fwcom_cfg->specific_addr = isys_fw_cfg;
+	fwcom_cfg->specific_size = sizeof(*isys_fw_cfg);
 
 	return 0;
 }
@@ -325,23 +327,23 @@ int ipu6_fw_isys_init(struct ipu6_isys *isys, unsigned int num_streams)
 {
 	struct device *dev = &isys->adev->auxdev.dev;
 	int retry = IPU6_ISYS_OPEN_RETRY;
-	struct ipu6_fw_com_cfg fwcom = {
+	struct ipu6_fw_com_cfg fwcom_cfg = {
 		.cell_start = start_sp,
 		.cell_ready = query_sp,
 		.buttress_boot_offset = SYSCOM_BUTTRESS_FW_PARAMS_ISYS_OFFSET,
 	};
 	int ret;
 
-	ipu6_isys_fwcom_cfg_init(isys, &fwcom, num_streams);
+	ipu6_isys_fwcom_cfg_init(isys, &fwcom_cfg, num_streams);
 
-	isys->fwcom = ipu6_fw_com_prepare(&fwcom, isys->adev,
+	isys->fwctx = ipu6_fw_com_prepare(&fwcom_cfg, isys->adev,
 					  isys->pdata->base);
-	if (!isys->fwcom) {
+	if (!isys->fwctx) {
 		dev_err(dev, "isys fw com prepare failed\n");
 		return -EIO;
 	}
 
-	ret = ipu6_fw_com_open(isys->fwcom);
+	ret = ipu6_fw_com_open(isys->fwctx);
 	if (ret) {
 		dev_err(dev, "isys fw com open failed %d\n", ret);
 		return ret;
@@ -349,7 +351,7 @@ int ipu6_fw_isys_init(struct ipu6_isys *isys, unsigned int num_streams)
 
 	do {
 		usleep_range(400, 500);
-		if (ipu6_fw_com_ready(isys->fwcom))
+		if (ipu6_fw_com_ready(isys->fwctx))
 			break;
 		retry--;
 	} while (retry > 0);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c +2 -2
index 3ac48d2076da9..89eb265737d79 100644
@@ -1114,7 +1114,7 @@ int ipu6_isys_fw_open(struct ipu6_isys *isys)
 	 */
 	ipu6_cleanup_fw_msg_bufs(isys);
 
-	if (isys->fwcom) {
+	if (isys->fwctx) {
 		/*
 		 * Something went wrong in previous shutdown. As we are now
 		 * restarting isys we can safely delete old context.
@@ -1147,7 +1147,7 @@ void ipu6_isys_fw_close(struct ipu6_isys *isys)
 	isys->ref_count--;
 	if (!isys->ref_count) {
 		ipu6_fw_isys_close(isys);
-		if (isys->fwcom) {
+		if (isys->fwctx) {
 			isys->need_reset = true;
 			dev_warn(&isys->adev->auxdev.dev,
 				 "failed to close fw isys\n");
drivers/media/pci/intel/ipu6/ipu6-isys.c +3 -3
index 24db2763de544..e13fbbae8c98b 100644
@@ -1212,10 +1212,10 @@ static int isys_isr_one(struct ipu6_bus_device *adev)
 	u32 index;
 	u64 ts;
 
-	if (!isys->fwcom)
+	if (!isys->fwctx)
 		return 1;
 
-	resp = ipu6_fw_isys_get_resp(isys->fwcom, IPU6_BASE_MSG_RECV_QUEUES);
+	resp = ipu6_fw_isys_get_resp(isys->fwctx, IPU6_BASE_MSG_RECV_QUEUES);
 	if (!resp)
 		return 1;
 
@@ -1324,7 +1324,7 @@ static int isys_isr_one(struct ipu6_bus_device *adev)
 
 	ipu6_isys_put_stream(stream);
 leave:
-	ipu6_fw_isys_put_resp(isys->fwcom, IPU6_BASE_MSG_RECV_QUEUES);
+	ipu6_fw_isys_put_resp(isys->fwctx, IPU6_BASE_MSG_RECV_QUEUES);
 	return 0;
 }
 
drivers/media/pci/intel/ipu6/ipu6-isys.h +2 -3
index 7fb8cb820912b..0b139ab244312 100644
@@ -114,8 +114,7 @@ struct sensor_async_sd {
  * @csi2_rx_ctrl_cached: cached shared value between all CSI2 receivers
  * @streams_lock: serialise access to streams
  * @streams: streams per firmware stream ID
- * @fwcom: fw communication layer private pointer
- *         or optional external library private pointer
+ * @fwctx: fw communication layer context pointer
  * @phy_termcal_val: the termination calibration value, only used for DWC PHY
  * @need_reset: Isys requires d0i0->i3 transition
  * @ref_count: total number of callers fw open
@@ -136,7 +135,7 @@ struct ipu6_isys {
 	spinlock_t streams_lock;
 	struct ipu6_isys_stream streams[IPU6_ISYS_MAX_STREAMS];
 	int streams_ref_count[IPU6_ISYS_MAX_STREAMS];
-	void *fwcom;
+	void *fwctx;
 	u32 phy_termcal_val;
 	bool need_reset;
 	bool icache_prefetch;
Signature · 1 line
2.53.0
author maintainer
#504 lore raw

PATCH 498/507 media: ipu6: Fix firmware config leak on stream start

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: David Carlier <[email protected]>

[ Upstream commit d3d9bc694fe087c672c3ad5871984dc45cd9f425 ]

ipu6_isys_fwcom_cfg_init() runs on every first stream start and allocates the firmware config and queue configs with devm, so each STREAMON/STREAMOFF cycle leaks them. They are only needed until ipu6_fw_com_prepare() has copied them, so free them right after. Also check the return value, an allocation failure would otherwise make ipu6_fw_com_prepare() dereference a NULL queue config.

Fixes f625e8d7ffc1 ("media: intel/ipu6: input system ABI between firmware and driver")
---
 drivers/media/pci/intel/ipu6/ipu6-fw-isys.c | 34 +++++++++++++++------
 1 file changed, 24 insertions(+), 10 deletions(-)
drivers/media/pci/intel/ipu6/ipu6-fw-isys.c +24 -10
index a65e9f1aa1042..9f5bd9c4ddf91 100644
@@ -218,7 +218,6 @@ static int ipu6_isys_fwcom_cfg_init(struct ipu6_isys *isys,
 	unsigned int max_send_queues, max_sram_blocks, max_devq_size;
 	struct ipu6_fw_syscom_queue_config *input_queue_cfg;
 	struct ipu6_fw_syscom_queue_config *output_queue_cfg;
-	struct device *dev = &isys->adev->auxdev.dev;
 	int type_proxy = IPU6_FW_ISYS_QUEUE_TYPE_PROXY;
 	int type_dev = IPU6_FW_ISYS_QUEUE_TYPE_DEV;
 	int type_msg = IPU6_FW_ISYS_QUEUE_TYPE_MSG;
@@ -228,7 +227,6 @@ static int ipu6_isys_fwcom_cfg_init(struct ipu6_isys *isys,
 	struct ipu6_fw_isys_fw_config *isys_fw_cfg;
 	u32 num_in_message_queues;
 	unsigned int max_streams;
-	unsigned int size;
 	unsigned int i;
 
 	max_streams = isys->pdata->ipdata->max_streams;
@@ -236,7 +234,7 @@ static int ipu6_isys_fwcom_cfg_init(struct ipu6_isys *isys,
 	max_sram_blocks = isys->pdata->ipdata->max_sram_blocks;
 	max_devq_size = isys->pdata->ipdata->max_devq_size;
 	num_in_message_queues = clamp(num_streams, 1U, max_streams);
-	isys_fw_cfg = devm_kzalloc(dev, sizeof(*isys_fw_cfg), GFP_KERNEL);
+	isys_fw_cfg = kzalloc_obj(*isys_fw_cfg);
 	if (!isys_fw_cfg)
 		return -ENOMEM;
 
@@ -248,15 +246,14 @@ static int ipu6_isys_fwcom_cfg_init(struct ipu6_isys *isys,
 	isys_fw_cfg->num_recv_queues[type_dev] = 0;
 	isys_fw_cfg->num_recv_queues[type_msg] = 1;
 
-	size = sizeof(*input_queue_cfg) * max_send_queues;
-	input_queue_cfg = devm_kzalloc(dev, size, GFP_KERNEL);
+	input_queue_cfg = kzalloc_objs(*input_queue_cfg, max_send_queues);
 	if (!input_queue_cfg)
-		return -ENOMEM;
+		goto err_free_fw_cfg;
 
-	size = sizeof(*output_queue_cfg) * IPU6_N_MAX_RECV_QUEUES;
-	output_queue_cfg = devm_kzalloc(dev, size, GFP_KERNEL);
+	output_queue_cfg = kzalloc_objs(*output_queue_cfg,
+					IPU6_N_MAX_RECV_QUEUES);
 	if (!output_queue_cfg)
-		return -ENOMEM;
+		goto err_free_input_queue_cfg;
 
 	fwcom_cfg->input = input_queue_cfg;
 	fwcom_cfg->output = output_queue_cfg;
@@ -321,6 +318,20 @@ static int ipu6_isys_fwcom_cfg_init(struct ipu6_isys *isys,
 	fwcom_cfg->specific_size = sizeof(*isys_fw_cfg);
 
 	return 0;
+
+err_free_input_queue_cfg:
+	kfree(input_queue_cfg);
+err_free_fw_cfg:
+	kfree(isys_fw_cfg);
+
+	return -ENOMEM;
+}
+
+static void ipu6_isys_fwcom_cfg_free(struct ipu6_fw_com_cfg *fwcom_cfg)
+{
+	kfree(fwcom_cfg->specific_addr);
+	kfree(fwcom_cfg->output);
+	kfree(fwcom_cfg->input);
 }
 
 int ipu6_fw_isys_init(struct ipu6_isys *isys, unsigned int num_streams)
@@ -334,10 +345,13 @@ int ipu6_fw_isys_init(struct ipu6_isys *isys, unsigned int num_streams)
 	};
 	int ret;
 
-	ipu6_isys_fwcom_cfg_init(isys, &fwcom_cfg, num_streams);
+	ret = ipu6_isys_fwcom_cfg_init(isys, &fwcom_cfg, num_streams);
+	if (ret)
+		return ret;
 
 	isys->fwctx = ipu6_fw_com_prepare(&fwcom_cfg, isys->adev,
 					  isys->pdata->base);
+	ipu6_isys_fwcom_cfg_free(&fwcom_cfg);
 	if (!isys->fwctx) {
 		dev_err(dev, "isys fw com prepare failed\n");
 		return -EIO;
Signature · 1 line
2.53.0
author maintainer
#505 lore raw

PATCH 499/507 iommufd/iova_bitmap: Ensure that iova_bitmap_set() handles the full IOVA

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Andrea Parri <[email protected]>

[ Upstream commit e21952d72b4740f08a272d694cca223b6b0099ca ]

Generally userspace is going to step the dirty bitmap through the IOVA space. However if the bitmap ends in the middle of a large PTE this is problematic. The first step will clear the dirty bit and report dirty to the end of its bitmap while the second step will see the clear'd dirty and report clean for the start of the bitmap. If it happens this ends up losing dirties.

Further this function is missing bounds checking so if this does happen ther is a good chance it will write memory beyond what the userspace was expecting.

Return an error code if this illegal condition happens.

Fixes 58ccf0190d19 ("vfio: Add an IOVA bitmap support")
Assisted-by LLM
[ sashal: Added missing prerequisite error storage and propagation from the bitmap through the iterator to the ioctl. ]
---
 drivers/iommu/iommufd/io_pagetable.c |  2 +-
 drivers/iommu/iommufd/iova_bitmap.c  | 19 ++++++++++++++++++-
 include/uapi/linux/iommufd.h         |  6 ++++++
 3 files changed, 25 insertions(+), 2 deletions(-)
drivers/iommu/iommufd/io_pagetable.c +1 -1
index 283ab372e8da8..5ac736cf5bb5a 100644
@@ -589,7 +589,7 @@ iommu_read_and_clear_dirty(struct iommu_domain *domain,
 	arg.iopt = iopt;
 	arg.domain = domain;
 	arg.dirty = &dirty;
-	iova_bitmap_for_each(iter, &arg, __iommu_read_and_clear_dirty);
+	ret = iova_bitmap_for_each(iter, &arg, __iommu_read_and_clear_dirty);
 
 	if (!(flags & IOMMU_DIRTY_NO_CLEAR))
 		iommu_iotlb_sync(domain, &gather);
drivers/iommu/iommufd/iova_bitmap.c +18 -1
index dac3e657d498d..908c70f5362e0 100644
@@ -116,6 +116,9 @@ struct iova_bitmap {
 
 	/* length of the IOVA range for the whole bitmap */
 	size_t length;
+
+	/* first error from recording an IOVA range */
+	int err;
 };
 
 /*
@@ -384,7 +387,9 @@ static int iova_bitmap_advance_to(struct iova_bitmap *bitmap,
 int iova_bitmap_for_each(struct iova_bitmap *bitmap, void *opaque,
 			 iova_bitmap_fn_t fn)
 {
-	return fn(bitmap, bitmap->iova, bitmap->length, opaque);
+	int ret = fn(bitmap, bitmap->iova, bitmap->length, opaque);
+
+	return ret ? ret : bitmap->err;
 }
 EXPORT_SYMBOL_NS_GPL(iova_bitmap_for_each, "IOMMUFD");
 
@@ -404,6 +409,18 @@ void iova_bitmap_set(struct iova_bitmap *bitmap,
 	struct iova_bitmap_map *mapped = &bitmap->mapped;
 	unsigned long cur_bit, last_bit, last_page_idx;
 
+	/*
+	 * If the range cannot be recorded then the system call returns failure.
+	 * This is to prevent loosing dirties if userspace is expecting to step
+	 * the bitmap through the IOVA space.
+	 */
+	if (!length || length > bitmap->length || iova < bitmap->iova ||
+	    iova - bitmap->iova > bitmap->length - length) {
+		if (!bitmap->err)
+			bitmap->err = -EPROTO;
+		return;
+	}
+
 update_indexes:
 	if (unlikely(!iova_bitmap_mapped_range(mapped, iova, length))) {
 		/*
include/uapi/linux/iommufd.h +6 -0
index 5d47d1421c1fc..63a86354e822f 100644
@@ -871,6 +871,12 @@ enum iommufd_hwpt_get_dirty_bitmap_flags {
  * Walk the IOMMU pagetables for a given IOVA range to return a bitmap
  * with the dirty IOVAs. In doing so it will also by default clear any
  * dirty bit metadata set in the IOPTE.
+ *
+ * The IOVA range given must fully enclose any IOPTE. If the range starts or
+ * ends inside a dirty IOPTE then the ioctl will fail. This avoids partially
+ * reporting a dirty range.
+ *
+ * On failure the dirty state becomes unknown and the userspace must restart.
  */
 struct iommu_hwpt_get_dirty_bitmap {
 	__u32 size;
Signature · 1 line
2.53.0
author maintainer
#506 lore raw

PATCH 500/507 thermal: intel: int340x: Evaluate _TMP exclusively

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Ali Ahmet Memiş <[email protected]>

[ Upstream commit c4aae727beb23a736c15b8d53e219da29d791065 ]

On ThinkPad P1 Gen2 and P53, INT3403 _TMP switches the EC page selector without taking the mutex the battery methods use, so it must not run interleaved with them.

Evaluate _TMP with acpi_evaluate_integer_exclusive(), also where int3403 and processor_thermal probe for it.

---
 drivers/thermal/intel/int340x_thermal/int3403_thermal.c     | 3 +--
 .../thermal/intel/int340x_thermal/int340x_thermal_zone.c    | 6 +++++-
 .../intel/int340x_thermal/processor_thermal_device.c        | 2 +-
 3 files changed, 7 insertions(+), 4 deletions(-)
drivers/thermal/intel/int340x_thermal/int3403_thermal.c +1 -2
index 264c9bc8e6454..2262de1e14d95 100644
@@ -217,8 +217,7 @@ static int int3403_add(struct platform_device *pdev)
 	}
 
 
-	status = acpi_evaluate_integer(priv->adev->handle, "_TMP",
-				       NULL, &tmp);
+	status = acpi_evaluate_integer_exclusive(priv->adev->handle, "_TMP", NULL, &tmp);
 	if (ACPI_FAILURE(status)) {
 		status = acpi_evaluate_integer(priv->adev->handle, "PTYP",
 				       NULL, &priv->type);
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c +5 -1
index 965700ee69626..9451fea1f65c7 100644
@@ -18,7 +18,11 @@ static int int340x_thermal_get_zone_temp(struct thermal_zone_device *zone,
 	unsigned long long tmp;
 	acpi_status status;
 
-	status = acpi_evaluate_integer(d->adev->handle, "_TMP", NULL, &tmp);
+	/*
+	 * On some ThinkPads _TMP switches the EC page selector without
+	 * taking the mutex the battery methods use.
+	 */
+	status = acpi_evaluate_integer_exclusive(d->adev->handle, "_TMP", NULL, &tmp);
 	if (ACPI_FAILURE(status))
 		return -EIO;
 
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c +1 -1
index b0284c2e2e74d..9bdb65f54b6ae 100644
@@ -287,7 +287,7 @@ int proc_thermal_add(struct device *dev, struct proc_thermal_device *proc_priv)
 	if (ret)
 		return ret;
 
-	status = acpi_evaluate_integer(adev->handle, "_TMP", NULL, &tmp);
+	status = acpi_evaluate_integer_exclusive(adev->handle, "_TMP", NULL, &tmp);
 	if (ACPI_FAILURE(status)) {
 		/* there is no _TMP method, add local method */
 		if (intel_tcc_get_tjmax(-1) > 0)
Signature · 1 line
2.53.0
author maintainer
#507 lore raw

PATCH 501/507 intel_idle: Use 2-argument strscpy()

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Andy Shevchenko <[email protected]>

[ Upstream commit 2094ae12eed8e83dd91a631ac0a582fee5934c36 ]

Use 2-argument strscpy(), which is not only shorter but also provides an additional check that destination buffer is an array.

Stable-dep-of: 403524796685 ("intel_idle: Adjust state names and descriptions for _LPI states")

---
 drivers/idle/intel_idle.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/idle/intel_idle.c +2 -2
index 651408df9c24a..c5b65f7d7271c 100644
@@ -1906,7 +1906,7 @@ static void __init intel_idle_init_cstates_acpi_lpi(struct cpuidle_driver *drv)
 		state = &drv->states[drv->state_count++];
 
 		scnprintf(state->name, CPUIDLE_NAME_LEN, "C%d_LPI", index + 1);
-		strscpy(state->desc, lpi_state->desc, CPUIDLE_DESC_LEN);
+		strscpy(state->desc, lpi_state->desc);
 		state->exit_latency = lpi_state->wake_latency;
 		state->target_residency = lpi_state->min_residency;
 		state->flags = MWAIT2flg(lpi_state->address);
@@ -1956,7 +1956,7 @@ static void __init intel_idle_init_cstates_acpi_cst(struct cpuidle_driver *drv)
 		state = &drv->states[drv->state_count++];
 
 		snprintf(state->name, CPUIDLE_NAME_LEN, "C%d_ACPI", cstate);
-		strscpy(state->desc, cx->desc, CPUIDLE_DESC_LEN);
+		strscpy(state->desc, cx->desc);
 		state->exit_latency = cx->latency;
 		/*
 		 * For C1-type C-states use the same number for both the exit
Signature · 1 line
2.53.0
author maintainer
#508 lore raw

PATCH 502/507 intel_idle: Adjust state names and descriptions for _LPI states

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Rafael J. Wysocki <[email protected]>

[ Upstream commit 4035247966859152a6523bc041f81cb9905695a5 ]

The value of the _LPI "State Name" field is used as the description of the given idle state (that is, the value of its "desc" attribute in sysfs) which is not consistent with idle state descriptions used when the idle state information comes from an ACPI _CST object.

To rectify that, use the _LPI "State Name" field value as the value of the "name" sysfs attribute of a given idle state and use the MWAIT hint value from the _LPI register address value to derive the value of its "desc" sysfs attribute in analogy with the _CST case.

Fixes abc5c103c66d ("intel_idle: Add ACPI _LPI support")
Cc 7.3+ <[email protected]> # 7.3+
[ rjw: Adjusted scnprintf() format string, tweaked changelog ]
---
 Documentation/admin-guide/pm/intel_idle.rst | 12 +++++++-----
 drivers/idle/intel_idle.c                   |  9 +++++++--
 2 files changed, 14 insertions(+), 7 deletions(-)
Documentation/admin-guide/pm/intel_idle.rst +7 -5
index 996e5bd83c425..d1a6251790b80 100644
@@ -145,11 +145,13 @@ for the other idle state types (C2 and C3) the target residency value is 3 times
 the exit latency (again, that is because it reflects the target residency to
 exit latency ratio in the majority of cases for the processor models recognized
 by ``intel_idle``).  The name of the idle state (to be returned by the ``name``
-idle state attribute in ``sysfs``) is either "Cx_LPI" (if it comes from ``_LPI``
-processing) or "Cx_ACPI", where x is the index of that idle state in the final
-list (note that the minimum value of x is 1, because 0 is reserved for the
-"polling" state), and its target residency is based on the exit latency value.
-All of the idle states in the final list are enabled by default in this case.
+idle state attribute in ``sysfs``) either is equal to the state name value that
+comes from ``_LPI`` processing (with the possible fallback to "Cx_LPI" if the
+state name is not provided) or it is "Cx_ACPI", where x is the index of that
+idle state in the final list (note that the minimum value of x is 1, because 0
+is reserved for the "polling" state), and its target residency is based on the
+exit latency value.  All of the idle states in the final list are enabled by
+default in this case.
 
 
 .. _intel-idle-initialization:
drivers/idle/intel_idle.c +7 -2
index c5b65f7d7271c..ec951c148d4a2 100644
@@ -1905,8 +1905,13 @@ static void __init intel_idle_init_cstates_acpi_lpi(struct cpuidle_driver *drv)
 
 		state = &drv->states[drv->state_count++];
 
-		scnprintf(state->name, CPUIDLE_NAME_LEN, "C%d_LPI", index + 1);
-		strscpy(state->desc, lpi_state->desc);
+		if (strlen(lpi_state->desc) > 0)
+			strscpy(state->name, lpi_state->desc);
+		else
+			scnprintf(state->name, CPUIDLE_NAME_LEN, "C%d_LPI", index + 1);
+
+		scnprintf(state->desc, CPUIDLE_DESC_LEN, "ACPI LPI MWAIT 0x%02llx",
+			  lpi_state->address);
 		state->exit_latency = lpi_state->wake_latency;
 		state->target_residency = lpi_state->min_residency;
 		state->flags = MWAIT2flg(lpi_state->address);
Signature · 1 line
2.53.0
author maintainer
#509 lore raw

PATCH 503/507 f2fs: expose resizable_tail feature via sysfs

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Daeho Jeong <[email protected]>

[ Upstream commit 714f97f477fe2834ac9e9e66979ae52824b9f914 ]

Userspace has no way to know whether the kernel supports the resizable_tail_secno mount option before mounting. Passing it to a kernel without the support fails the mount with -EINVAL, and checking /sys/fs/f2fs/<disk>/pinned_area_max_secno requires an f2fs instance to be mounted already.

Export /sys/fs/f2fs/features/resizable_tail so that userspace can check the support before formatting or mounting a filesystem that relies on resizable_tail_secno, e.g. a filesystem whose tail is going to be shrunk online later.

Fixes c966d29e01bb ("f2fs: support resizable tail section and unify pinned allocation")
[ sashal: Placed resizable_tail entries after fserror because metadata_cache is absent. ]
---
 Documentation/ABI/testing/sysfs-fs-f2fs | 2 +-
 fs/f2fs/sysfs.c                         | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-fs-f2fs +1 -1
index 0cebc89799dd1..4f3915948176f 100644
@@ -271,7 +271,7 @@ Description:	Shows all enabled kernel features.
 		inode_crtime, lost_found, verity, sb_checksum,
 		casefold, readonly, compression, test_dummy_encryption_v2,
 		atomic_write, pin_file, encrypted_casefold, linear_lookup,
-		fserror.
+		fserror, resizable_tail.
 
 What:		/sys/fs/f2fs/<disk>/inject_rate
 Date:		May 2016
fs/f2fs/sysfs.c +2 -0
index 811e350a14302..5ee12547171cc 100644
@@ -1404,6 +1404,7 @@ F2FS_FEATURE_RO_ATTR(linear_lookup);
 #endif
 F2FS_FEATURE_RO_ATTR(packed_ssa);
 F2FS_FEATURE_RO_ATTR(fserror);
+F2FS_FEATURE_RO_ATTR(resizable_tail);
 
 #define ATTR_LIST(name) (&f2fs_attr_##name.attr)
 static struct attribute *f2fs_attrs[] = {
@@ -1574,6 +1575,7 @@ static struct attribute *f2fs_feat_attrs[] = {
 #endif
 	BASE_ATTR_LIST(packed_ssa),
 	BASE_ATTR_LIST(fserror),
+	BASE_ATTR_LIST(resizable_tail),
 	NULL,
 };
 ATTRIBUTE_GROUPS(f2fs_feat);
Signature · 1 line
2.53.0
author maintainer
#510 lore raw

PATCH 504/507 mm/mglru: use explicit tier range in read_ctrl_pos()

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Kairui Song <[email protected]>

[ Upstream commit c1d0e799321c817a22eab2abf2485250cffad7b4 ]

read_ctrl_pos() encodes the tier range in a single "tier" parameter via "tier % MAX_NR_TIERS" as the start and "min(tier, MAX_NR_TIERS-1)" as the end. This is hard to follow, maintain, or extend. Tier values 0..3 select a single tier, while tier == MAX_NR_TIERS selects the full range.

Replace it with explicit (tier_min, tier_max) parameters using a closed [tier_min, tier_max] interval, and add LRU_TIER_MIN and LRU_TIER_MAX for the tier bounds. The call sites now become self-documenting:

- get_tier_idx: (LRU_TIER_MIN, LRU_TIER_MIN) for the first tier,
(tier, tier) for each subsequent tier
- get_type_to_scan: (LRU_TIER_MIN, LRU_TIER_MAX) for the full range

No functional change.

Cc Axel Rasmussen <[email protected]>
Cc Chris Li <[email protected]>
Cc David Hildenbrand (Arm) <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Kairui Song <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Lian Wang <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Muchun Song <[email protected]>
Cc Qi Zheng <[email protected]>
Cc Roman Gushchin <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Wei Xu <[email protected]>
Cc Yuanchu Xie <[email protected]>
Cc Yu Zhao <[email protected]>
Cc Zi Yan <[email protected]>

Stable-dep-of: ca6e32f3f424 ("mm/vmscan: avoid false-positive -Wuninitialized warning, again")

---
 include/linux/mmzone.h |  2 ++
 mm/vmscan.c            | 18 ++++++++++--------
 2 files changed, 12 insertions(+), 8 deletions(-)
include/linux/mmzone.h +2 -0
index 94f9c3ff54160..da8dd04fb462a 100644
@@ -492,6 +492,8 @@ enum lruvec_flags {
  * folio->flags, masked by LRU_REFS_MASK.
  */
 #define MAX_NR_TIERS		4U
+#define LRU_TIER_MIN		0U
+#define LRU_TIER_MAX		(MAX_NR_TIERS - 1)
 
 #ifndef __GENERATING_BOUNDS_H
 
mm/vmscan.c +10 -8
index 963cdd67039d1..8ec8fdede5dd8 100644
@@ -3194,8 +3194,8 @@ struct ctrl_pos {
 	int gain;
 };
 
-static void read_ctrl_pos(struct lruvec *lruvec, int type, int tier, int gain,
-			  struct ctrl_pos *pos)
+static void read_ctrl_pos(struct lruvec *lruvec, int type, int tier_min,
+			  int tier_max, int gain, struct ctrl_pos *pos)
 {
 	int i;
 	struct lru_gen_folio *lrugen = &lruvec->lrugen;
@@ -3204,7 +3204,7 @@ static void read_ctrl_pos(struct lruvec *lruvec, int type, int tier, int gain,
 	pos->gain = gain;
 	pos->refaulted = pos->total = 0;
 
-	for (i = tier % MAX_NR_TIERS; i <= min(tier, MAX_NR_TIERS - 1); i++) {
+	for (i = tier_min; i <= tier_max; i++) {
 		pos->refaulted += lrugen->avg_refaulted[type][i] +
 				  atomic_long_read(&lrugen->refaulted[hist][type][i]);
 		pos->total += lrugen->avg_total[type][i] +
@@ -4808,9 +4808,9 @@ static int get_tier_idx(struct lruvec *lruvec, int type)
 	 * This value is chosen because any other tier would have at least twice
 	 * as many refaults as the first tier.
 	 */
-	read_ctrl_pos(lruvec, type, 0, 2, &sp);
-	for (tier = 1; tier < MAX_NR_TIERS; tier++) {
-		read_ctrl_pos(lruvec, type, tier, 3, &pv);
+	read_ctrl_pos(lruvec, type, LRU_TIER_MIN, LRU_TIER_MIN, 2, &sp);
+	for (tier = LRU_TIER_MIN + 1; tier <= LRU_TIER_MAX; tier++) {
+		read_ctrl_pos(lruvec, type, tier, tier, 3, &pv);
 		if (!positive_ctrl_err(&sp, &pv))
 			break;
 	}
@@ -4831,8 +4831,10 @@ static int get_type_to_scan(struct lruvec *lruvec, int swappiness)
 	 * Compare the sum of all tiers of anon with that of file to determine
 	 * which type to scan.
 	 */
-	read_ctrl_pos(lruvec, LRU_GEN_ANON, MAX_NR_TIERS, swappiness, &sp);
-	read_ctrl_pos(lruvec, LRU_GEN_FILE, MAX_NR_TIERS, MAX_SWAPPINESS - swappiness, &pv);
+	read_ctrl_pos(lruvec, LRU_GEN_ANON, LRU_TIER_MIN, LRU_TIER_MAX,
+		      swappiness, &sp);
+	read_ctrl_pos(lruvec, LRU_GEN_FILE, LRU_TIER_MIN, LRU_TIER_MAX,
+		      MAX_SWAPPINESS - swappiness, &pv);
 
 	return positive_ctrl_err(&sp, &pv);
 }
Signature · 1 line
2.53.0
author maintainer
#511 lore raw

PATCH 505/507 mm/vmscan: avoid false-positive -Wuninitialized warning, again

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Arnd Bergmann <[email protected]>

[ Upstream commit ca6e32f3f4240d0335775a11afc21e0451dd8d8f ]

I previously worked around a false-postive gcc-16 warning in the get_tier_idx() function, by adding a fake initializer. This happens with the -fsanitize=bounds sanitizer when the compiler creates a specialized variant of isolate_folios():

In function 'get_tier_idx',
inlined from 'isolate_folios.constprop' at mm/vmscan.c:4982:9:
mm/vmscan.c:4934:9: error: 'sp.refaulted' is used uninitialized [-Werror=uninitialized]

 4934 |         read_ctrl_pos(lruvec, type, LRU_TIER_MIN, LRU_TIER_MIN, 2, &sp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

mm/vmscan.c: In function 'isolate_folios.constprop':
mm/vmscan.c:4946:25: note: 'sp.refaulted' was declared here
4946 | struct ctrl_pos sp, pv = {};
| ^~

Adding another "= {}" would solve the problem as well, but to prevent this from happening again after the next code refactoring, try instead to prevent this by forbidding interprocedural optimizations on this function.

Fixes 3de705a43a46 ("mm/vmscan: avoid false-positive -Wuninitialized warning")
Cc Axel Rasmussen <[email protected]>
Cc Baolin Wang <[email protected]>
Cc Baoquan He <[email protected]>
Cc Barry Song <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Kairui Song <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Wei Xu <[email protected]>
Cc Yuanchu Xie <[email protected]>
---
 mm/vmscan.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
mm/vmscan.c +7 -4
index 8ec8fdede5dd8..88fd31d135853 100644
@@ -3194,8 +3194,11 @@ struct ctrl_pos {
 	int gain;
 };
 
-static void read_ctrl_pos(struct lruvec *lruvec, int type, int tier_min,
-			  int tier_max, int gain, struct ctrl_pos *pos)
+/*
+ * __noipa works around gcc-16 warning for uninitialized use of pos->refaulted
+ */
+static void __noipa read_ctrl_pos(struct lruvec *lruvec, int type, int tier_min,
+				  int tier_max, int gain, struct ctrl_pos *pos)
 {
 	int i;
 	struct lru_gen_folio *lrugen = &lruvec->lrugen;
@@ -4801,7 +4804,7 @@ static int scan_folios(unsigned long nr_to_scan, struct lruvec *lruvec,
 static int get_tier_idx(struct lruvec *lruvec, int type)
 {
 	int tier;
-	struct ctrl_pos sp, pv = {};
+	struct ctrl_pos sp, pv;
 
 	/*
 	 * To leave a margin for fluctuations, use a larger gain factor (2:3).
@@ -4820,7 +4823,7 @@ static int get_tier_idx(struct lruvec *lruvec, int type)
 
 static int get_type_to_scan(struct lruvec *lruvec, int swappiness)
 {
-	struct ctrl_pos sp, pv = {};
+	struct ctrl_pos sp, pv;
 
 	if (swappiness <= MIN_SWAPPINESS + 1)
 		return LRU_GEN_FILE;
Signature · 1 line
2.53.0
author maintainer
#512 lore raw

PATCH 506/507 f2fs: fix to use bio_in_atomic() in f2fs_write_end_io()

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Chao Yu <[email protected]>

[ Upstream commit e4582e5f3b439228d4e900edcf8225aa89be32b4 ]

f2fs_write_end_io() uses in_atomic() to decide whether a write bio which exceeds max_atc_write_bio_size or max_atc_write_bio_entry_cnt should be completed in sbi->wq rather than in the current context.

However, in_atomic() is not meant to be used outside core kernel code (checkpatch.pl warns about it), as it only looks at preempt_count(): it misses irqs-disabled and RCU read-side critical sections, and on kernels without CONFIG_PREEMPT_COUNT it cannot see spinlock-held sections at all. In those contexts, a large write bio will still be completed inline, which defeats the purpose of the above knobs.

The block layer provides bio_in_atomic() for exactly this purpose, it checks rcu_preempt_depth() and preemptible(), and conservatively returns true if CONFIG_PREEMPT_COUNT is disabled, let's use it instead. The difference is as below:

Context | in_atomic() | bio_in_atomic()
-------------------------------------+----------------+----------------

 Hard IRQ / softirq                   | true           | true
 IRQs disabled, preempt count 0       | false (missed) | true
 RCU read lock (CONFIG_PREEMPTION)    | false (missed) | true
 Kernel w/o CONFIG_PREEMPT_COUNT      | IRQ ctx only   | always true

Note that on kernels without CONFIG_PREEMPT_COUNT, write bios exceeding the thresholds will always be offloaded to sbi->wq, since there is no way to tell whether the current context is atomic. The thresholds default to UINT_MAX, so the default behavior is not changed.

Fixes 3de6b8094115 ("f2fs: Run f2fs_write_end_io() asynchronously")
[ sashal: Retained the bio-size check without the entry-count condition because the required fields are absent. ]
---
 fs/f2fs/data.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/f2fs/data.c +2 -1
index cc601b65163be..e0abc159b796c 100644
@@ -400,7 +400,8 @@ static void f2fs_write_end_io(struct bio *bio)
 
 	sbi = bio->bi_private;
 
-	if (in_atomic() && bio->bi_iter.bi_size > sbi->max_atc_write_bio_size) {
+	if (bio_in_atomic() &&
+	    bio->bi_iter.bi_size > sbi->max_atc_write_bio_size) {
 		struct work_struct *w;
 
 		w = &container_of(bio, struct f2fs_bio, bio)->work;
Signature · 1 line
2.53.0
author maintainer
#513 lore raw

PATCH 507/507 ASoC: amd: yc: Add DMI quirk for HP OmniBook 3 Laptop 16-by0xxx

In reply to Greg Kroah-Hartman

7.3-stable review patch. If anyone has any objections, please let me know.

------------------

From: Gianluca Balboni <[email protected]>

[ Upstream commit 1e73257dff33ff851af60d5bb00d73893a8b6dc8 ]

The HP OmniBook 3 Laptop 16-by0xxx (board ID 8EE3) has an internal DMIC connected to the AMD ACP6x audio coprocessor. The BIOS does not set the AcpDmicConnected _DSD property or the _WOV method, and the board is missing from yc_acp_quirk_table[], so acp6x_probe() returns -ENODEV and no DMIC capture device is registered.

Add a DMI quirk entry for this model to enable ACP DMIC support.

[ sashal: Adjusted DMI table insertion context to place the unchanged entry after 8BD6 because the upstream 8DC2 entry is absent. ]
---
 sound/soc/amd/yc/acp6x-mach.c | 7 +++++++
 1 file changed, 7 insertions(+)
sound/soc/amd/yc/acp6x-mach.c +7 -0
index 1be8504571ad3..96b0bfeddc061 100644
@@ -745,6 +745,13 @@ static const struct dmi_system_id yc_acp_quirk_table[] = {
 			DMI_MATCH(DMI_BOARD_NAME, "8BD6"),
 		}
 	},
+	{
+		.driver_data = &acp6x_card,
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "HP"),
+			DMI_MATCH(DMI_BOARD_NAME, "8EE3"),
+		}
+	},
 	{
 		.driver_data = &acp6x_card,
 		.matches = {
Signature · 1 line
2.53.0
Tested-by on the v1 series
#516 lore raw
In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.3.5 release. There are 507 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sun, 15 Nov 2026 15:36:17 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 8 lines
	https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.3.5-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.3.y
and the diffstat can be found below.

thanks,

greg k-h

On ARCH_BRCMSTB using 32-bit and 64-bit ARM kernels, build tested on BMIPS_GENERIC:

Signature · 1 line
Florian
Tested-by on the v1 series
#517 lore raw
In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.3.5 release. There are 507 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sun, 15 Nov 2026 15:36:17 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 9 lines
	https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.3.5-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.3.y
and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted on my test system. No dmesg regressions.

thanks,
-- Shuah

Tested-by on the v1 series
#518 lore raw
In reply to Greg Kroah-Hartman

Hi Greg

Quoted 10 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.3.5 release. There are 507 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sun, 15 Nov 2026 15:36:17 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 9 lines
        https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.3.5-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.3.y
and the diffstat can be found below.

thanks,

greg k-h

Linux version 7.3.5-rc1 tested.

Build successfully completed.
Boot successfully completed.
No dmesg regressions.
Video output normal.
Sound output normal.

Lenovo ThinkPad X1 Carbon Gen10(Intel i7-1260P(x86_64) arch linux)

[    0.000000] Linux version 7.3.5-rc1rv-g2a640ccd9d0b

(takeshi@ThinkPadX1Gen10J0764) (gcc (GCC) 16.2.1 20260810, GNU ld (GNU Binutils) 2.47) #1 SMP PREEMPT_DYNAMIC Sat Nov 14 06:49:53 JST 2026

Tested-by on the v1 series
#519 lore raw
In reply to Greg Kroah-Hartman
Quoted 2,013 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.3.5 release. There are 507 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sun, 15 Nov 2026 15:36:17 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

	https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.3.5-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.3.y
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <[email protected]>

    Linux 7.3.5-rc1

Gianluca Balboni <[email protected]>

    ASoC: amd: yc: Add DMI quirk for HP OmniBook 3 Laptop 16-by0xxx

Chao Yu <[email protected]>
f2fs: fix to use bio_in_atomic() in f2fs_write_end_io()

Arnd Bergmann <[email protected]>
mm/vmscan: avoid false-positive -Wuninitialized warning, again

Kairui Song <[email protected]>
mm/mglru: use explicit tier range in read_ctrl_pos()

Daeho Jeong <[email protected]>
f2fs: expose resizable_tail feature via sysfs

Rafael J. Wysocki <[email protected]>
intel_idle: Adjust state names and descriptions for _LPI states

Andy Shevchenko <[email protected]>
intel_idle: Use 2-argument strscpy()

Ali Ahmet Memiş <[email protected]>

    thermal: intel: int340x: Evaluate _TMP exclusively

Andrea Parri <[email protected]>
iommufd/iova_bitmap: Ensure that iova_bitmap_set() handles the full IOVA

David Carlier <[email protected]>
media: ipu6: Fix firmware config leak on stream start

Antti Laakso <[email protected]>
media: ipu6: Rename pointer to firmware context

Daeho Jeong <[email protected]>
f2fs: release a removed xattr node in roll-forward recovery

Miquel Raynal <[email protected]>
clk: nuvoton: ma35d1: Add missing WDT/WWDT parent clocks

Miquel Raynal <[email protected]>
dt-bindings: clock: ma35d1: Add missing WDT/WWDT parent clocks

Miquel Raynal <[email protected]>
dt-bindings: clock: ma35d1: Drop CLK_MAX_IDX define

Miquel Raynal <[email protected]>
clk: nuvoton: ma35d1: Keep the clock count in the driver

Sumit Kumar <[email protected]>
PCI: dwc: Set DMA_BYPASS bit in outbound IATU CTRL2 register

Ali Ahmet Memiş <[email protected]>
ACPI: battery: Evaluate battery methods exclusively

Ali Ahmet Memiş <[email protected]>
ACPI: utils: Add exclusive AML evaluation helpers

Chao Yu <[email protected]>
f2fs: fix to invalidate curseg if change_curseg() fails

Vladimir Oltean <[email protected]>
PCI: cadence: Preserve all error codes in cdns_plat_pcie_probe()

Linmao Li <[email protected]>
PCI: cadence: Store the core controller in platform drvdata

[email protected] <[email protected]>
PCI: cadence: Remove device links to PHY

Hengyu Liang <[email protected]>
erofs: fix metadata reads at the end of file-backed images

Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Restore the codec device type on unbind

Peter Ujfalusi <[email protected]>
ASoC: hdac_hda: Allocate the private data at codec driver bind

Guixin Liu <[email protected]>
nvme-tcp: Validate the queue state under the queue lock in the address attribute

Chao Yu <[email protected]>
f2fs: fix to avoid potential reference count leak in do_garbage_collect()

Marc Zyngier <[email protected]>
KVM: arm64: vgic: Stop the target vcpu when disabling LPIs

Arnaldo Carvalho de Melo <[email protected]>
perf evsel: Close the fds opened so far when disabling missing features

Hui Su <[email protected]>
perf evsel: Restrict incremental open error unwind

Kaixuan Li <[email protected]>
f2fs: bound the SIT/NAT bitmaps by the checkpoint pack

Daeho Jeong <[email protected]>
f2fs: return -EIO for a lost inode block after cp_error

Chao Yu <[email protected]>
f2fs: zone: fix to avoid bio split on sequential zone

Vincent Donnefort <[email protected]>
KVM: arm64: Use kvm_s2_fault_vma_info in pkvm_mem_abort()

Bartosz Golaszewski <[email protected]>
dmaengine: qcom: bam_dma: free interrupt before the clock in error path

Vishnu Santhosh <[email protected]>
dmaengine: qcom: bam_dma: Defer IRQ trigger type to device tree

Salvatore Dipietro <[email protected]>
mm/page_alloc: avoid direct reclaim and compaction for costly __GFP_NORETRY allocations

Mehmet Fide <[email protected]>
wifi: rtw88: widen the ATIM window while an AP interface is up

Mehmet Fide <[email protected]>
wifi: rtw88: usb: only let the frames a dozing station needs use the after-DTIM queue

Mehmet Fide <[email protected]>
wifi: rtw88: usb: bound what the driver feeds the after-DTIM queue

Mehmet Fide <[email protected]>
wifi: rtw88: usb: route bmc frames via the high queue only for DTIM delivery

Martin Belanger <[email protected]>
nvme-tcp: skip TLS control records while waiting for the ICResp

Chris Mason <[email protected]>
mm/shmem: honour F_SEAL_EXEC when an ACL is set

Lorenzo Stoakes (ARM) <[email protected]>

    mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows

Dave Hansen <[email protected]>
mm: add RCU-based VMA lookup helper that waits for writers

David Hildenbrand (Arm) <[email protected]>
mm/userfaultfd: only allocate anon_vma in CoW mappings

James Fairweather <[email protected]>
platform/chrome: cros_usbpd_notify: Only use drvdata when parent is GOOG0004

Hemanth Selam <[email protected]>
platform/chrome: Fix typos in comments

Yuejie Shi <[email protected]>
fs/ntfs3: validate the EA value length in ntfs_read_ea()

Jun Yang <[email protected]>
sctp: re-point retained control chunks on association migration

David Lee <[email protected]>
sctp: hold shkey across socket migration

Jared Wuerzburger <[email protected]>
ALSA: hda/realtek: Fix internal mic on Minisforum V3 and V3 SE

Saim Masood <[email protected]>
ALSA: hda/realtek: Fix speakers on ASUS ExpertBook PM3606CHA

Chao Yu <[email protected]>
f2fs: fix to check continuousness in f2fs_sync_meta_pages() correctly

Chao Yu <[email protected]>

    f2fs: fix to avoid folio->mapping dereference in is_{meta, node}_folio()

Runyu Xiao <[email protected]>
ALSA: usb-audio: Protect Roland control activation

Nicholas Hobson <[email protected]>
ALSA: usb-audio: keep MIDI input running for Roland TD-11

Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix SBGGR10 Bayer pattern

Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix ISC_PFG_CFG0_BPS macro name typo

Fuad Tabba <[email protected]>
KVM: arm64: Use kvm_s2_fault_vma_info in gmem_abort()

Vincent Donnefort <[email protected]>
KVM: arm64: Pass kvm_s2_fault_desc to fault_supports_stage2_huge_mapping()

Balakrishnan Sambath <[email protected]>
media: microchip-isc: fix WB offset and gain register field masking

Balakrishnan Sambath <[email protected]>
media: microchip-isc: store the unshifted PFE_CFG0 BPS value

Cheng Ming Lin <[email protected]>
mtd: spi-nor: macronix: Restore fallback parameters for MX25L12805D

Richard Fitzgerald <[email protected]>
ASoC: cs35l56: Wait for firmware timer expiry before system suspend

Jason Gunthorpe <[email protected]>
iommu/arm-smmu-v3: Handle ARM erratum for CONT under invalidation with SVA

Zhao Gongyi <[email protected]>
ata: libata-scsi: reject data-in commands with a data-out buffer

Sven Eckelmann <[email protected]>
batman-adv: tt: only update flags for TT events

Sven Eckelmann <[email protected]>
batman-adv: tt: send ROAM_ADV on each roamed back client

Sven Eckelmann <[email protected]>
batman-adv: tt: clear ROAM flag when re-adding a pending local client

Sven Eckelmann <[email protected]>
batman-adv: tt: only transmit local ROAM flag together with DEL

Ido Schimmel <[email protected]>
vxlan: Stop rejecting dynamic FDB entries with a nexthop ID

Guanglei Zhu <[email protected]>
ceph: clamp the inline data length in ceph_fill_inline_data()

Suravee Suthikulpanit <[email protected]>
iommu/amd: Force device table to maximum size

Chris Mason <[email protected]>
x86/mm: Fix global ASID handed out to two processes

Marco Ziliani <[email protected]>
ata: libata-pmp: disable the SEMB port on Marvell 88SM9705

Kiryl Shutsemau (Meta) <[email protected]>
arm64: sdei: Preserve the interrupted context's exception registers

Kiryl Shutsemau (Meta) <[email protected]>
arm64: sdei: Run the event handler on the kernel vectors

Thorsten Blum <[email protected]>
x86/boot: Fix off-by-one error in sme_clear_pgd()

Jinjie Ruan <[email protected]>
arm64: kexec_file: Fix elf_headers memory leak in retry loop

Kevin Mitchell <[email protected]>
iommu/amd: remove obsolete domain pointer warning on release

Akshay Jindal <[email protected]>
iommu/amd: Skip non-IVMD entries when parsing IVRS memory definitions

Breno Leitao <[email protected]>
x86/nmi: Ignore negative NMI handler durations

Daehyeon Ko <[email protected]>
sched/fair: Clear throttle state when leaving the fair class

Danish Khateeb <[email protected]>
perf/core: Don't send SIGTRAP after exec removed the event

Shao Mingyin <[email protected]>
nvmet: bound the traddr and trsvcid configfs writes

Qiliang Yuan <[email protected]>
nvme: wait for SRCU readers before splicing the namespace list

Qiliang Yuan <[email protected]>
srcu: Add list_splice_init_srcu()

Imre Kaloz <[email protected]>
MIPS: sgi-ip32: Leave MACE PCI control alone in config accesses

Imre Kaloz <[email protected]>
MIPS: sgi-ip32: Mask MACE PCI interrupts in CRIME only

Imre Kaloz <[email protected]>
MIPS: mm: Fix the cache error vector jump for XKPHYS kernels

Matthias Goergens <[email protected]>
udf: don't use eloc after the end of the unallocated space table

Matthias Goergens <[email protected]>
udf: fix preallocation discarding before an empty allocation extent

Matthias Goergens <[email protected]>
udf: check the unallocated space table when it is loaded

Matthias Goergens <[email protected]>
udf: don't let the extent type hide an exhausted free-space table extent

Kyle Zeng <[email protected]>
mptcp: pm: kernel: use RCU to free endpoint listeners

Tvrtko Ursulin <[email protected]>
drm/sched: Adjust run-queue when changing priority at runtime

Tvrtko Ursulin <[email protected]>
drm/sched: Fix out of bounds entity priority check

Christian Gmeiner <[email protected]>
drm/etnaviv: Flush the tile status cache through both the PE and BLT

Christian Gmeiner <[email protected]>
drm/etnaviv: Fix NULL dereference on unbind without PPU flop reset

James Clark <[email protected]>
net: ethernet: ti: am65-cpsw-nuss: Enable timestamping of unicast PTP packets

Ray Zhang <[email protected]>
net: count last skb of each sk_backlog pass in __release_sock()

Bryam Vargas <[email protected]>
net/smc: don't spin in smc_rx_recvmsg() while a pipe holds spliced data

Hungyu Lin <[email protected]>
ext2: preserve IOMAP_F_DIRTY for extending direct writes

Sinan Turunc <[email protected]>
ALSA: usx2y: Guard the playback copy

Sinan Turunc <[email protected]>
ALSA: usx2y: Require a buffer of two URBs

Wentao Liang <[email protected]>
ALSA: caiaq: free the EP4 URB when input setup fails

Sinan Turunc <[email protected]>
ALSA: line6: Reject capture buffers smaller than two packets

Mohamed Yassine Jebabli <[email protected]>
ALSA: hda/tas2781: Only accept CRC-less V1 data if all entries are valid

Alexandr <[email protected]>

    ALSA: hda/realtek: Enable mute and mic-mute LEDs on HP ENVY 17-cr0xxx

Yuqiang Sun <[email protected]>
ALSA: usb-audio: qcom: Check the return value of qmi_handle_init()

YuanZhe Liu <[email protected]>
ALSA: usx2y: Refuse a retried DSP load after a failure

YuanZhe Liu <[email protected]>
ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close

Alex Kazinsky <[email protected]>
ALSA: cs46xx: Handle SCB creation failures before dereferencing

Chris Simpson <[email protected]>
ALSA: hda/realtek: Enable bass speakers on Alienware m17 R3

HyeongJun An <[email protected]>
ALSA: ump: Fix dropped data bytes at UMP System message conversion

Ilia Mirkin <[email protected]>
drm/nouveau/devinit/gf100-: try to avoid double-running vbios scripts

Finn Zeruhn <[email protected]>
drm/dp: keep MOT set between messages when no_zero_sized is set

Rosen Penev <[email protected]>
drm/nouveau/nvkm: clear use.enabled when subdev init fails

Hengyu Liang <[email protected]>
l2tp: only return sessions of the given tunnel in l2tp_session_get()

Amir Goldstein <[email protected]>
selftests/fscontext_ns: expect EINVAL for overlay descendant userns create

Chris Mason <[email protected]>
ovl: look up the index by the decoded origin

Sasha Levin <[email protected]>
nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for KIOXIA XG10d

Zhao Gongyi <[email protected]>
arm64: mm: validate /dev/mem mmap ranges without overflow

Wei Wang <[email protected]>
arm64: suspend: Save and restore TPIDR2_EL0 across CPU suspend

Ewan D. Milne <[email protected]>
nvmet: don't return memory contents beyond valid data when reading ANA log page

Jesse Zhang <[email protected]>
drm/amdgpu: don't drop the gang dependency fence twice

renpanpan <[email protected]>
drm/amdgpu: Only enable HDMI audio if display supports it

Jesse Zhang <[email protected]>
drm/amdgpu: don't walk the CS chunks when allocating them failed

Jesse Zhang <[email protected]>
drm/amdgpu: rewrite all PTEs of the BOs after a VM reset

Jesse Zhang <[email protected]>
drm/amdgpu: unlock the VM and BO when attaching a KFD BO fails

Jesse Zhang <[email protected]>
drm/amdgpu: drop the dma-buf reference when a KFD import fails

Hugo Sales <[email protected]>
drm/amdgpu: Clamp the ATIF backlight curve to its 99 points

Erhan Bilgili <[email protected]>
drm/amdgpu: Report MES ring wait timeouts.

Erhan Bilgili <[email protected]>
drm/amdgpu: Fix duplicate dependency fence releases

Kevin Wang <[email protected]>
drm/amd/pm: populate unique ID for smu 13.0.7

Melissa Wen <[email protected]>
drm/amd/display: Signal PQ EOTF in FreeSync infopacket for DP HDR

Mikhail Gavrilov <[email protected]>
drm/amd/display: set allow_freesync before validating a new stream

Kylie C <[email protected]>
drm/amd/display: Don't select zero V_TOTAL_MIN/MAX on seamless boot

Matthew Schwartz <[email protected]>
drm/amd/display: Keep the nominal vtotal while VRR is inactive

Misha Nasledov <[email protected]>
drm/amd/display: Drop clock requirements on DCN32 when no displays are active

Roman Demidov <[email protected]>
drm/amd/display: Fix NULL deref in dcn401_update_clocks_update_dtb_dto

Jesse Zhang <[email protected]>
drm/amdgpu/gfx12: disallow GFXOFF while updating the SPM VMID

Roman Li <[email protected]>
drm/amd/display: Reset DET of HUBPs without a plane before outstanding updates

Alex Hung <[email protected]>
drm/amd/display: Avoid closing unowned DDC pins

Milan Milicevic <[email protected]>
drm/amdgpu: publish IH enabled before PSP programs IH_RB_CNTL

Kent Russell <[email protected]>
drm/amdgpu: Ensure that harvest information gets set

Prike Liang <[email protected]>
drm/amdgpu: stop the schedulers before preparing the GPU reset

Milan Milicevic <[email protected]>
drm/amdgpu: clear RB_OVERFLOW bit when enabling interrupts for navi10_ih

Prike Liang <[email protected]>
drm/amdgpu: finish GPU recovery callbacks before restarting schedulers

Wayne Lin <[email protected]>
drm/amd/display: add missing CRC engine 1 registers

Jesse Zhang <[email protected]>
drm/amdgpu/userq: validate the moved individual BOs on restore

Dariusz Marcinkiewicz <[email protected]>
drm/amdgpu: check amdgpu_vm_ready() in dma-buf move notify

Prike Liang <[email protected]>
drm/amdgpu/userq: wait for GPU reset before mapping or unmapping queues

Jesse Zhang <[email protected]>
drm/amdkfd: use the queue's process info for the WPTR BO eviction fence

Jesse Zhang <[email protected]>
drm/amdgpu: keep the CS user fence BO in GTT

Jesse Zhang <[email protected]>
drm/amdgpu: parse CS IBs at the BO offset their VA mapping starts at

Jesse Zhang <[email protected]>
drm/amdgpu: sign extend the addresses GEM_OP(GET_MAPPING_INFO) returns

Ce Sun <[email protected]>
drm/amdgpu: skip RAS error count reset in debug mode

Bas Nieuwenhuizen <[email protected]>
drm/amdgpu: Check cs flags.

Jarkko Sakkinen <[email protected]>
nvme-keyring: Add a missing key_put() call to nvme_tls_key_lookup()

Yitang Yang <[email protected]>
ublk: add missing DEL_DEV_ASYNC to unprivileged permission check

Yilin Zhang <[email protected]>
mptcp: do not use Fast Open on MP_JOIN subflows

Daehyeon Ko <[email protected]>
vhost/vsock: size receive SKBs from declared payload

Alexei Starovoitov <[email protected]>
net: reject a negative TCP header offset in qdisc_pkt_len_segs_init()

Amir Goldstein <[email protected]>
ovl: inherit FMODE_NONOTIFY when opening directory realfiles

Jamal Hadi Salim <[email protected]>

    net/sched: clamp skb->queue_mapping before indexing the tx queue

Chris Mason <[email protected]>
ovl: fix whiteout creation in casefolded directories

Chris Mason <[email protected]>
ovl: do not let chattr change the casefold flag

Chris Mason <[email protected]>
ovl: fail the mount if the casefold flag has changed

Xia Yan <[email protected]>
ipv6: fix device binding after failed datagram connect

Thomas Gleixner <[email protected]>
x86/entry: Fix ptrace regression

Samiullah Khawaja <[email protected]>

    mm/gup: check folio->mapping under folio lock in memfd_pin_folios()

Lance Yang <[email protected]>
khugepaged: fix readahead lock inversion in collapse_file()

Ritesh Harjani (IBM) <[email protected]>
mm/huge_memory: set the mmu_gather page size in zap_huge_pud()

David Hildenbrand (Arm) <[email protected]>
mm/memory-tiers: unregister empty tiers outside memory_tier_lock

Rik van Riel <[email protected]>
mm/cma: don't release CMA pages still in use

David Hildenbrand (Arm) <[email protected]>
mm/vma: don't leak the charge for stack growth

David Hildenbrand (Arm) <[email protected]>
mm/huge_memory: split huge PUDs when adjusting VMA boundaries

Chris Mason <[email protected]>

    mm/vma: call ->may_split() before a partial merge

Chris Mason <[email protected]>
mm/ksm: check large swap-cache folios before mapping them

David Hildenbrand (Arm) <[email protected]>
mm/ksm: fix use of a freed anon_vma at swap-in

David Hildenbrand (Arm) <[email protected]>
mm/ksm: reset the unstable trees of all nodes

Chris Mason <[email protected]>
mm: fix deadlock of mremap() against UFFDIO_MOVE

Chris Mason <[email protected]>
mm: fix unkillable fault loop on MAP_DROPPABLE memory

Josef Bacik <[email protected]>
mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit

Chris Mason <[email protected]>
mm/memory: reject remote COW faults on PFN mappings

David Hildenbrand (Arm) <[email protected]>
mm/madvise: fix data loss from MADV_FREE on a KSM page

Josef Bacik <[email protected]>
mm/mremap: fix moving PUD leaves

David Hildenbrand (Arm) <[email protected]>
mm/mremap: recheck PUDs under the page table lock

David Hildenbrand (Arm) <[email protected]>
mm/mremap: use pudp_huge_get_and_clear() when moving huge PUDs

Chris Mason <[email protected]>

    mm/mmu_notifier: set ->mm only after mmgrab()

Josef Bacik <[email protected]>
mm/mmu_notifier: finish non-blocking interval invalidation on error

Josef Bacik <[email protected]>
mm/mmu_gather: fix flushing ranges with 4 GiB or larger

Josef Bacik <[email protected]>
mm/userfaultfd: wake all waiters on unregister

David Hildenbrand (Arm) <[email protected]>
mm/userfaultfd: write-lock the VMA before waking waiters when unregistering

David Hildenbrand (Arm) <[email protected]>
mm/gup: check for overflow when converting nr_pages to bytes in GUP-fast

Chris Mason <[email protected]>

    mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast

Chris Mason <[email protected]>
mm/gup: fix clearing folios in memfd_pin_folios()

David Hildenbrand (Arm) <[email protected]>
mm/gup: recheck the PUD under PTL in follow_pud_mask()

Chris Mason <[email protected]>
mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs

Josef Bacik <[email protected]>
mm/khugepaged: fix PMD table lock leak in try_collapse_pte_mapped_thp()

Josef Bacik <[email protected]>
mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()

Chris Mason <[email protected]>
mm/huge_memory: fix zapping migration entries for device-private THPs

Chris Mason <[email protected]>
mm/huge_memory: fix truncate racing with PMD zapping

Liu Changjie <[email protected]>
can: peak_usb: pcan_usb_fd_decode_buf(): accept short uCAN end-of-list records

ChunYuZhiQiang <[email protected]>
can: dev: can_fill_info(): don't wake up controller if interface is down

Oliver Hartkopp <[email protected]>
can: proc: skip stats calculation after reset in can_stat_update()

Runyu Xiao <[email protected]>
can: proc: reset pkg_stats atomics individually

Oliver Hartkopp <[email protected]>
can: raw, isotp: copy socket options outside of lock_sock()

Oliver Hartkopp <[email protected]>
can: protect the receive lists with a per-device lock

Oliver Hartkopp <[email protected]>
can: isotp: check the return values of can_rx_register() in isotp_bind()

Oliver Hartkopp <[email protected]>
can: replace ARPHRD_CAN type checks with can_get_ml_priv()

Cunhao Lu <[email protected]>
can: dev: can_put_echo_skb(): free skb on invalid echo index

Cunhao Lu <[email protected]>
can: skb: make echo skb freeing safe in any IRQ context

Kaixuan Li <[email protected]>
can: isotp: check the frame type, not just the length

Vincent Mailhol <[email protected]>
can: dev: can_dropped_invalid_skb: drop CAN XL frames on non-CAN XL devices

Yingjie Wang <[email protected]>
nvmet: reject keep-alive timeouts that would overflow

Christoph Hellwig <[email protected]>
xfs: fix recovery of partial attr removals

Hyunwoo Kim <[email protected]>
net: restore refcount ordering for lockless socket access

Daejun Park <[email protected]>
xfs: clamp the pNFS layout range to the maximum file size

Daejun Park <[email protected]>
xfs: cap the block count of xfs_iomap_write_direct() at one extent

Daejun Park <[email protected]>
xfs: clamp a pNFS LAYOUTCOMMIT extent before computing its end

Daejun Park <[email protected]>
xfs: refuse a pNFS LAYOUTCOMMIT of a range without blocks

Daejun Park <[email protected]>
xfs: add a flag to convert unwritten extents without allocating blocks

Daejun Park <[email protected]>
xfs: mark the inode preallocated for pNFS write layouts past EOF

Zhe Liu <[email protected]>
blk-iocost: account flush sequence latency only once

Krystian Kaniewski <[email protected]>
blk-mq: fix out-of-bounds read in blk_mq_free_rqs

Laveesh Bansal <[email protected]>
block: only serialize elevator switches of the same queue

Reid Downing <[email protected]>
xfs: fix wrong compat fields in xfs_ioctl32_bstat_copyin()

Hungyu Lin <[email protected]>
block: Return the soft block size for compat BLKBSZGET

Cong Zhang <[email protected]>
virtio_blk: use synchronous quiesce in virtblk_freeze_priv()

Josef Bacik <[email protected]>
blk-mq: end the request if getting a keyslot fails

Hungyu Lin <[email protected]>
inotify: do not coalesce rename events

chenglong.ma <[email protected]>
vduse: fix VA/PA confusion in the coherent page fault path

Thorsten Blum <[email protected]>
hwrng: virtio - prevent use-after-free after a failed restore

Esben Haabendal <[email protected]>
drm/bridge: nwl-dsi: Limit LCDIF specific sync override

Esben Haabendal <[email protected]>
drm/bridge: nwl-dsi: Cleanup endpoint mux control selection

Yuho Choi <[email protected]>
vdpa/snet: Don't discard the DPU error in snet_send_ctrl_msg()

Yuho Choi <[email protected]>
iommu/virtio: Reset device before deleting virtqueues on probe failure

Fang Xieyan <[email protected]>
vhost: fix used ring index wrap in vhost_add_used_n_in_order

Shubham Antil <[email protected]>
vhost-scsi: zero misaligned I/O bounce pages

Kyle Zeng <[email protected]>
net/sched: sch_qfq: prevent aggregate self-replacement

Jianyun Gao <[email protected]>
xfs: fix temporary cursor leak in btree shift corruption paths

Naman Jain <[email protected]>
x86/init: Initialize wall clock in get_rtc_noop()

Cen Zhang <[email protected]>
ocfs2: cache the mount context for dentry lock callbacks

Cen Zhang <[email protected]>
ocfs2: wait for filecheck kobject release after a failed add

Cen Zhang <[email protected]>
ocfs2/cluster: unlink socket containers before releasing resources

Cen Zhang <[email protected]>
ocfs2: stop recovery before shutting down local allocators

Cen Zhang <[email protected]>
ocfs2/dlm: serialize migration MLE cleanup on failure

Nickolai Zeldovich <[email protected]>
panic: zero the dynamically allocated taint buffer

Cen Zhang <[email protected]>
ocfs2: keep locking_state within the cluster connection lifetime

Cen Zhang <[email protected]>
ocfs2: validate move extents against a stable EOF

Matheus Alves de Almeida <[email protected]>
fat: hold truncate_lock in fat_write_failed()

Joseph Qi <[email protected]>
ocfs2: do not read the entry array of an empty xattr block

Joseph Qi <[email protected]>
ocfs2: do not index before the entry array when dividing an empty bucket

Joseph Qi <[email protected]>
ocfs2: do not read the entry array of an empty xattr bucket

Joseph Qi <[email protected]>
ocfs2: find the xattr entry again after converting a block to a bucket

Joseph Qi <[email protected]>
ocfs2: find the xattr entry again after defragmenting a bucket

Andrew Morton <[email protected]>
openrisc: export __mulsi3 for modules

Nathan Chancellor <[email protected]>
lib/base64: silence clang-24 -Wconstant-conversion with diag pragmas

T.J. Mercier <[email protected]>
mm: memcontrol: fix NULL pointer deref and UAF from high_work_func() on dying memcg

Mike Rapoport (Microsoft) <[email protected]>
mm/cma: accept memory of CMA areas reserved at a fixed address

Mike Rapoport (Microsoft) <[email protected]>
mm/cma: accept memory of multi-range CMA areas

Johannes Weiner <[email protected]>
mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVES

Johannes Weiner <[email protected]>
mm: page_alloc: do not give all non-blocking requests reserve access

Kiryl Shutsemau (Meta) <[email protected]>
mm/hugetlb_vmemmap: map the shared tail page writable

Lorenzo Stoakes (ARM) <[email protected]>
mm/vma: update VMA iterator state on error in new VMA merge

Yafang Shao <[email protected]>
mm/migrate: snapshot the source nid before the misplaced migration

Lance Yang <[email protected]>
mm/ksm: fix userfaultfd protection during merge and unmerge

Hungyu Lin <[email protected]>
mm/migrate: untag addresses when querying page nodes

Chris Down <[email protected]>
mm: make swapoff interruptible when unusing mms/shmem

SJ Park <[email protected]>
mm/damon/core: move static variable rotation to damon_ctx

SJ Park <[email protected]>
mm/damon/core: move static variable last_nr_regions to damon_ctx

SJ Park <[email protected]>
mm/damon/sysfs-schemes: hold damon_sysfs_lock in target_metric_store()

Hengyu Liang <[email protected]>
fs/proc/task_mmu: return -ENOTTY for unknown pagemap ioctls

Samarth Narang <[email protected]>
mm/ksm: keep soft-dirty when merging a page

David Hildenbrand (Arm) <[email protected]>
mm/vma: write lock source VMA before duplicating it in __split_vma()

Zenghui Yu (Huawei) <[email protected]>
mm/page_alloc: mark pages freed by __free_pages_core() as not tagged

Li Zhe <[email protected]>
mm/hugetlb: fix mremap deadlock when PMD sharing is possible

Li Zhe <[email protected]>
mm/hugetlb: fix mremap move length truncation

Gregory Price (Meta) <[email protected]>
mm/page_alloc: let the highest memory node recover from hopeless state

Hungyu Lin <[email protected]>
mm/page-writeback: avoid 32-bit overflow in dirty threshold shares

Baolin Wang <[email protected]>
mm: memory: fix truncation removing mapped folios

David Hildenbrand (Arm) <[email protected]>
mm: fix address wraparound when scanning large folio PTEs

Kyle Zeng <[email protected]>
mm/khugepaged: flush deferred unmaps before dropping a failed folio

Babu Moger <[email protected]>
x86,fs/resctrl: Keep mbm_assign_mode in default mode at boot

Babu Moger <[email protected]>
x86/resctrl: Correct ABMC counter ID field width

Mohit Sharma <[email protected]>
ASoC: qcom: q6apm: Guard callbacks until probe data is ready

Michael McAllister <[email protected]>
Bluetooth: qca: Fix the WCN3950 NVM baud rate offset

Valentin Kindschi <[email protected]>
Bluetooth: hci_sync: pause advertising for the scan address update

Valentin Kindschi <[email protected]>
Bluetooth: hci_sync: re-enable legacy advertising on resume

Zack Rusin <[email protected]>
x86/vmware: Fix i386 high-bandwidth hypercall arguments

Yingjie Wang <[email protected]>
ipv6: reject wrapped temporary address preferred lifetimes

Eric Dumazet <[email protected]>
inet: frags: limit the truesize of a reassembly queue

James Calligeros <[email protected]>
ASoC: tas2770: Fix error detection in tas2770_set_dai_tdm_idle

Sean Christopherson <[email protected]>
KVM: x86: Unconditionally reset MMU context when emulating INIT

Sean Christopherson <[email protected]>
KVM: x86/mmu: Cap number of parent PTEs per SP at 1000 (the arbitrary rmap limit)

Sean Christopherson <[email protected]>
KVM: nVMX: Process each host MSR entry at most once when unwinding failed VM-Entry

Sean Christopherson <[email protected]>
KVM: x86: Conditionally resched when restarting REP string emulation

Sean Christopherson <[email protected]>
KVM: x86/mmu: Conditionally resched when retrying gPTE walk on A/D update failure

Yuqiang Sun <[email protected]>
nvme: Do not drop the cdev reference twice when cdev_device_add() fails

Daejun Park <[email protected]>
nvme: unregister when pr_register() is given a zero new key

Christian Aurich Zanettini Martins <[email protected]>

    nvme-rdma: fix NULL queue->ctrl dereference on reconnect

Joonhoe Kim <[email protected]>
net: qrtr: announce local services again once our HELLO is sent

Vas Zayarskiy <[email protected]>
hwmon: (aquacomputer_d5next) Avoid truncating scaled sensor readings

Guenter Roeck <[email protected]>
hwmon: (sht4x) Convert update_interval to jiffies in pending data check

Guenter Roeck <[email protected]>
hwmon: (coretemp) Set nr_cores only after core_data allocation succeeds

Guenter Roeck <[email protected]>
hwmon: (coretemp) Check for NULL platform device in hotplug callbacks

Baek Kyu, Kim <[email protected]>
hwmon: (gpio-fan) Update the speed cache before dropping the PM reference

Guenter Roeck <[email protected]>
hwmon: (tmp108) Fix initial conversion delay and wait until ready

Guenter Roeck <[email protected]>
hwmon: (lm75) Fix setting polarity mask for chips with 16-bit config register

Guenter Roeck <[email protected]>
hwmon: (pmbus) Fix return value check from thermal zone registration

Guenter Roeck <[email protected]>
hwmon: (pmbus) Release devres allocated memory after devm_thermal_of_zone_register error

Guenter Roeck <[email protected]>
hwmon: (pmbus) Check return value from pmbus_thermal_add_sensor()

Guenter Roeck <[email protected]>
hwmon: (pmbus/q54sj108a2) Add missing NULL pointer check

Guenter Roeck <[email protected]>
hwmon: (peci/dimmtemp) Fix devres leak and UAF on concurrent unbind

Guenter Roeck <[email protected]>
hwmon: (nct6683) Fix incorrect struct cast in show_pwm() and store_pwm()

Guenter Roeck <[email protected]>
hwmon: (lm87) Fix drvdata type confusion in vrm_show() and vrm_store()

Guenter Roeck <[email protected]>
hwmon: (hp-wmi-sensors) Fix unbounded loops in scale_numeric_sensor()

Guenter Roeck <[email protected]>
hwmon: (hp-wmi-sensors) Avoid global struct mutation

Guenter Roeck <[email protected]>
hwmon: (asus_wmi_sensors) Avoid global struct mutation

Guenter Roeck <[email protected]>
hwmon: (aquacomputer_d5next) Check maxcollection when probing AQUAERO devices

Javier Carrasco <[email protected]>
hwmon: chipcap2: synchronize ready IRQ state

Javier Carrasco <[email protected]>
hwmon: chipcap2: serialize access to the alarm indicators

Javier Carrasco <[email protected]>
hwmon: chipcap2: do not discard pending alarms on disable

Javier Carrasco <[email protected]>
hwmon: chipcap2: balance regulator state

Javier Carrasco <[email protected]>
hwmon: chipcap2: enable IRQ processing when regulator is already enabled

Javier Carrasco <[email protected]>
hwmon: chipcap2: disable device after hwmon teardown

Javier Carrasco <[email protected]>
hwmon: chipcap2: fix IRQ teardown ordering

Javier Carrasco <[email protected]>
hwmon: chipcap2: defer probe when IRQs are unavailable

Javier Carrasco <[email protected]>
hwmon: chipcap2: fix be16 handling

Javier Carrasco <[email protected]>
hwmon: chipcap2: fix off-by-one in command mode retry loop

Javier Carrasco <[email protected]>
hwmon: chipcap2: fix command error diagnostics

Alexei Solcanu <[email protected]>
hwmon: (gpd-fan) Reset both fans to automatic on duo boards

Zac Lanzon <[email protected]>
hwmon: (asus_rog_ryujin) Fix pump control source on the Ryujin III

Jiale Yao <[email protected]>
hwmon: (aquacomputer_d5next) reject short status reports

Baek Kyu, Kim <[email protected]>
hwmon: (corsair-cpro) Cache fan target only after a successful command

Myeonghun Pak <[email protected]>
hwmon: (sht15) Stop deferred work before releasing its resources

Xia Yan <[email protected]>
veth: keep carrier off when resizing channels with a down peer

Fang Xieyan <[email protected]>
vringh: reject empty / undersized indirect descriptor tables

Fang Xieyan <[email protected]>
vringh: bound top-level re-entry into indirect tables

Tal Zussman <[email protected]>
vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path

Zhan Xusheng <[email protected]>
ntfs: don't allow compression on volumes with clusters larger than 4K

Qihang <[email protected]>
cipso: fix optlen corruption in cipso_v4_delopt()

Maíra Canal <[email protected]>
drm/v3d: Widen cache_clean_lock over the whole L2TCACTL sequence

Jose Maria Casanova Crespo <[email protected]>
drm/v3d: Initialize timedout_batches when running a CSD job

Daejun Park <[email protected]>
xfs: don't skip free extents of the longest length in a whole-AG FITRIM

Daejun Park <[email protected]>
xfs: don't skip free extents in later batches of a whole-AG FITRIM

Binbin Deng <[email protected]>
xfs: set healthmon mount cookie before publishing it

Hungyu Lin <[email protected]>
ext2: preserve completed DIO bytes when buffered fallback fails

David Hildenbrand (Arm) <[email protected]>
mm/huge_memory: properly handle refcounted PUD mappings on fork

David Hildenbrand (Arm) <[email protected]>
mm/huge_memory: fix list corruption when deferred_split_scan() races with deferred_split_folio()

David Hildenbrand (Arm) <[email protected]>
mm/rmap: handle device-exclusive entries in folio_referenced_one()

David Hildenbrand (Arm) <[email protected]>
mm/filemap: finish fault cleanup before dropping the fault lock

Josef Bacik <[email protected]>
mm/filemap: don't lose a folio lock wakeup to a signal

Josef Bacik <[email protected]>

    mm/filemap: read mapping->a_ops->free_folio under i_lock

David Hildenbrand (Arm) <[email protected]>
mm/truncate: look again if a folio left the mapping

Josef Bacik <[email protected]>
mm/memfd: make f_pos accesses atomic

David Hildenbrand (Arm) <[email protected]>
mm/shmem: make shmem_file() check the file's inode

David Hildenbrand (Arm) <[email protected]>
fork: take mmap_lock before copying mm_struct

Josef Bacik <[email protected]>
mm/mglru: don't use stack pointers when walking PUD and PMD tables

David Hildenbrand (Arm) <[email protected]>
mm/shmem: fix truncation of files containing only swapin-error markers

David Hildenbrand (Arm) <[email protected]>
mm/shmem: fix accounting of swapin-error markers

David Hildenbrand (Arm) <[email protected]>
mm/shmem: fix truncate loop after boundary swapin failure

David Hildenbrand (Arm) <[email protected]>
mm/shmem: preserve allocation errors when swapping in large entries

David Hildenbrand (Arm) <[email protected]>
mm/shmem: fix truncate hang in large swap entry

David Hildenbrand (Arm) <[email protected]>
mm/shmem: rescan after nonuniform folio splitting

David Hildenbrand (Arm) <[email protected]>
mm/shmem: discard whole new large folios on fallocate rollback

Chris Mason <[email protected]>
mm/shmem: preserve data in clean folios when splitting fails

Chris Mason <[email protected]>
mm/shmem: stop retrying folios that cannot be split

Josef Bacik <[email protected]>
tmpfs: preserve explicitly disabled quota limits

Josef Bacik <[email protected]>
tmpfs: keep the quota soft limits of an unused id

Chris Mason <[email protected]>
mm/mempolicy: charge shared policy nodes

Ian Bridges <[email protected]>
ksmbd: let the owner read and change the DACL when no ACE names it

Ian Bridges <[email protected]>
ksmbd: grant a POSIX ACL group entry only to the group's members

Ian Bridges <[email protected]>
ksmbd: do not read past the DACL in the access denied debug message

Federico Musto <[email protected]>
net: atl1c: drop oversized RX frames instead of panicking

Mitul Golani <[email protected]>
drm/i915/display: Allow port sync on PTL

Vidya Srinivas <[email protected]>
drm/i915/display: Disable pipe joiner on WCL

Vidya Srinivas <[email protected]>
drm/i915/display: Single scaler per pipe on WCL

Lu Yao <[email protected]>
drm/i915/gem: Reset err for each fence entry

Werner Sembach <[email protected]>
drm/i915/display: Add quirk to force backlight type on some TUXEDO devices

Jouni Högander <[email protected]>
drm/i915/psr: Don't clip plane state destination rectangle

Jouni Högander <[email protected]>
drm/i915/psr: Fix SFF and CFF CTL register bit definitions

Jouni Högander <[email protected]>
drm/i915/psr: Disable linked plane sel fetch as well

Jouni Högander <[email protected]>
drm/i915/display: Add enabled pipe planes into state for selective fetch

Jouni Högander <[email protected]>
drm/i915/psr: Clear selective fetch area when duplicating plane state

Rosen Penev <[email protected]>
x86/csum: Relax the len and proto constraints in 32-bit csum_ipv6_magic()

Breno Leitao <[email protected]>
x86/bugs: Select the BHI mitigation based on the attack vector properly

Lee Jones <[email protected]>
ASoC: SOF: Intel: hda-sdw-bpt: Stop active DMA before closing BPT streams

Miguel Ojeda <[email protected]>
rust: cpufreq: fix undocumented_unsafe_blocks in PolicyCpu::from_cpu()

Jack Blessed Kimani <[email protected]>
ksmbd: fix NULL pointer dereference in session_user_name() and session_account_type()

Ian Bridges <[email protected]>
ksmbd: revert fsids on durable reconnect and replay failure

Ian Bridges <[email protected]>
ksmbd: enforce the read-only share flag when creating a stream

Ian Bridges <[email protected]>
ksmbd: require DELETE access for delete-on-close opens

Jamal Hadi Salim <[email protected]>
bpf: Fix skb_pull() BUG in __bpf_redirect_neigh()

YuanZhe Liu <[email protected]>
ALSA: hwdep: Serialize DSP load requests

YuanZhe Liu <[email protected]>
ALSA: usx2y: Initialize idle URBs before submitting streams

YuanZhe Liu <[email protected]>
ALSA: us122l: Fix NULL dereference at hwdep open and release

YuanZhe Liu <[email protected]>
ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()

Evanshenf <[email protected]>
drm/loongson: Handle buffer mapping failures when clearing a BO

Evanshenf <[email protected]>
drm/loongson: Fix double free on BO initialization failure

Evanshenf <[email protected]>
drm/loongson: Fix framebuffer selection in async cursor updates

Shao Mingyin <[email protected]>
scsi: target: tcmu: Fix divide-by-zero in data_pages_per_blk store

Yuanhe Shu <[email protected]>
scsi: target: Verify the iSCSI ISID is null-terminated

Yingjie Wang <[email protected]>
scsi: bsg: Report io_uring data copyback failures

Yingjie Wang <[email protected]>
scsi: bsg: Report synchronous data copyback failures

Yu Zhang <[email protected]>
ptp: fix use-after-free in extts_fifo_show() reading tsevqs unlocked

guolingxing <[email protected]>
btrfs: prevent deleting the wrong subvolume by ID

guolingxing <[email protected]>
btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()

Hengyu Liang <[email protected]>
btrfs: fix chattr failing on nodatasum files that have the compress flag

Masafumi Suzuki <[email protected]>
sctp: account for chunk padding in sctp_init_cause()

Lucas Tanure <[email protected]>
drm/vc4: hdmi: enable scrambling before the TMDS clock starts

Lucas Tanure <[email protected]>
drm/vc4: hdmi: always cancel the scrambling work synchronously

Dom Cobley <[email protected]>
drm/vc4: hdmi: power down the BCM2712 PHY when the output is disabled

Zhou Qiuyue <[email protected]>
ipv6: raw: fix use-after-free in rawv6_send_hdrinc()

Franck Baur <[email protected]>
net: jme: keep RX MAC clock enabled for WoL

Sven Eckelmann <[email protected]>
batman-adv: tt: don't drop local events queued during TVLV update

Sven Eckelmann <[email protected]>
batman-adv: tt: ignore ROAM flag of received ADD changes

Sven Eckelmann <[email protected]>
batman-adv: stop originator purge worker before freeing TT

Sven Eckelmann <[email protected]>
batman-adv: fix skb leak when hard_iface is being released

Sven Eckelmann <[email protected]>
batman-adv: dat: initialize orig_node of unfilled candidate slots

Sven Eckelmann <[email protected]>
batman-adv: tpmeter: fix u32 truncation of reported bytes

Kyle Zeng <[email protected]>
batman-adv: mcast: validate tracker padding before forwarding

Eric Biggers <[email protected]>
lib/crypto: mldsa: Add __must_check to mldsa_verify()

Eric Biggers <[email protected]>
lib/crypto: mldsa: Explicitly check that 'alg' is a valid value

Eric Biggers <[email protected]>
lib/crypto: mldsa: Check pk_len before doing pointer arithmetic

Chengfeng Ye <[email protected]>
batman-adv: Close OGM aggregation before transmission

Yuanfu Xie <[email protected]>
9p: don't decrement a server-owned zero nlink

Yehyeong Lee <[email protected]>
9p/xen: validate the response size from the backend

Yu Zhang <[email protected]>
scsi: target: Fix demo-mode dynamic ACL dev-entry UAF vs LUN teardown

Andrew Luebke <[email protected]>
scsi: aic79xx: Fix NULL pointer dereference in device reset

Imre Kaloz <[email protected]>
scsi: aic7xxx: Use default settings on the SGI O2 onboard controllers

Fourie Zhang <[email protected]>
xfrm4: use a full socket for local errors

Toke Høiland-Jørgensen <[email protected]>

    wifi: mac80211: reinstate IEEE80211_TX_CTL_AMPDU flag in ieee80211_tx_prep_agg()

Eric Biggers <[email protected]>
lib/crypto: mips: Disable Octeon SHA code on little-endian kernels

Maíra Canal <[email protected]>
drm/vc4: Drop the BO reservations outside of job_lock

Maíra Canal <[email protected]>
drm/vc4: Publish the output fence outside of job_lock

Zijing Yin <[email protected]>
wifi: cfg80211: fix out-of-bounds read in valid_rule()

Alex Kazinsky <[email protected]>
wifi: rsi: Skip TX aggregation setup for non-QoS frames

Jason Perlow <[email protected]>
wifi: brcmfmac: map msgbuf RX packet IDs bidirectional

Weigang He <[email protected]>
wifi: mac80211: reload TDLS header pointer after skb_linearize()

Yili Zhang <[email protected]>
dma-buf: Fix IOVA offset when linking phys vecs to sgt

André Draszik <[email protected]>
drm/drm_crtc: fix race with dma_fence_signal() in ::get_driver_name()

André Draszik <[email protected]>
drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind

Devin Wittmayer <[email protected]>
drm/panic: Fix kmsg screen hang on a long log line

Sabrina Dubroca <[email protected]>
xfrm: espintcp: reorder operations within espintcp_init_sk

Qihang <[email protected]>
xfrm: interface: validate the IP header on xmit

Hyungjung Joo <[email protected]>
net/9p/usbg: clear stale client pointer on close

Michael Grzeschik <[email protected]>
net/9p/usbg: remove bogus context initialization in alloc_requests

Michael Grzeschik <[email protected]>
net/9p/usbg: fix out_req buffer leak in disable_usb9pfs

Michael Grzeschik <[email protected]>
net/9p/usbg: call disable_usb9pfs() from usb9pfs_disable()

Michael Grzeschik <[email protected]>
net/9p/usbg: always reset completion when disconnecting

Michael Grzeschik <[email protected]>
net/9p/usbg: set client to Disconnected on usb9pfs_disable

Michael Grzeschik <[email protected]>
net/9p/usbg: also disable endpoints on p9_usbg_close

Yizhou Zhao <[email protected]>
net/9p/usbg: Fix use-after-free in disable_usb9pfs()

Zhao Zhang <[email protected]>
9p: fix caches_show() out-of-bounds write

Yifei Gao <[email protected]>
9p/xen: fix refcount leak in p9_xen_response() on wrong tag

Michael Bommarito <[email protected]>
9p/trans_virtio: reject mount tags longer than NAME_MAX at probe

Chengfeng Ye <[email protected]>
net/9p/usbg: clear stale request context after abort

Chengfeng Ye <[email protected]>
xfrm: retry inexact policy lookup after node reinsertion

Yizhou Zhao <[email protected]>
net/9p/usbg: fix prefix matching in device lookup

Stefano Garzarella <[email protected]>
9p: fix privport option setting wrong RDMA field

SJ Park <[email protected]>

    mm/damon/sysfs-schemes: read sysfs_filter->sz_range only once

Ricardo Ribalda <[email protected]>
media: uvcvideo: Force UVC version for Avermedia GC515

Ricardo Ribalda <[email protected]>
media: uvcvideo: Add autosuspend quirk for AVerMedia Live Gamer HD 2

Christian Loehle <[email protected]>
cpufreq: CPPC: Select the frequency-invariance callback per CPU

Jeff Layton <[email protected]>
nfsd: shorten extack string returned with dodgy listener

Darrick J. Wong <[email protected]>
xfs: forcibly reset quota timers when upgrading to bigtime during repair

Darrick J. Wong <[email protected]>
xfs: reinitialize dquot block if non-first dquot can't load

Christian Loehle <[email protected]>
ACPI: CPPC: Accept requests to retain immutable autonomous selection

Christian Loehle <[email protected]>
ACPI: CPPC: Validate FFH register fields before hardware access

Ping-Ke Shih <[email protected]>
wifi: rtw88: TX report with long timeout for non-PCIE devices

Andrew Morton <[email protected]>
block: restore the iterator when rejecting a misaligned bio

SJ Park <[email protected]>
mm/damon/core: remove unreachable damos charge_{target,addr}_from

Yuansheng Yang <[email protected]>
io_uring/rsrc: hold uring_lock across index-alloc put_user

Jens Axboe <[email protected]>
io_uring/poll: don't poll a writer for urgent data

Jens Axboe <[email protected]>
io_uring/poll: don't poll a writer for a read side hangup

Shang En Sim <[email protected]>
io_uring/poll: cancel all matching requests in one pass

Shang En Sim <[email protected]>
io_uring/cancel: count all requests that a CANCEL_ALL cancels

Shakeel Butt <[email protected]>
io_uring/sqpoll: do the return-to-userspace work in the SQPOLL thread

Shuai Liu <[email protected]>
io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit

Jens Axboe <[email protected]>
io_uring/sqpoll: don't attach to a thread that is canceling

Chris Mason <[email protected]>

    io_uring/cancel: drop sqd->lock while SQPOLL waits

Janne Grunau <[email protected]>
wifi: brcmfmac: cfg80211: Report port_authorized for 4-way HS offload

Gael Blivet <[email protected]>
ksmbd: look up stream size by exact xattr name

Chuck Lever <[email protected]>
NFSD: Complete a cld upcall when copying its reply fails

Chuck Lever <[email protected]>
NFSD: Complete a cld upcall when the daemon closes the pipe

Chuck Lever <[email protected]>
NFSD: Move the cld upcall message out of the caller's stack frame

Chuck Lever <[email protected]>
NFSD: Send a meaningful CB_RECALL_ANY keep count

Jeff Layton <[email protected]>
NFSD: stop registering with rpcbind after a failure in listener_set

Jeff Layton <[email protected]>
SUNRPC: report local rpcbind calls that get no answer

Jeff Layton <[email protected]>
NFSD: report listener creation failures through extack

Chuck Lever <[email protected]>
NFSD: map fh_verify() status codes for NFS_ACLv2 replies

Chuck Lever <[email protected]>
NFSD: Move version-specific ACCESS maps into per-version code

Chuck Lever <[email protected]>
NFSD: Replace nfsd_write()'s "stable" argument with "iocb_flags"

Darrick J. Wong <[email protected]>
xfs: improve dirent bounds checking in scrub and repair

Darrick J. Wong <[email protected]>
xfs: refactor directory data block walking loops in scrub

Darrick J. Wong <[email protected]>
xfs: check for buffer overruns when examining local/remote xattr entries

Darrick J. Wong <[email protected]>
xfs: break out xattr entry checks into separate functions

Weiming Shi <[email protected]>
smb/server: prevent file publication after tree disconnect

Jinwang Li <[email protected]>
Bluetooth: L2CAP: Ignore connection responses with wrong ident

Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Only accept connection responses to outstanding requests

Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Reject signalling responses in invalid states

Ashok Raj <[email protected]>

    cxl/features: Ensure that count is set before access to ent[] __counted_by()

-------------

Diffstat:

 Documentation/ABI/testing/sysfs-fs-f2fs            |   2 +-
 Documentation/admin-guide/pm/intel_idle.rst        |  12 +-
 Documentation/arch/arm64/silicon-errata.rst        |   3 +-
 Documentation/filesystems/overlayfs.rst            |   3 +-
 Documentation/filesystems/resctrl.rst              |  87 ++++---
 Documentation/hwmon/asus_rog_ryujin.rst            |   6 +
 Documentation/mm/process_addrs.rst                 |  14 +-
 Documentation/mm/vmemmap_dedup.rst                 |  15 +-
 Makefile                                           |   4 +-
 arch/arm64/include/asm/sdei.h                      |   3 +-
 arch/arm64/include/asm/suspend.h                   |   2 +-
 arch/arm64/kernel/entry-common.c                   |  40 ++-
 arch/arm64/kernel/machine_kexec_file.c             |   2 +
 arch/arm64/kernel/sdei.c                           |  59 ++++-
 arch/arm64/kernel/topology.c                       |  12 +-
 arch/arm64/kvm/mmu.c                               | 129 +++++-----
 arch/arm64/kvm/pkvm.c                              |   3 +
 arch/arm64/kvm/vgic/vgic-mmio-v3.c                 |  10 +
 arch/arm64/mm/mmap.c                               |   4 +-
 arch/arm64/mm/proc.S                               |   8 +
 arch/mips/mm/cex-gen.S                             |  16 ++
 arch/mips/pci/ops-mace.c                           |  26 +-
 arch/mips/pci/pci-ip32.c                           |   9 +-
 arch/mips/sgi-ip32/ip32-irq.c                      |  45 +---
 arch/openrisc/kernel/or32_ksyms.c                  |   1 +
 arch/x86/boot/startup/sme.c                        |   2 +-
 arch/x86/entry/syscall_32.c                        |   4 +
 arch/x86/entry/syscall_64.c                        |  26 +-
 arch/x86/include/asm/checksum_32.h                 |   2 +-
 arch/x86/include/asm/vmware.h                      |  24 +-
 arch/x86/kernel/acpi/cppc.c                        |  15 ++
 arch/x86/kernel/cpu/bugs.c                         |  12 +-
 arch/x86/kernel/cpu/resctrl/internal.h             |   4 +-
 arch/x86/kernel/cpu/resctrl/monitor.c              |   4 +-
 arch/x86/kernel/nmi.c                              |   8 +
 arch/x86/kernel/x86_init.c                         |   2 +-
 arch/x86/kvm/mmu/mmu.c                             |  10 +
 arch/x86/kvm/mmu/paging_tmpl.h                     |  11 +-
 arch/x86/kvm/vmx/nested.c                          |   1 +
 arch/x86/kvm/x86.c                                 |  33 ++-
 arch/x86/mm/tlb.c                                  |  16 +-
 block/bio.c                                        |   3 +
 block/blk-iocost.c                                 |   3 +
 block/blk-mq.c                                     |  17 +-
 block/elevator.c                                   |  32 +--
 block/ioctl.c                                      |   4 +-
 drivers/acpi/battery.c                             |  12 +-
 drivers/acpi/cppc_acpi.c                           |  61 ++++-
 drivers/acpi/utils.c                               |  41 +++
 drivers/ata/libata-pmp.c                           |  14 ++
 drivers/ata/libata-scsi.c                          |  25 ++
 drivers/block/ublk_drv.c                           |   1 +
 drivers/block/virtio_blk.c                         |   2 +-
 drivers/bluetooth/btqca.c                          |   3 +-
 drivers/char/hw_random/virtio-rng.c                |   7 +
 drivers/clk/nuvoton/clk-ma35d1.c                   |   7 +-
 drivers/cpufreq/amd-pstate.c                       |  25 +-
 drivers/cpufreq/cppc_cpufreq.c                     |  26 +-
 drivers/cxl/core/features.c                        |   2 +-
 drivers/dma-buf/dma-buf-mapping.c                  |   2 +-
 drivers/dma/qcom/bam_dma.c                         |  10 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c           |   6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h         |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c   |  17 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c             |  21 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c         |  41 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c      |  44 +++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c        |   5 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c            |   7 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c            |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c           |   4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c          |  19 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c             |  16 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c        |   1 -
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c             |   5 +-
 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c              |   5 +-
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c              |   5 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c             |   2 +
 drivers/gpu/drm/amd/amdgpu/ih_v6_0.c               |  13 +-
 drivers/gpu/drm/amd/amdgpu/mes_v11_0.c             |   4 +-
 drivers/gpu/drm/amd/amdgpu/mes_v12_0.c             |   4 +-
 drivers/gpu/drm/amd/amdgpu/navi10_ih.c             |  41 ++-
 .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c |   3 +-
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_freesync.c |  27 +-
 .../amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c |   3 +
 drivers/gpu/drm/amd/display/dc/core/dc.c           |   6 +-
 .../gpu/drm/amd/display/dc/core/dc_hw_sequencer.c  |  31 +++
 drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h |   3 +
 .../display/dc/link/protocols/link_dp_capability.c |   6 +-
 .../gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c |   7 +
 .../gpu/drm/amd/display/dc/optc/dcn30/dcn30_optc.h |  18 ++
 .../gpu/drm/amd/display/dc/optc/dcn31/dcn31_optc.h |  22 +-
 .../drm/amd/display/dc/optc/dcn314/dcn314_optc.h   |  18 ++
 .../gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.h |  11 +
 .../gpu/drm/amd/display/dc/optc/dcn35/dcn35_optc.h |  11 -
 .../drm/amd/display/dc/optc/dcn401/dcn401_optc.h   |  12 +
 .../gpu/drm/amd/display/dc/optc/dcn42/dcn42_optc.h |   2 +
 .../gpu/drm/amd/display/dc/optc/dcn60/dcn60_optc.h |   2 +
 .../amd/display/dc/resource/dcn32/dcn32_resource.c |  15 +-
 .../amd/display/dc/resource/dcn32/dcn32_resource.h |   6 +
 .../display/dc/resource/dcn401/dcn401_resource.h   |   6 +
 .../drm/amd/display/modules/freesync/freesync.c    |   6 +-
 .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c   |  20 ++
 drivers/gpu/drm/bridge/nwl-dsi.c                   |  17 +-
 drivers/gpu/drm/display/drm_dp_helper.c            |   3 +-
 drivers/gpu/drm/drm_crtc.c                         |  18 +-
 drivers/gpu/drm/drm_panic.c                        |   7 +-
 drivers/gpu/drm/etnaviv/etnaviv_buffer.c           |  40 ++-
 drivers/gpu/drm/etnaviv/etnaviv_drv.c              |   6 +-
 drivers/gpu/drm/i915/display/intel_ddi.c           |   2 +-
 .../gpu/drm/i915/display/intel_display_device.c    |   5 +-
 drivers/gpu/drm/i915/display/intel_dp.c            |   4 +-
 .../gpu/drm/i915/display/intel_dp_aux_backlight.c  |  22 +-
 drivers/gpu/drm/i915/display/intel_plane.c         |  11 +
 drivers/gpu/drm/i915/display/intel_psr.c           |  96 ++++----
 drivers/gpu/drm/i915/display/intel_psr_regs.h      |   4 +-
 drivers/gpu/drm/i915/display/intel_quirks.c        |  24 ++
 drivers/gpu/drm/i915/display/intel_quirks.h        |   1 +
 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c     |   2 +-
 drivers/gpu/drm/loongson/lsdc_gem.c                |  14 +-
 drivers/gpu/drm/loongson/lsdc_plane.c              |   2 +-
 drivers/gpu/drm/loongson/lsdc_ttm.c                |  14 +-
 drivers/gpu/drm/loongson/lsdc_ttm.h                |   2 +-
 drivers/gpu/drm/nouveau/nvkm/core/subdev.c         |   1 +
 .../gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c    |  20 ++
 drivers/gpu/drm/scheduler/sched_entity.c           |  29 ++-
 drivers/gpu/drm/v3d/v3d_gem.c                      |   5 +-
 drivers/gpu/drm/v3d/v3d_sched.c                    |   2 +
 drivers/gpu/drm/vc4/vc4_gem.c                      |  14 +-
 drivers/gpu/drm/vc4/vc4_hdmi.c                     |  10 +-
 drivers/gpu/drm/vc4/vc4_hdmi_phy.c                 |   5 +
 drivers/hwmon/aquacomputer_d5next.c                |  58 ++++-
 drivers/hwmon/asus_rog_ryujin.c                    |  54 +++-
 drivers/hwmon/asus_wmi_sensors.c                   |  13 +-
 drivers/hwmon/chipcap2.c                           | 196 ++++++++++-----
 drivers/hwmon/coretemp.c                           |  13 +-
 drivers/hwmon/corsair-cpro.c                       |   3 +-
 drivers/hwmon/gpd-fan.c                            |   1 +
 drivers/hwmon/gpio-fan.c                           |   7 +-
 drivers/hwmon/hp-wmi-sensors.c                     |  29 ++-
 drivers/hwmon/lm75.c                               |   9 +-
 drivers/hwmon/lm87.c                               |   7 +-
 drivers/hwmon/nct6683.c                            |   4 +-
 drivers/hwmon/peci/dimmtemp.c                      |  21 +-
 drivers/hwmon/pmbus/pmbus_core.c                   |  51 ++--
 drivers/hwmon/pmbus/q54sj108a2.c                   |   2 +
 drivers/hwmon/sht15.c                              |  22 +-
 drivers/hwmon/sht4x.c                              |   4 +-
 drivers/hwmon/tmp108.c                             |  26 +-
 drivers/idle/intel_idle.c                          |  11 +-
 drivers/iommu/amd/init.c                           |  41 ++-
 drivers/iommu/amd/iommu.c                          |  17 +-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c    |   7 +
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c        |  91 +++++--
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h        |   5 +
 drivers/iommu/iommufd/io_pagetable.c               |   2 +-
 drivers/iommu/iommufd/iova_bitmap.c                |  19 +-
 drivers/iommu/virtio-iommu.c                       |   6 +-
 drivers/media/pci/intel/ipu6/ipu6-fw-isys.c        |  88 ++++---
 drivers/media/pci/intel/ipu6/ipu6-isys-video.c     |   4 +-
 drivers/media/pci/intel/ipu6/ipu6-isys.c           |   6 +-
 drivers/media/pci/intel/ipu6/ipu6-isys.h           |   5 +-
 .../media/platform/microchip/microchip-isc-base.c  |  20 +-
 .../media/platform/microchip/microchip-isc-regs.h  |  16 +-
 drivers/media/platform/microchip/microchip-isc.h   |   4 +-
 .../platform/microchip/microchip-sama5d2-isc.c     |  20 +-
 .../platform/microchip/microchip-sama7g5-isc.c     |  20 +-
 drivers/media/usb/uvc/uvc_driver.c                 |  20 ++
 drivers/mtd/spi-nor/macronix.c                     |   2 +
 drivers/net/can/dev/netlink.c                      |   4 +-
 drivers/net/can/dev/skb.c                          |  10 +-
 drivers/net/can/usb/peak_usb/pcan_usb_fd.c         |   7 +-
 drivers/net/ethernet/atheros/atl1c/atl1c_main.c    |  33 +++
 drivers/net/ethernet/jme.c                         |  37 ++-
 drivers/net/ethernet/jme.h                         |   1 +
 drivers/net/ethernet/ti/am65-cpsw-nuss.c           |   4 +-
 drivers/net/veth.c                                 |   5 +-
 drivers/net/vxlan/vxlan_core.c                     |  14 +-
 .../broadcom/brcm80211/brcmfmac/cfg80211.c         |   7 +
 .../wireless/broadcom/brcm80211/brcmfmac/msgbuf.c  |   2 +-
 drivers/net/wireless/realtek/rtw88/mac80211.c      |   2 +
 drivers/net/wireless/realtek/rtw88/reg.h           |   2 +
 drivers/net/wireless/realtek/rtw88/tx.c            |   9 +-
 drivers/net/wireless/realtek/rtw88/tx.h            |   3 +-
 drivers/net/wireless/realtek/rtw88/usb.c           |  68 ++++-
 drivers/net/wireless/realtek/rtw88/usb.h           |   5 +
 drivers/net/wireless/rsi/rsi_91x_core.c            |   2 +-
 drivers/nvme/common/keyring.c                      |   1 +
 drivers/nvme/host/core.c                           |  21 +-
 drivers/nvme/host/multipath.c                      |   2 -
 drivers/nvme/host/pci.c                            |   2 +
 drivers/nvme/host/pr.c                             |   8 +-
 drivers/nvme/host/rdma.c                           |   7 +-
 drivers/nvme/host/tcp.c                            | 213 +++++++++++++---
 drivers/nvme/target/admin-cmd.c                    |  16 +-
 drivers/nvme/target/configfs.c                     |   4 +-
 drivers/nvme/target/core.c                         |   8 +-
 drivers/nvme/target/nvmet.h                        |   8 +
 drivers/pci/controller/cadence/pcie-cadence-plat.c |  33 +--
 drivers/pci/controller/cadence/pcie-cadence.c      |  16 +-
 drivers/pci/controller/cadence/pcie-cadence.h      |   2 -
 drivers/pci/controller/dwc/pcie-designware.c       |   2 +
 drivers/pci/controller/dwc/pcie-designware.h       |   1 +
 drivers/platform/chrome/cros_ec_ishtp.c            |   2 +-
 drivers/platform/chrome/cros_usbpd_notify.c        |  41 +--
 drivers/ptp/ptp_sysfs.c                            |   6 +-
 drivers/scsi/aic7xxx/aic79xx_core.c                |   4 +-
 drivers/scsi/aic7xxx/aic79xx_osm.h                 |  26 +-
 drivers/scsi/aic7xxx/aic7xxx_core.c                |   8 +-
 drivers/scsi/aic7xxx/aic7xxx_pci.c                 |  20 +-
 drivers/scsi/scsi_bsg.c                            |   8 +-
 drivers/target/target_core_device.c                |  18 +-
 drivers/target/target_core_fabric_lib.c            |  10 +
 drivers/target/target_core_tpg.c                   |  10 +-
 drivers/target/target_core_user.c                  |   5 +
 .../intel/int340x_thermal/int3403_thermal.c        |   3 +-
 .../intel/int340x_thermal/int340x_thermal_zone.c   |   6 +-
 .../int340x_thermal/processor_thermal_device.c     |   2 +-
 drivers/vdpa/solidrun/snet_ctrl.c                  |   3 +-
 drivers/vdpa/vdpa_user/iova_domain.c               |  11 +-
 drivers/vhost/scsi.c                               |   7 +-
 drivers/vhost/vdpa.c                               |   8 +-
 drivers/vhost/vhost.c                              |   3 +-
 drivers/vhost/vringh.c                             |  27 +-
 drivers/vhost/vsock.c                              |  34 ++-
 fs/9p/v9fs.c                                       |  18 +-
 fs/9p/vfs_inode.c                                  |   8 +
 fs/btrfs/ioctl.c                                   |  24 ++
 fs/btrfs/sysfs.c                                   |   1 +
 fs/ceph/addr.c                                     |   6 +
 fs/erofs/fileio.c                                  |  18 +-
 fs/ext2/file.c                                     |   3 +-
 fs/ext2/inode.c                                    |  13 +-
 fs/f2fs/checkpoint.c                               |  13 +-
 fs/f2fs/data.c                                     |  28 ++-
 fs/f2fs/f2fs.h                                     |  10 +-
 fs/f2fs/gc.c                                       |  11 +-
 fs/f2fs/node.c                                     |  75 +++++-
 fs/f2fs/segment.c                                  |   3 +-
 fs/f2fs/super.c                                    |  24 ++
 fs/f2fs/sysfs.c                                    |   2 +
 fs/fat/inode.c                                     |   2 +
 fs/nfsd/nfs2acl.c                                  |  64 ++++-
 fs/nfsd/nfs3proc.c                                 |  58 ++++-
 fs/nfsd/nfs3xdr.c                                  |   2 +
 fs/nfsd/nfs4proc.c                                 |  60 ++++-
 fs/nfsd/nfs4recover.c                              |  49 +++-
 fs/nfsd/nfs4state.c                                |  24 +-
 fs/nfsd/nfs4xdr.c                                  |   2 +-
 fs/nfsd/nfsctl.c                                   |  56 ++++-
 fs/nfsd/nfsproc.c                                  |   2 +-
 fs/nfsd/state.h                                    |   2 +
 fs/nfsd/vfs.c                                      | 108 ++------
 fs/nfsd/vfs.h                                      |  21 +-
 fs/nfsd/xdr3.h                                     |   2 +-
 fs/notify/inotify/inotify_fsnotify.c               |   2 +-
 fs/ntfs/ea.c                                       |   5 +
 fs/ntfs3/xattr.c                                   |  25 +-
 fs/ocfs2/cluster/tcp.c                             |   5 +-
 fs/ocfs2/dcache.h                                  |   5 +-
 fs/ocfs2/dlm/dlmmaster.c                           |  70 +++++-
 fs/ocfs2/dlmglue.c                                 |  34 +--
 fs/ocfs2/filecheck.c                               |   2 +
 fs/ocfs2/journal.c                                 |  15 +-
 fs/ocfs2/journal.h                                 |   1 +
 fs/ocfs2/move_extents.c                            |  70 +++---
 fs/ocfs2/super.c                                   |   3 +
 fs/ocfs2/xattr.c                                   | 120 ++++++++-
 fs/open.c                                          |   1 +
 fs/overlayfs/dir.c                                 |  46 ++--
 fs/overlayfs/export.c                              |   4 +-
 fs/overlayfs/inode.c                               |   8 +
 fs/overlayfs/namei.c                               |  13 +-
 fs/overlayfs/overlayfs.h                           |  21 +-
 fs/overlayfs/readdir.c                             |   6 +-
 fs/overlayfs/super.c                               |  12 +-
 fs/overlayfs/util.c                                |  13 +-
 fs/proc/task_mmu.c                                 |   2 +-
 fs/smb/server/mgmt/user_session.c                  |   4 +
 fs/smb/server/smb2pdu.c                            |  65 +++--
 fs/smb/server/smbacl.c                             |  43 +++-
 fs/smb/server/vfs.c                                |   4 +-
 fs/smb/server/vfs.h                                |   2 +
 fs/smb/server/vfs_cache.c                          |  58 +++--
 fs/udf/balloc.c                                    |  11 +-
 fs/udf/super.c                                     |  80 +++++-
 fs/udf/truncate.c                                  |   7 +-
 fs/xfs/libxfs/xfs_attr_leaf.c                      |   9 +-
 fs/xfs/libxfs/xfs_bmap.c                           |  14 +-
 fs/xfs/libxfs/xfs_bmap.h                           |  10 +-
 fs/xfs/libxfs/xfs_btree.c                          |   4 +-
 fs/xfs/scrub/attr.c                                | 102 ++++++--
 fs/xfs/scrub/attr_repair.c                         |  18 +-
 fs/xfs/scrub/dir.c                                 | 110 ++++++++-
 fs/xfs/scrub/dir_repair.c                          | 100 ++++++--
 fs/xfs/scrub/quota_repair.c                        |  33 ++-
 fs/xfs/xfs_discard.c                               |  26 +-
 fs/xfs/xfs_file.c                                  |   2 +-
 fs/xfs/xfs_healthmon.c                             |   2 +-
 fs/xfs/xfs_ioctl32.c                               |   4 +-
 fs/xfs/xfs_ioend.c                                 |   2 +-
 fs/xfs/xfs_iomap.c                                 |  28 ++-
 fs/xfs/xfs_iomap.h                                 |   3 +-
 fs/xfs/xfs_pnfs.c                                  |  60 +++--
 include/acpi/acpi_bus.h                            |   7 +
 include/acpi/cppc_acpi.h                           |   6 +
 include/asm-generic/tlb.h                          |   3 +-
 include/crypto/mldsa.h                             |   6 +-
 include/dt-bindings/clock/nuvoton,ma35d1-clk.h     |   3 +-
 include/linux/blkdev.h                             |   4 +-
 include/linux/can/can-ml.h                         |   3 +
 include/linux/can/dev.h                            |   2 +-
 include/linux/can/skb.h                            |   4 +-
 include/linux/damon.h                              |  10 +
 include/linux/huge_mm.h                            |   5 +-
 include/linux/hugetlb.h                            |  15 +-
 include/linux/ksm.h                                |   6 +-
 include/linux/memfd.h                              |   9 +
 include/linux/mm_types.h                           |  12 +-
 include/linux/mmap_lock.h                          |  39 ++-
 include/linux/mmu_notifier.h                       |   3 +-
 include/linux/mmzone.h                             |   2 +
 include/linux/nfs4.h                               |   6 +
 include/linux/shmem_fs.h                           |  15 +-
 include/linux/srcu.h                               |  36 +++
 include/linux/sunrpc/clnt.h                        |   3 +-
 include/linux/sunrpc/svc.h                         |   7 +-
 include/linux/userfaultfd_k.h                      |   2 -
 include/net/espintcp.h                             |   5 +-
 include/net/inet_frag.h                            |   9 +
 include/net/netns/can.h                            |   2 +-
 include/net/sctp/sm.h                              |   1 +
 include/sound/cs35l56.h                            |   4 +
 include/sound/hwdep.h                              |   1 +
 include/uapi/linux/iommufd.h                       |   6 +
 io_uring/cancel.c                                  |  26 +-
 io_uring/poll.c                                    |  62 ++++-
 io_uring/rsrc.c                                    |  21 +-
 io_uring/sqpoll.c                                  |  26 +-
 kernel/events/core.c                               |   9 +
 kernel/fork.c                                      |  20 +-
 kernel/panic.c                                     |   2 +-
 kernel/sched/fair.c                                |   4 +-
 lib/base64.c                                       |   3 +
 lib/crypto/Kconfig                                 |   6 +-
 lib/crypto/mldsa.c                                 |  15 +-
 lib/crypto/tests/mldsa_kunit.c                     |   9 +
 mm/cma.c                                           |  14 +-
 mm/damon/core.c                                    |  32 ++-
 mm/damon/sysfs-schemes.c                           |   8 +-
 mm/filemap.c                                       |  84 +++----
 mm/gup.c                                           |  68 +++--
 mm/huge_memory.c                                   | 146 ++++++++---
 mm/hugetlb.c                                       |  92 ++++---
 mm/hugetlb_vmemmap.c                               |   8 +-
 mm/internal.h                                      |  38 ++-
 mm/khugepaged.c                                    |  75 ++++--
 mm/ksm.c                                           |  66 +++--
 mm/madvise.c                                       |   9 +
 mm/memcontrol.c                                    |   5 +
 mm/memfd.c                                         |   2 +
 mm/memory-tiers.c                                  |  29 +--
 mm/memory.c                                        | 133 ++++++----
 mm/mempolicy.c                                     |   4 +-
 mm/migrate.c                                       |   5 +-
 mm/mm_init.c                                       |   2 -
 mm/mmap.c                                          |   8 +-
 mm/mmap_lock.c                                     | 124 +++++++++-
 mm/mmu_notifier.c                                  |  24 +-
 mm/mremap.c                                        | 103 ++++----
 mm/nommu.c                                         |   2 +-
 mm/page-writeback.c                                |   8 +-
 mm/page_alloc.c                                    |  30 ++-
 mm/page_alloc.h                                    |  14 +-
 mm/rmap.c                                          |  23 +-
 mm/shmem.c                                         | 141 +++++++----
 mm/shmem_quota.c                                   |  28 ++-
 mm/swapfile.c                                      |   7 +-
 mm/truncate.c                                      |  13 +-
 mm/userfaultfd.c                                   |  63 ++---
 mm/util.c                                          |  13 +
 mm/vma.c                                           |  54 ++--
 mm/vma_init.c                                      |   3 +
 mm/vmscan.c                                        |  29 ++-
 net/9p/trans_usbg.c                                |  91 +++++--
 net/9p/trans_virtio.c                              |   5 +
 net/9p/trans_xen.c                                 |  10 +
 net/batman-adv/bat_iv_ogm.c                        |   5 +
 net/batman-adv/distributed-arp-table.c             |   1 +
 net/batman-adv/main.c                              |  12 +-
 net/batman-adv/multicast_forw.c                    |   5 +-
 net/batman-adv/tp_meter.c                          |   2 +-
 net/batman-adv/translation-table.c                 | 133 ++++++----
 net/batman-adv/types.h                             |   8 +-
 net/bluetooth/hci_sync.c                           |  25 +-
 net/bluetooth/l2cap_core.c                         |  47 +++-
 net/can/af_can.c                                   |  56 +++--
 net/can/bcm.c                                      |  50 ++--
 net/can/gw.c                                       |   7 +-
 net/can/isotp.c                                    | 236 +++++++++++-------
 net/can/proc.c                                     |  69 +++---
 net/can/raw.c                                      | 274 ++++++++++++---------
 net/core/dev.c                                     |   4 +-
 net/core/filter.c                                  |  23 +-
 net/core/sock.c                                    |   6 +-
 net/ipv4/cipso_ipv4.c                              |   9 +-
 net/ipv4/inet_connection_sock.c                    |   6 +-
 net/ipv4/inet_fragment.c                           |   5 +
 net/ipv4/inet_hashtables.c                         |   2 +-
 net/ipv4/inet_timewait_sock.c                      |   4 +-
 net/ipv4/syncookies.c                              |   2 +-
 net/ipv4/tcp_fastopen.c                            |   2 +-
 net/ipv4/xfrm4_output.c                            |   7 +-
 net/ipv6/addrconf.c                                |   3 +-
 net/ipv6/datagram.c                                |   4 +
 net/ipv6/inet6_hashtables.c                        |   2 +-
 net/ipv6/raw.c                                     |   3 +
 net/l2tp/l2tp_core.c                               |  13 +-
 net/mac80211/tdls.c                                |   3 +-
 net/mac80211/tx.c                                  |   2 +
 net/mptcp/pm_kernel.c                              |   1 +
 net/mptcp/subflow.c                                |  11 +
 net/qrtr/af_qrtr.c                                 |  53 +++-
 net/sched/sch_generic.c                            |  41 ++-
 net/sched/sch_qfq.c                                |   3 +
 net/sched/sch_taprio.c                             |   5 +
 net/sctp/sm_make_chunk.c                           |  14 +-
 net/sctp/socket.c                                  |  57 ++++-
 net/smc/smc_rx.c                                   |  39 ++-
 net/sunrpc/rpcb_clnt.c                             |  22 +-
 net/sunrpc/svc.c                                   |  42 +++-
 net/wireless/reg.c                                 |   3 +
 net/xfrm/espintcp.c                                |  43 ++--
 net/xfrm/xfrm_interface_core.c                     |   8 +
 net/xfrm/xfrm_policy.c                             |  11 +-
 rust/kernel/cpufreq.rs                             |   4 +-
 sound/core/hwdep.c                                 |   2 +
 sound/core/ump_convert.c                           |   2 +-
 sound/hda/codecs/realtek/alc269.c                  |  45 +++-
 sound/hda/codecs/side-codecs/tas2781_hda.c         |  27 +-
 sound/pci/cs46xx/dsp_spos.c                        |   2 +
 sound/pci/cs46xx/dsp_spos_scb_lib.c                |   3 +-
 sound/soc/amd/yc/acp6x-mach.c                      |   7 +
 sound/soc/codecs/cs35l56-sdw.c                     |  27 +-
 sound/soc/codecs/cs35l56-shared.c                  |  38 +++
 sound/soc/codecs/cs35l56.c                         |  17 ++
 sound/soc/codecs/cs35l56.h                         |   1 +
 sound/soc/codecs/hdac_hda.c                        |  25 +-
 sound/soc/codecs/tas2770.c                         |  14 +-
 sound/soc/qcom/qdsp6/q6apm.c                       |   6 +-
 sound/soc/qcom/qdsp6/q6prm.c                       |   3 +
 sound/soc/sof/intel/hda-codec.c                    |  23 +-
 sound/soc/sof/intel/hda-sdw-bpt.c                  |   6 +
 sound/usb/bcd2000/bcd2000.c                        |  20 +-
 sound/usb/caiaq/input.c                            |   2 +
 sound/usb/line6/capture.c                          |  29 +++
 sound/usb/midi.c                                   |  64 +++--
 sound/usb/qcom/qc_audio_offload.c                  |   7 +
 sound/usb/usx2y/us122l.c                           |  27 +-
 sound/usb/usx2y/usX2Yhwdep.c                       |   5 +
 sound/usb/usx2y/usb_stream.c                       |   9 +-
 sound/usb/usx2y/usbusx2yaudio.c                    |  43 +++-
 tools/perf/tests/tool_pmu.c                        |  79 ++++++
Quoted 8 lines
 tools/perf/util/evsel.c                            |  30 ++-
 tools/perf/util/hwmon_pmu.c                        |   2 +-
 tools/perf/util/tool_pmu.c                         |   2 +-
 .../filesystems/fscontext_ns/fscontext_ns_test.c   |   2 +-
 tools/testing/selftests/net/fib_nexthops.sh        |  40 ++-
 tools/testing/vma/include/dup.h                    |   2 +-
 tools/testing/vma/shared.c                         |   8 +-
 470 files changed, 7038 insertions(+), 2625 deletions(-)

Hi, Greg:

7.3.5-rc1 successfully built and booted in my system without any notable regressions.

Distribution: Gentoo Linux
Architecture: x86_64 (ASUS Zenbook UM3504DA)
CPU: AMD Ryzen 7 7735U
iGPU: AMD Radeon 680M

[    0.000000] Linux version 7.3.5-rc1-900-myllvm+

(user1@gentoo-zenbook) (clang version 23.1.5, LLD 23.1.5) #2 SMP PREEMPT_DYNAMIC Sat Nov 14 11:48:10 KST 2026

Best,
Joungmin

Tested-by on the v1 series
#520 lore raw
In reply to Greg Kroah-Hartman
Quoted 8 lines · On Fri, 13 Nov 2026 10:45:04 -0500 Greg Kroah-Hartman…

This is the start of the stable review cycle for the 7.3.5 release. There are 507 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sun, 15 Nov 2026 15:36:17 +0000. Anything received after that time might be too late.

Boot-tested under QEMU for Rust x86_64, arm64 and riscv64; built-tested for loongarch64 and arm32:

Thanks!

Cheers,
Miguel

Tested-by on the v1 series
#521 lore raw
In reply to Greg Kroah-Hartman

Am 13.11.2026 um 16:45 schrieb Greg Kroah-Hartman:

Quoted 4 lines

This is the start of the stable review cycle for the 7.3.5 release. There are 507 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Builds, boots and works on my 2-socket Ivy Bridge Xeon E5-2697v2 server. No dmesg oddities or regressions found.

Beste Grüße,
Peter Schneider

Signature · 8 lines
Climb the mountain not to plant your flag, but to embrace the challenge,
enjoy the air and behold the view. Climb it so you can see the world,
not so the world can see you.                    -- David McCullough Jr.

OpenPGP:  0xA3828BD796CCE11A8CADE8866E3A92C92C3FF244
Download: https://www.peters-netzplatz.de/download/pschneider1968_pub.asc
https://keys.mailvelope.com/pks/lookup?op=get&[email protected]
https://keys.mailvelope.com/pks/lookup?op=get&[email protected]
Tested-by on the v1 series
#522 lore raw
In reply to Greg Kroah-Hartman
Quoted 4 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.3.5 release. There are 507 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Built, booted, and tested on hardware for x86_64:

- AMD Ryzen 9 5900X, Nvidia RTX 3080 (nouveau)

No regressions found.

Thanks!
Sean

Tested-by on the v1 series
#523 lore raw
In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.3.5 release. There are 507 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sun, 15 Nov 2026 15:36:17 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 8 lines
	https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.3.5-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.3.y
and the diffstat can be found below.

thanks,

greg k-h

I took 7.3.4 and applied the stable-queue as of commit 3b8ff7f280433e6fb085dbc4f44ac6a138f352a0 ("fixes for all trees"). So, equivalent to taking 7.3.5-rc1 and doing the two mm reverts.

Tested on 2 amd64 systems and an arm64 virtual machine. Working well, no regressions observed.

Signature · 1 line
-Barry K. Nathan  <[email protected]>
Tested-by on the v1 series
#524 lore raw
In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 7.3.5 release. There are 507 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Sun, 15 Nov 2026 15:36:17 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 8 lines
	https://www.kernel.org/pub/linux/kernel/v7.x/stable-review/patch-7.3.5-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-7.3.y
and the diffstat can be found below.

thanks,

greg k-h

Built and booted successfully on RISC-V RV64 (HiFive Unmatched).

#525 lore raw
In reply to Greg Kroah-Hartman

Hi!

Quoted 4 lines

This is the start of the stable review cycle for the 7.3.5 release. There are 507 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

We get build errors here:

236
19:06:22
CC arch/arm/kernel/asm-offsets.s
237
19:06:23
In file included from arch/arm/kernel/asm-offsets.c:12:
238
19:06:23
./include/linux/mmap_lock.h: In function 'vma_end_write_all':
239
19:06:23
./include/linux/mmap_lock.h:604:25: error: 'struct mm_struct' has no member named 'mm_lock_seq' 240
19:06:23
604 | if (unlikely(!mm->mm_lock_seq.sequence))
241
19:06:23
| ^~
242
19:06:23
./include/linux/compiler.h:77:45: note: in definition of macro 'unlikely'
243
19:06:23
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
244
19:06:23
| ^
245
19:06:23
make[2]: *** [scripts/Makefile.build:185:
arch/arm/kernel/asm-offsets.s] Error 1

https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/pipelines/3065943408

Best regards,
Pavel