lkml.org 
[lkml]   [1999]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectsmp-2.3.18-F8: missing synchronization for console_loglevel
Date
arch/i386/kernel/traps.c contains 2 functions which access console_loglevel
without synchronization.

I think you should acquire the console_lock spinlock before changing these
variables.
see linux/kernel/printk.c, do_syslog().
Note that the spinlock calls around "console_loglevel=minimum_loglevel" were
added to be on the safe side: console_loglevel is not atomic_t, and I don't
want to assume that setting a 32-bit value is atomic for all architectures.

--
Manfred




-
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:54    [W:0.022 / U:1.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site