[PATCH v2 0/2] char: misc: improve test and dynamic allocation
From: Thadeu Lima de Souza Cascardo
Date: Fri Mar 07 2025 - 10:14:33 EST
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@xxxxxxxxxx>
---
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 | 9 +-
drivers/misc/misc_minor_kunit.c | 509 +++++++++++++++++++++++++++++++++++++++-
2 files changed, 509 insertions(+), 9 deletions(-)
---
base-commit: 2397d61ee45cddb8f3bd3a3a9840ef0f0b5aa843
change-id: 20250307-misc-dynrange-d54c92a5e319
Best regards,
--
Thadeu Lima de Souza Cascardo <cascardo@xxxxxxxxxx>