Qinglang Miao
1b4f4a160b
s390/cio: fix use-after-free in ccw_device_destroy_console
...
[ Upstream commit 14d4c4fa46eeaa3922e8e1c4aa727eb0a1412804 ]
Use of sch->dev reference after the put_device() call could trigger
the use-after-free bugs.
Fix this by simply adjusting the position of put_device.
Fixes: 37db8985b211 ("s390/cio: add basic protected virtualization support")
Reported-by: Hulk Robot <hulkci@huawei.com>
Suggested-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com>
[vneethv@linux.ibm.com: Slight modification in the commit-message]
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:46 +01:00
..
2020-03-11 14:18:44 +01:00
2020-02-17 18:01:57 +01:00
2020-03-27 10:22:47 +01:00
2019-06-15 12:25:00 +02:00
2020-02-17 18:01:57 +01:00
2019-06-24 05:22:31 +02:00
2020-10-16 12:36:38 -07:00
2020-09-15 13:21:46 -07:00
2020-03-11 14:18:44 +01:00
2019-10-10 10:49:46 +02:00
2020-10-16 12:36:38 -07:00
2020-09-15 13:21:46 -07:00
2019-06-15 12:25:00 +02:00
2019-06-15 12:25:00 +02:00
2020-09-15 13:21:46 -07:00
2019-06-15 12:25:00 +02:00
2019-06-15 12:25:00 +02:00
2020-12-30 11:53:46 +01:00
2020-09-30 12:09:54 +02:00
2020-05-20 10:22:49 +02:00
2019-06-15 12:25:00 +02:00
2020-06-02 13:14:08 +02:00
2020-07-20 10:55:18 +02:00
2020-04-06 13:13:50 +02:00
2020-09-14 10:30:07 +02:00
2020-09-14 10:30:07 +02:00
2020-04-28 13:49:47 +02:00
2020-07-20 10:55:26 +02:00
2019-06-24 05:22:31 +02:00
2019-07-29 18:05:03 +02:00
2020-07-03 11:41:31 +02:00
2020-06-02 13:14:08 +02:00
2019-10-17 11:35:56 +02:00
2020-06-03 11:28:19 +02:00
2019-10-17 11:37:24 +02:00
2020-06-03 11:27:43 +02:00
2020-06-03 11:28:19 +02:00
2020-06-03 11:28:19 +02:00
2020-06-03 11:28:19 +02:00