Re: [PATCH] char:misc minor is overflowing

From: Greg Kroah-Hartman
Date: Mon Dec 21 2015 - 16:43:54 EST


On Fri, Nov 20, 2015 at 03:35:34PM +0530, Shivnandan Kumar wrote:
> When a driver register as a misc driver and
> it tries to allocate minor number dynamically.
> Then there is a chance of minor number overflow.
> The problem is that 64(DYNAMIC_MINORS) is not enough
> for dynamic minor number and if kernel defines 0-63
> for dynamic minor number, it should be reserved.

What system do you have that we have more than 63 dynamic minors being
asked for? We should turn some of them into "real" minors if you rely
on too many of these.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/