In the Linux kernel, the following vulnerability has been resolved: block/rnbd-srv: drop the sess_dev kobject unlocked rnbd_srv_create_dev_session_sysfs() drops the kobject reference when it fails. The release function is rnbd_destroy_sess_dev(), which takes srv_dev->lock, and the caller holds that lock: the worker deadlocks on itself. A client opening one device as "ram0" and "./ram0" gets there through -EEXIST from kobject_add(). Have process_msg_open() drop the reference after releasing the lock, and leave the rest of the cleanup to the release function.
https://git.kernel.org/stable/c/fedc9790a6244a78dddd7960624ad9d00cc1a483
https://git.kernel.org/stable/c/fe6edac8f026c17b2ccf378de9ed77f2eebb86c6
https://git.kernel.org/stable/c/b372510d792ab1ee6feaa51affc750ad19e5f5c3
https://git.kernel.org/stable/c/a110a2d2d319bd88678d376192dba618a27e6689
https://git.kernel.org/stable/c/81941915d53ef3384ab4e4b68e92673e66cf66d7
https://git.kernel.org/stable/c/7ebd7b6652a45ced3ea6455c4516d1bff9667b77
https://git.kernel.org/stable/c/4062767ee2066685018987e24645741350acff9b