On Friday, 19 Mar, Nils Faerber wrote: > I just compiled and install kernel 2.2.3 and noticed that insmodding the > SCSI cdrom driver causes my machine to crash immediately with a kernel > panic! I found that as well. It looks like a bug in recenly changed semaphore.h. I came up with a patch that seems to fix it (although formally may produce faulty code as well...) - see attached. The problem is in the inline asm, which references a global symbol, thus using gp, assuming it has been provided by the function's entry code. The patch fixes only the 'up' function, which causes problems in sr_ioctl.c, but several other functions from semaphore.h need similar treatment as well. I think Richard Henderson, who I believe wrote that code in semaphore.h, can think of a better solution. Nikita