[PATCH 0/2] regcache: Validate bounds of regcache drop requests
From: Mark Brown
Date: Mon Oct 26 2026 - 19:39:37 EST
It is not valid for a caller to try to drop a range of registers from
the cache where the minimum register is greater than the maximum register,
and doing so is likely to trigger bugs in the caches. Reject such
invalid inputs and add a KUnit test for it.
---
Mark Brown (2):
regcache: Validate bounds of regcache drop requests
regcache: Add test for bounds checking of regcache drop requests
drivers/base/regmap/regcache.c | 3 +++
drivers/base/regmap/regmap-kunit.c | 21 +++++++++++++++++++++
2 files changed, 24 insertions(+)
---
base-commit: 2dee91ee94eec85d09c13c7ca83e3005906d3732
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-7.4
change-id: 20261026-regmap-drop-region-min-max-b1ff4cc203b3
Best regards,
--
Mark Brown <broonie@xxxxxxxxxx>