diff options
author | 2010-06-02 14:31:29 +0200 | |
---|---|---|
committer | 2010-06-14 12:19:41 +0200 | |
commit | dc66c74de6f4238020db3e2041d4aca5c5b3e9bc (patch) | |
tree | 8df9cdd2f1672217a210e624f4613744e57450e0 /lib/genalloc.c | |
parent | Linux 2.6.35-rc3 (diff) | |
download | wireguard-linux-dc66c74de6f4238020db3e2041d4aca5c5b3e9bc.tar.xz wireguard-linux-dc66c74de6f4238020db3e2041d4aca5c5b3e9bc.zip |
drbd: Fixed a race between disk-attach and unexpected state changes
This was a very hard to trigger race condition.
If we got a state packet from the peer, after drbd_nl_disk() has
already changed the disk state to D_NEGOTIATING but
after_state_ch() was not yet run by the worker, then receive_state()
might called drbd_sync_handshake(), which in turn crashed
when accessing p_uuid.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions