Actions
Bug #7457
openEMG should not use the same lock context for callbacks inside registration
Start date:
08/08/2016
Due date:
% Done:
0%
Estimated time:
Detected in build:
svn
Platform:
Published in build:
Description
The heuristic which perform invocation immediately after registration should respect lock context.
The callback of the registered structure should not be called under locks acquired just before registration function.
For example:
http://ldvstore:8998/reports/unsafe/699969/
The function ib_umad_compat_ioctl->ib_umad_reg_agent
1. Acquires mutex_lock file->mutex
2. Calls registration ldv_ib_register_mad_agent_26->ldv_dispatch_register_5_1
3. Immediately calls ldv_control_function_4 (callbacks of different structure)
which in turn calls
3a. ib_umad_add_one->ib_umad_kill_port which aquires file->mutex
No data to display
Actions