[RTEMS Project] #4956: Deadlock caused by locking inversion in JFFS2
RTEMS trac
trac at rtems.org
Wed Sep 20 16:58:43 UTC 2023
#4956: Deadlock caused by locking inversion in JFFS2
---------------------------+--------------------
Reporter: Kinsey Moore | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: admin | Version:
Severity: normal | Keywords:
Blocked By: | Blocking:
---------------------------+--------------------
When the code for delayed writes was added to support JFFS2 on NAND, it
introduced a possible locking inversion when managing the delayed write
work queue.
This has been partially addressed by
fa85760c99a72b8186c70c896b98efe0d7cde2b6, but there are other issues with
this code that need to be addressed as well.
First is that when not compiling with RTEMS_DEBUG, nodes are not
automatically set as off the chain upon extraction and this behavior is
depended upon.
Second is that protected (ISR-locked) chain calls are used when they are
not necessary due to already being locked.
Third is that the bug fixed by the referenced commit needs a test that
verifies the fix.
--
Ticket URL: <http://devel.rtems.org/ticket/4956>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list