Re: [PATCH 3/3] Fix race in ipv6_flowlabel_opt() when inserting two labels

2007-10-18 Thread David Miller
From: Pavel Emelyanov <[EMAIL PROTECTED]> Date: Thu, 18 Oct 2007 15:59:14 +0400 > In the IPV6_FL_A_GET case the hash is checked for flowlabels > with the given label. If it is not found, the lock, protecting > the hash, is dropped to be re-get for writing. After this a > newly allocated entry is

[PATCH 3/3] Fix race in ipv6_flowlabel_opt() when inserting two labels

2007-10-18 Thread Pavel Emelyanov
In the IPV6_FL_A_GET case the hash is checked for flowlabels with the given label. If it is not found, the lock, protecting the hash, is dropped to be re-get for writing. After this a newly allocated entry is inserted, but no checks are performed to catch a classical SMP race, when the conflicting