In the Linux kernel, the following vulnerability has been resolved: dm-integrity: fix a bug if the bio is out of limits If dm_integrity_check_limits fails, the code would exit with DM_MAPIO_KILL. However, the range would be already locked at this point, and it wouldn't be unlocked, resulting in a deadlock. Let's move the limit check up, so that when it exits, no resources are leaked.
https://git.kernel.org/stable/c/f7989286175f32db8605e767a1a2efc62e894dc8
https://git.kernel.org/stable/c/aa5113e7155f4ea81d2c0303ab5cb272d4b32627
https://git.kernel.org/stable/c/5a266764fadaff8b5c1fe37a186ebf9b09cb953e
https://git.kernel.org/stable/c/3d1afaa074622859678b1a1e7c1b9c0af74c89b0