Thread (13 messages) flat view 13 messages, 4 authors, 2008-01-15

Re: [FIB]: Avoid using static variables without proper locking

From: David Miller <davem@davemloft.net>
Date: 2008-01-15 07:10:33

From: Eric Dumazet <redacted>
Date: Mon, 14 Jan 2008 20:27:11 +0100
fib_trie_seq_show() uses two helper functions, rtn_scope() and 
rtn_type() that can
write to static storage without locking.

Just pass to them a temporary buffer to avoid potential  corruption
(probably not triggerable but still...)

Signed-off-by: Eric Dumazet <redacted>
Applied to net-2.6.25, but I had to tweak it to apply
cleanly since the %d in rtn_type() is now a %u
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help