]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: add locking around error buffer
authorJeff Mahoney <jeffm@suse.com>
Mon, 30 Mar 2009 18:02:24 +0000 (14:02 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 Mar 2009 19:16:36 +0000 (12:16 -0700)
commit2776ecb1d4f18d478e4a80fb184182aef7e570d3
tree4839959cb1e322dbabbaba2038fd7c85cb26cdff
parent1ea5b35c8fd8b9433a833b70288957cb8251f2a0
reiserfs: add locking around error buffer

The formatting of the error buffer is race prone. It uses static buffers
for both formatting and output. While overwriting the error buffer
can product garbled output, overwriting the format buffer with incompatible
% directives can cause crashes.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/prints.c