Skip to content

RFC IDR fix for potential id mismatch

Jan Sokolowski linux-fsdevel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest1 patch 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1idr: do not create idr if new id would be outside given rangelib/idr.c+12 -010 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/1] IDR fix for potential id mismatch

When debugging an issue found in drm subsystem (link to the discussion in Link tag), a bug was found in idr library where requesting id in range would return id outside requested range. Didn't see in documentation that this is how idr should behave.

This is an RFC as this library is deprecated but still in use by other subsystems. Is this fix proper?

---
Jan Sokolowski (1):
idr: do not create idr if new id would be outside given range

 lib/idr.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
Signature · 1 line
2.43.0