In the Linux kernel, the following vulnerability has been resolved:
dm crypt: add condresched() to dmcryptwrite()
The loop in dmcryptwrite may be running for unbounded amount of time, thus we need condresched() in it.
This commit fixes the following warning:
[ 3391.153255][ C12] watchdog: BUG: soft lockup - CPU#12 stuck for 23s! [dmcryptwrite/2:2897] ... [ 3391.387210][ C12] Call trace: [ 3391.390338][ C12] blkattemptbiomerge.part.6+0x38/0x158 [ 3391.395970][ C12] blkattemptplugmerge+0xc0/0x1b0 [ 3391.401085][ C12] blkmqsubmitbio+0x398/0x550 [ 3391.405856][ C12] submitbionoacct+0x308/0x380 [ 3391.410630][ C12] dmcryptwrite+0x1e4/0x208 [dmcrypt] [ 3391.416005][ C12] kthread+0x130/0x138 [ 3391.419911][ C12] retfromfork+0x10/0x18