mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
Some control API callbacks in aloop driver are too lazy to take the loopback->cable_lock and it results in possible races of cable access while it's being freed. It eventually lead to a UAF, as reported by fuzzer recently. This patch covers such control API callbacks and add the proper mutex locks. Reported-by: DaeRyong Jeong <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>