Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Deadlock in of_controller #269

@zzxgzgz

Description

@zzxgzgz

In
https://github.com/futurewei-cloud/alcor-control-agent/blob/master/src/ovs/of_controller.cpp#L126,
the program gets the lock.

However, if the following if statements are true, the remove_switch_from_conn_map(bridge); and remove_switch_from_conn_map(ofconn_id); will also try to get the lock, which causes a deadlock.

This bug was discovered when testing with cbench with multiple switches.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions