summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorCarlos Llamas <cmllamas@google.com>2026-01-27 23:55:10 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-03 12:59:06 +0100
commitd6ba734814266bbf7ee01f9030436597116805f3 (patch)
tree6ab15af3f2b53563587f6385cd42d8ec15464338 /include/uapi
parent1769f90e5ba2a6d24bb46b85da33fe861c68f005 (diff)
rust_binderfs: fix ida_alloc_max() upper bound
The 'max' argument of ida_alloc_max() takes the maximum valid ID and not the "count". Using an ID of BINDERFS_MAX_MINOR (1 << 20) for dev->minor would exceed the limits of minor numbers (20-bits). Fix this off-by-one error by subtracting 1 from the 'max'. Cc: stable@vger.kernel.org Fixes: eafedbc7c050 ("rust_binder: add Rust Binder driver") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/r/202512181203.IOv6IChH-lkp@intel.com/ Signed-off-by: Carlos Llamas <cmllamas@google.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20260127235545.2307876-1-cmllamas@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions