Messages in this thread Patch in this message | | | Date | Wed, 8 Dec 1999 01:59:31 +0100 (CET) | From | Daniel Kobras <> | Subject | Uninitialized spinlock in capability.h. |
| |
Hi!
My proftpd blew up on an uninitialized spinlock with 2.3.30.
eip: c012662c [somewhere in sys_capget()] kernel BUG at /usr/src/kernel-source-2.3.30/include/asm/spinlock.h:78! invalid operand: 0000 CPU: 1 EIP: 0010:[<c012665b>] (...)
Here's the patch:
--- kernel/capability.c.orig Wed Dec 8 02:29:31 1999 +++ kernel/capability.c Wed Dec 8 02:29:50 1999 @@ -9,7 +9,7 @@ #include <asm/uaccess.h> /* Note: never hold tasklist_lock while spinning for this one */ -spinlock_t task_capability_lock; +spinlock_t task_capability_lock = SPIN_LOCK_UNLOCKED; /* * For sys_getproccap() and sys_setproccap(), any of the three
Regards,
Daniel.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |