mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] char: misc: improve test and dynamic allocation
@ 2025-03-18 17:24 Thadeu Lima de Souza Cascardo
  2025-03-18 17:24 ` [PATCH v3 1/2] char: misc: restrict the dynamic range to exclude reserved minors Thadeu Lima de Souza Cascardo
  2025-03-18 17:24 ` [PATCH v3 2/2] char: misc: add test cases Thadeu Lima de Souza Cascardo
  0 siblings, 2 replies; 3+ messages in thread
From: Thadeu Lima de Souza Cascardo @ 2025-03-18 17:24 UTC (permalink / raw)
  To: Arnd Bergmann, Greg Kroah-Hartman
  Cc: Andrew Morton, Dirk VanDerMerwe, Vimal Agrawal, linux-kernel,
	Thadeu Lima de Souza Cascardo, kernel-dev

This includes a change that prevents dynamic allocation from using a minor
number that belongs to the historically static reserved range, which is
still used by some drivers.

It also improves the test, including a lot of corner cases, specially ones
that would fail before past fixes.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
---
Changes in v3:
- remove code around DYNAMIC_MINORS and the backwards allocation
- try to open devices in tests by using init_mknod plus filp_open
- Link to v2: https://lore.kernel.org/r/20250307-misc-dynrange-v2-0-6fe19032ef76@igalia.com

---
Thadeu Lima de Souza Cascardo (2):
      char: misc: restrict the dynamic range to exclude reserved minors
      char: misc: add test cases

 drivers/char/misc.c             |  28 +-
 drivers/misc/misc_minor_kunit.c | 578 +++++++++++++++++++++++++++++++++++++++-
 2 files changed, 581 insertions(+), 25 deletions(-)
---
base-commit: 2dc25093218f5d42391549de6fe45e1aa9325676
change-id: 20250307-misc-dynrange-d54c92a5e319
prerequisite-change-id: 20250317-misc-chrdev-b26b572a47fc:v1
prerequisite-patch-id: d60dd6f7235bae2a8707c3169969b534be60de52

Best regards,
-- 
Thadeu Lima de Souza Cascardo <cascardo@igalia.com>


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

end of thread, other threads:[~2025-03-18 17:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-18 17:24 [PATCH v3 0/2] char: misc: improve test and dynamic allocation Thadeu Lima de Souza Cascardo
2025-03-18 17:24 ` [PATCH v3 1/2] char: misc: restrict the dynamic range to exclude reserved minors Thadeu Lima de Souza Cascardo
2025-03-18 17:24 ` [PATCH v3 2/2] char: misc: add test cases Thadeu Lima de Souza Cascardo

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®