Guenter Roeck
4e98f3b11a
hwmon: (f71805f) Use request_muxed_region for Super-IO accesses
...
[ Upstream commit 73e6ff71a7 ]
Super-IO accesses may fail on a system with no or unmapped LPC bus.
Unable to handle kernel paging request at virtual address ffffffbffee0002e
pgd = ffffffc1d68d4000
[ffffffbffee0002e] *pgd=0000000000000000, *pud=0000000000000000
Internal error: Oops: 94000046 [#1 ] PREEMPT SMP
Modules linked in: f71805f(+) hwmon
CPU: 3 PID: 1659 Comm: insmod Not tainted 4.5.0+ #88
Hardware name: linux,dummy-virt (DT)
task: ffffffc1f6665400 ti: ffffffc1d6418000 task.ti: ffffffc1d6418000
PC is at f71805f_find+0x6c/0x358 [f71805f]
Also, other drivers may attempt to access the LPC bus at the same time,
resulting in undefined behavior.
Use request_muxed_region() to ensure that IO access on the requested
address space is supported, and to ensure that access by multiple
drivers is synchronized.
Fixes: e53004e20a ("hwmon: New f71805f driver")
Reported-by: Kefeng Wang <wangkefeng.wang@huawei.com >
Reported-by: John Garry <john.garry@huawei.com >
Cc: John Garry <john.garry@huawei.com >
Acked-by: John Garry <john.garry@huawei.com >
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2019-05-31 06:46:22 -07:00
..
2018-11-13 11:08:16 -08:00
2014-10-03 08:19:02 -07:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2015-10-14 07:57:14 -07:00
2013-04-16 18:27:52 -07:00
2018-06-12 16:19:22 -07:00
2016-06-27 18:58:03 -07:00
2017-04-02 07:01:53 -07:00
2014-08-04 07:01:35 -07:00
2017-08-13 08:24:38 -07:00
2015-10-28 10:30:17 +09:00
2017-01-02 10:19:45 -08:00
2017-01-02 10:19:45 -08:00
2017-01-02 10:19:45 -08:00
2014-08-04 07:01:35 -07:00
2017-01-02 10:19:45 -08:00
2017-01-02 10:19:45 -08:00
2017-08-13 08:24:38 -07:00
2017-04-02 07:01:53 -07:00
2016-06-27 18:58:03 -07:00
2017-01-02 10:19:45 -08:00
2017-11-02 11:10:55 +01:00
2015-10-28 10:30:17 +09:00
2013-04-07 21:16:38 -07:00
2017-01-02 10:19:45 -08:00
2016-12-09 21:54:31 -08:00
2017-01-02 10:19:45 -08:00
2018-08-26 17:45:25 -07:00
2016-12-02 13:28:04 -08:00
2017-09-14 11:59:30 +02:00
2017-01-02 10:19:45 -08:00
2017-10-29 18:36:03 -07:00
2018-06-12 16:19:22 -07:00
2018-06-01 09:38:36 -07:00
2017-01-02 10:19:45 -08:00
2018-06-12 16:19:22 -07:00
2017-10-21 09:03:29 -07:00
2014-10-20 16:20:36 +02:00
2018-06-16 16:40:36 -07:00
2017-01-10 08:57:55 -08:00
2017-06-11 17:08:19 -07:00
2017-01-02 10:19:45 -08:00
2016-12-12 11:33:44 -08:00
2018-07-08 20:08:13 -07:00
2017-01-02 10:19:45 -08:00
2019-05-31 06:46:22 -07:00
2017-01-02 10:19:45 -08:00
2013-10-13 16:16:27 -07:00
2017-01-02 10:19:45 -08:00
2018-05-21 07:51:59 -07:00
2017-08-29 17:44:23 -07:00
2017-01-02 10:19:45 -08:00
2018-03-10 19:00:14 -08:00
2017-01-10 08:58:36 -08:00
2017-01-10 08:59:35 -08:00
2018-06-12 16:19:22 -07:00
2018-01-02 15:05:34 -08:00
2018-02-15 01:15:52 +01:00
2018-11-21 09:19:19 +01:00
2018-06-12 16:19:22 -07:00
2017-01-02 10:19:45 -08:00
2016-01-04 08:56:22 -08:00
2018-06-12 16:19:22 -07:00
2018-11-27 16:13:04 +01:00
2018-07-23 11:38:33 -07:00
2018-12-17 09:24:32 +01:00
2017-04-21 12:30:09 -07:00
2016-06-27 18:58:04 -07:00
2017-08-13 08:24:38 -07:00
2017-11-30 13:12:44 -08:00
2017-01-02 10:19:45 -08:00
2018-02-15 01:15:52 +01:00
2018-08-09 12:56:56 -07:00
2019-04-17 08:38:47 +02:00
2014-08-04 07:01:37 -07:00
2017-04-02 07:01:53 -07:00
2017-01-21 12:26:38 -08:00
2013-10-13 16:16:28 -07:00
2018-01-17 14:51:12 -08:00
2013-03-18 21:19:49 +01:00
2014-07-31 09:41:46 -07:00
2017-01-02 10:19:45 -08:00
2019-02-23 09:07:26 +01:00
2017-01-02 10:19:45 -08:00
2017-04-02 07:01:53 -07:00
2017-04-13 06:09:26 -07:00
2017-04-02 07:01:53 -07:00
2018-03-22 09:33:24 -07:00
2017-01-02 10:19:45 -08:00
2017-01-02 10:19:45 -08:00
2016-09-13 07:28:01 -07:00
2017-04-02 07:01:53 -07:00
2014-08-04 07:01:35 -07:00
2018-05-21 07:52:01 -07:00
2017-01-21 08:57:41 -08:00
2014-03-03 08:01:05 -08:00
2014-08-04 07:01:35 -07:00
2017-06-11 17:08:19 -07:00
2014-08-04 07:01:35 -07:00
2013-10-18 09:12:00 -07:00
2017-09-01 07:24:14 -07:00
2018-08-23 13:52:46 -07:00
2018-07-07 17:52:26 +02:00
2017-01-02 10:19:45 -08:00
2017-10-29 18:36:03 -07:00
2014-08-04 07:01:39 -07:00
2017-10-29 18:36:03 -07:00
2017-06-11 17:08:19 -07:00
2014-01-29 20:40:08 +01:00
2017-01-02 10:19:45 -08:00
2017-04-02 07:01:53 -07:00
2014-08-04 07:01:38 -07:00
2016-04-19 06:32:34 -07:00
2017-03-22 00:18:20 -07:00
2018-07-07 17:52:26 +02:00
2017-01-02 10:19:45 -08:00
2014-11-03 19:53:56 -08:00
2018-12-17 09:24:32 +01:00
2018-06-12 16:19:22 -07:00
2018-09-17 05:38:50 -07:00
2017-08-13 08:24:38 -07:00
2018-07-08 20:08:13 -07:00
2018-10-05 18:06:30 -07:00
2017-01-02 10:19:45 -08:00
2016-09-08 21:34:15 -07:00
2017-01-02 10:19:45 -08:00
2019-05-31 06:46:22 -07:00
2017-01-02 10:19:45 -08:00
2014-08-04 07:01:33 -07:00
2019-05-16 19:41:18 +02:00
2018-12-17 09:24:31 +01:00
2014-10-20 16:20:36 +02:00
2017-01-02 10:19:45 -08:00
2012-05-30 07:55:38 +02:00
2017-01-02 10:19:45 -08:00
2016-04-25 07:26:29 -07:00
2018-04-22 19:39:55 -07:00
2017-08-13 08:24:38 -07:00
2018-01-12 14:18:39 -08:00
2018-01-02 15:05:34 -08:00
2018-03-10 19:00:14 -08:00
2014-06-12 08:36:48 -07:00
2017-01-02 10:19:45 -08:00
2014-08-04 07:01:37 -07:00
2019-05-31 06:46:22 -07:00
2019-05-31 06:46:22 -07:00
2017-01-02 10:19:45 -08:00
2017-10-29 18:36:03 -07:00
2015-06-21 22:54:53 -07:00
2016-12-02 13:28:05 -08:00
2014-08-04 07:01:39 -07:00
2017-10-24 06:17:14 -07:00
2017-04-24 06:30:41 -07:00
2016-12-09 21:54:25 -08:00
2017-01-10 09:01:32 -08:00
2019-02-27 10:08:57 +01:00
2014-10-20 16:20:36 +02:00
2016-03-05 06:25:33 -08:00
2017-01-02 10:19:45 -08:00
2018-03-30 07:53:57 -07:00
2019-05-31 06:46:21 -07:00
2017-01-02 10:19:45 -08:00
2014-04-04 18:01:34 +02:00
2014-08-04 07:01:34 -07:00
2017-04-02 07:01:53 -07:00
2017-01-02 10:19:45 -08:00
2018-01-02 15:05:34 -08:00
2017-11-16 01:01:55 -08:00
2017-11-16 01:02:23 -08:00
2017-11-16 01:02:43 -08:00
2017-11-16 01:03:19 -08:00
2018-12-17 09:24:33 +01:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2017-11-01 06:14:52 -07:00