[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080114.231026.65586727.davem@davemloft.net>
Date: Mon, 14 Jan 2008 23:10:26 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dada1@...mosbay.com
Cc: Robert.Olsson@...a.slu.se, netdev@...r.kernel.org
Subject: Re: [FIB]: Avoid using static variables without proper locking
From: Eric Dumazet <dada1@...mosbay.com>
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 <dada1@...mosbay.com>
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists