lkml.org 
[lkml]   [1999]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectUninitialized 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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.027 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site