[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2024101416-scouring-upbeat-b658@gregkh>
Date: Mon, 14 Oct 2024 15:19:55 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Vimal Agrawal <avimalin@...il.com>
Cc: linux-kernel@...r.kernel.org, arnd@...db.de, vimal.agrawal@...hos.com
Subject: Re: [PATCH] misc: misc_minor_alloc to allocate ids for all
dynamic/misc dynamic minors
On Mon, Oct 14, 2024 at 01:14:16PM +0000, Vimal Agrawal wrote:
> misc_minor_alloc was allocating id for minor only in case of
> MISC_DYNAMIC_MINOR but misc_minor_free was always freeing ids
> using ida_free causing a mismatch and following
> warn:
> > > WARNING: CPU: 0 PID: 159 at lib/idr.c:525 ida_free+0x3e0/0x41f
> > > ida_free called for id=127 which is not allocated.
> > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> ...
> > > [<60941eb4>] ida_free+0x3e0/0x41f
> > > [<605ac993>] misc_minor_free+0x3e/0xbc
> > > [<605acb82>] misc_deregister+0x171/0x1b3
>
> misc_minor_alloc is changed to allocate id from ida for all dynamic/
> misc dynamic minors
>
> Signed-off-by: Vimal Agrawal <vimal.agrawal@...hos.com>
What commit id does this fix?
And I think we need a test for this somewhere, care to write a kunit
test?
thanks,
greg k-h
Powered by blists - more mailing lists