Guenter Roeck
915defac2a
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-06-11 12:24:00 +02:00
..
2018-11-21 09:27:30 +01: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
2013-12-07 01:03:14 +01:00
2015-10-28 10:30:17 +09:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:35 -07:00
2015-01-25 21:24:00 -08:00
2015-10-28 10:30:17 +09:00
2014-08-04 07:01:36 -07:00
2014-08-05 19:44:36 -07:00
2014-08-05 19:44:36 -07:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:37 -07:00
2014-08-04 07:01:37 -07:00
2016-03-03 15:07:25 -08:00
2016-06-07 18:14:34 -07:00
2015-10-28 10:30:17 +09:00
2013-04-07 21:16:38 -07:00
2013-04-07 21:16:38 -07:00
2015-10-28 10:30:17 +09:00
2013-04-07 21:16:38 -07:00
2016-10-07 15:23:42 +02:00
2014-08-04 07:01:39 -07:00
2014-08-04 07:01:39 -07:00
2018-10-10 08:52:09 +02:00
2017-01-12 11:22:48 +01:00
2015-11-15 21:52:39 -08:00
2014-08-05 19:44:36 -07:00
2014-08-04 07:01:38 -07:00
2017-12-25 14:22:12 +01:00
2015-05-31 22:58:36 -07:00
2015-10-14 07:57:14 -07:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2016-07-27 09:47:37 -07:00
2014-10-20 16:20:36 +02:00
2017-01-12 11:22:48 +01:00
2014-08-28 11:18:47 -07:00
2014-08-05 17:49:12 -07:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:40 -07:00
2019-06-11 12:24:00 +02:00
2015-08-09 13:44:26 -07:00
2013-10-13 16:16:27 -07:00
2015-10-31 15:43:41 -07:00
2013-04-07 21:16:40 -07:00
2014-08-04 07:01:37 -07:00
2017-01-12 11:22:48 +01:00
2014-08-04 07:01:36 -07:00
2017-10-08 10:14:17 +02:00
2016-03-03 15:07:25 -08:00
2014-08-05 19:40:27 -07:00
2014-08-04 07:01:35 -07:00
2013-09-10 06:28:17 -07:00
2014-03-03 08:01:06 -08:00
2014-10-20 16:20:36 +02:00
2015-01-24 14:16:22 +01:00
2014-07-23 15:01:44 -07:00
2015-03-09 09:59:35 -07:00
2018-11-27 16:08:01 +01:00
2016-09-07 08:32:46 +02:00
2018-12-17 21:55:10 +01:00
2013-10-18 09:11:57 -07:00
2015-08-09 13:44:27 -07:00
2015-03-09 09:59:35 -07:00
2014-10-20 16:20:36 +02:00
2014-01-14 21:36:30 -08:00
2015-11-09 10:14:29 +01:00
2015-12-18 08:19:52 -08:00
2014-08-04 07:01:37 -07:00
2014-08-04 07:01:36 -07:00
2015-10-28 10:30:17 +09:00
2013-10-13 16:16:28 -07:00
2015-10-14 07:57:14 -07:00
2013-03-18 21:19:49 +01:00
2014-07-31 09:41:46 -07:00
2014-10-20 16:20:36 +02:00
2019-02-23 09:05:13 +01:00
2014-05-21 16:02:26 -07:00
2015-04-17 09:03:55 -04:00
2014-08-05 19:44:42 -07:00
2014-04-04 18:01:35 +02:00
2014-08-05 17:48:52 -07:00
2014-08-04 07:01:36 -07:00
2014-12-02 06:11:53 -08:00
2014-03-03 08:01:04 -08:00
2014-12-02 03:44:18 -08:00
2014-08-04 07:01:35 -07:00
2014-06-12 08:36:47 -07:00
2014-03-03 08:01:05 -08:00
2014-08-04 07:01:35 -07:00
2014-03-03 08:01:05 -08:00
2014-08-04 07:01:35 -07:00
2013-10-18 09:12:00 -07:00
2015-11-10 15:00:03 -08:00
2015-05-31 22:58:36 -07:00
2016-04-20 15:41:52 +09:00
2014-05-21 16:02:25 -07:00
2014-08-04 07:01:39 -07:00
2014-08-04 07:01:39 -07:00
2014-01-29 20:40:08 +01:00
2014-03-03 08:01:06 -08:00
2014-08-04 07:01:40 -07:00
2014-08-04 07:01:38 -07:00
2015-10-14 07:57:14 -07:00
2014-10-20 16:20:36 +02:00
2015-07-01 13:56:27 -07:00
2014-11-03 19:53:56 -08:00
2015-05-29 17:47:42 -07:00
2018-05-30 07:49:10 +02:00
2017-01-12 11:22:48 +01:00
2015-08-05 08:31:59 -07:00
2015-08-03 23:15:50 +08:00
2014-10-20 16:20:36 +02:00
2019-06-11 12:23:59 +02:00
2014-01-29 20:40:08 +01:00
2014-08-04 07:01:33 -07:00
2015-09-20 17:50:19 -07:00
2014-10-20 16:20:36 +02:00
2013-04-07 21:16:40 -07:00
2012-05-30 07:55:38 +02:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2017-01-12 11:22:48 +01:00
2015-08-10 23:00:10 -07:00
2014-08-04 07:01:38 -07:00
2014-06-12 08:36:48 -07:00
2014-10-20 16:20:36 +02:00
2014-08-04 07:01:37 -07:00
2019-06-11 12:23:59 +02:00
2019-06-11 12:23:59 +02:00
2014-08-04 07:01:39 -07:00
2015-06-21 22:54:53 -07:00
2014-08-04 07:01:39 -07:00
2015-12-10 08:14:22 -08:00
2014-09-22 11:11:48 -07:00
2015-05-29 13:37:06 -07:00
2014-08-04 07:01:38 -07:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2015-03-16 13:00:32 -07:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2019-06-11 12:23:59 +02:00
2014-10-20 16:20:36 +02:00
2014-04-04 18:01:34 +02:00
2014-08-04 07:01:34 -07:00
2015-07-03 14:39:06 +02:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00
2014-08-05 19:44:42 -07:00
2015-07-03 14:39:05 +02:00
2014-08-05 19:44:42 -07:00
2018-12-17 21:55:10 +01:00
2014-10-20 16:20:36 +02:00
2014-10-20 16:20:36 +02:00