Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[datapipe] Detect and mitigate recursive datapipe execution. Fixes JB…
…#22475 If the same datapipe ends up executed in recursive manner, it can cause problems that are really difficult to find and diagnose: Partially finished level N notifications are finished after returning from level N+1 recursive call - which easily leaves some parts of mce logic out of sync with other parts. Add execution token to datapipe structure, increment it on entry to datapipe_exec_full() function, and bailout if the token gets modified during notification list traversal. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
2 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters