mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] regcache: Validate bounds of regcache drop requests
@ 2026-10-26 23:32 Mark Brown
  2026-10-26 23:32 ` [PATCH 1/2] " Mark Brown
  2026-10-26 23:32 ` [PATCH 2/2] regcache: Add test for bounds checking " Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Brown @ 2026-10-26 23:32 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-kernel

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@kernel.org>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-26 23:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26 23:32 [PATCH 0/2] regcache: Validate bounds of regcache drop requests Mark Brown
2026-10-26 23:32 ` [PATCH 1/2] " Mark Brown
2026-10-26 23:32 ` [PATCH 2/2] regcache: Add test for bounds checking " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®