Problem Description: srmcons_get_private_struct() in arch/alpha/kernel/srmcons.c calls kmalloc(GFP_KERNEL) while the spinlock srmconsp_lock is held. this should not be done as kmalloc(GFP_KERNEL) might sleep as srmcons_get_private_struct() is only called from srmcons_open() and never from interrupt context i think the right thing would be using a mutex instead of a spinlock
I queued a fix, thanks.
(In reply to comment #1) > I queued a fix, thanks. Hrm, that made the race there worse ;). (srmconsp is static) This happened almost 5 years ago. I wonder if anybody uses that driver at all? Matthias do you or did you use some static analysis?