lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250318-misc-dynrange-v3-0-5c6507cbc2e2@igalia.com>
Date: Tue, 18 Mar 2025 14:24:17 -0300
From: Thadeu Lima de Souza Cascardo <cascardo@...lia.com>
To: Arnd Bergmann <arnd@...db.de>, 
 Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, 
 Dirk VanDerMerwe <dirk.vandermerwe@...hos.com>, 
 Vimal Agrawal <vimal.agrawal@...hos.com>, linux-kernel@...r.kernel.org, 
 Thadeu Lima de Souza Cascardo <cascardo@...lia.com>, kernel-dev@...lia.com
Subject: [PATCH v3 0/2] char: misc: improve test and dynamic allocation

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@...lia.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@...lia.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ