Messages in this thread | | | Date | Mon, 19 Feb 2018 11:15:00 -0500 (EST) | Subject | Re: [PATCH] tun: fix mismatch in mutex lock-unlock in tun_get_user() | From | David Miller <> |
| |
From: Alexey Khoroshilov <khoroshilov@ispras.ru> Date: Sat, 17 Feb 2018 01:11:55 +0300
> There is a single error path where tfile->napi_mutex is left unlocked. > It can lead to a deadlock. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
As Eric explained, tun_napi_frags_enabled() (and therefore 'frags') will never be true for TUN devices, which is the type handled by this code path.
| |