Re: [PATCH] isdn: i4l: isdn_tty: Fix some concurrency double-free bugs
From: David Miller
Date: Fri Jan 11 2019 - 20:57:15 EST
From: Jia-Ju Bai <baijiaju1990@xxxxxxxxx>
Date: Tue, 8 Jan 2019 21:04:48 +0800
> The functions isdn_tty_tiocmset() and isdn_tty_set_termios() may be
> concurrently executed.
...
> These possible bugs are found by a static tool written by myself and
> my manual code review.
>
> To fix these possible bugs, the mutex lock "modem_info_mutex" used in
> isdn_tty_tiocmset() is added in isdn_tty_set_termios().
>
> Signed-off-by: Jia-Ju Bai <baijiaju1990@xxxxxxxxx>
Applied.