Jia-Ju Bai
2ff33d6637
isdn: i4l: isdn_tty: Fix some concurrency double-free bugs
...
The functions isdn_tty_tiocmset() and isdn_tty_set_termios() may be
concurrently executed.
isdn_tty_tiocmset
isdn_tty_modem_hup
line 719: kfree(info->dtmf_state);
line 721: kfree(info->silence_state);
line 723: kfree(info->adpcms);
line 725: kfree(info->adpcmr);
isdn_tty_set_termios
isdn_tty_modem_hup
line 719: kfree(info->dtmf_state);
line 721: kfree(info->silence_state);
line 723: kfree(info->adpcms);
line 725: kfree(info->adpcmr);
Thus, some concurrency double-free bugs may occur.
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@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2019-01-11 17:56:47 -08:00
..
2019-01-03 18:57:57 -08:00
2018-12-19 09:40:13 +01:00
2019-01-02 18:47:56 -08:00
2018-12-21 21:27:21 +01:00
2019-01-02 18:43:57 -08:00
2019-01-02 18:54:45 -08:00
2018-12-19 13:43:42 +01:00
2018-12-31 17:32:35 -08:00
2018-12-29 08:20:44 -07:00
2019-01-03 18:57:57 -08:00
2019-01-02 18:56:59 -08:00
2018-12-25 15:44:08 -08:00
2018-12-27 10:43:24 -08:00
2018-12-27 10:43:24 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 12:11:47 -08:00
2019-01-01 15:55:29 -08:00
2018-12-19 11:57:45 +01:00
2019-01-03 18:57:57 -08:00
2019-01-03 18:57:57 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 20:00:21 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 20:00:21 -08:00
2018-12-28 20:54:57 -08:00
2018-12-29 13:03:29 -08:00
2018-12-19 20:21:06 +01:00
2018-12-29 13:03:29 -08:00
2018-12-12 17:08:32 +01:00
2018-12-28 13:19:59 -08:00
2018-12-28 20:39:58 -08:00
2019-01-03 18:57:57 -08:00
2019-01-02 18:56:59 -08:00
2019-01-01 15:55:29 -08:00
2018-12-29 09:40:40 -08:00
2019-01-11 17:56:47 -08:00
2018-12-25 14:52:50 -08:00
2018-12-22 14:45:35 -07:00
2019-01-03 18:57:57 -08:00
2018-12-21 22:31:26 -06:00
2018-12-28 16:55:46 -08:00
2019-01-03 18:57:57 -08:00
2018-12-31 17:32:35 -08:00
2018-12-28 16:52:18 -08:00
2018-12-18 23:13:12 -05:00
2018-12-13 16:40:03 +00:00
2019-01-03 18:57:57 -08:00
2018-12-28 16:52:18 -08:00
2018-12-29 12:03:17 -08:00
2019-01-11 15:35:06 -08:00
2018-12-28 16:55:46 -08:00
2018-12-19 08:35:36 +01:00
2018-12-28 20:08:34 -08:00
2018-12-14 16:28:52 +05:30
2018-12-29 13:40:29 -08:00
2019-01-03 18:57:57 -08:00
2019-01-07 14:21:37 -05:00
2019-01-01 13:19:16 -08:00
2019-01-03 18:57:57 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 20:22:45 -08:00
2018-12-29 13:03:29 -08:00
2019-01-08 16:22:56 -05:00
2018-12-24 12:06:56 +01:00
2018-12-22 00:25:54 +09:00
2018-12-21 13:43:35 +00:00
2019-01-01 13:24:31 -08:00
2019-01-02 18:37:01 -08:00
2018-12-26 10:32:18 -08:00
2019-01-03 18:57:57 -08:00
2019-01-04 12:50:43 -08:00
2018-12-25 14:43:54 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 14:48:06 -08:00
2018-12-29 13:03:29 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 20:54:57 -08:00
2019-01-03 18:57:57 -08:00
2019-01-01 15:55:29 -08:00
2019-01-11 17:48:11 -08:00
2019-01-03 18:57:57 -08:00
2019-01-02 18:54:45 -08:00
2018-12-22 00:25:54 +09:00
2019-01-01 13:16:45 -08:00
2019-01-03 18:57:57 -08:00
2018-12-29 13:40:29 -08:00