Heiko Carstens
0b991f5cdc
s390/cachinfo: add missing facility check to init_cache_level()
Stephen Powell reported the following crash on a z890 machine:
Kernel BUG at 00000000001219d0 [verbose debug info unavailable]
illegal operation: 0001 ilc:3 [#1] SMP
Krnl PSW : 0704e00180000000 00000000001219d0 (init_cache_level+0x38/0xe0)
R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:3 CC:2 PM:0 EA:3
Krnl Code: 00000000001219c2: a7840056 brc 8,121a6e
00000000001219c6: a7190000 lghi %r1,0
#00000000001219ca: eb101000004c ecag %r1,%r0,0(%r1)
>00000000001219d0: a7390000 lghi %r3,0
00000000001219d4: e310f0a00024 stg %r1,160(%r15)
00000000001219da: a7080000 lhi %r0,0
00000000001219de: a7b9f000 lghi %r11,-4096
00000000001219e2: c0a0002899d9 larl %r10,634d94
Call Trace:
[<0000000000478ee2>] detect_cache_attributes+0x2a/0x2b8
[<000000000097c9b0>] cacheinfo_sysfs_init+0x60/0xc8
[<00000000001001c0>] do_one_initcall+0x98/0x1c8
[<000000000094fdc2>] kernel_init_freeable+0x212/0x2d8
[<000000000062352e>] kernel_init+0x26/0x118
[<000000000062fd2e>] kernel_thread_starter+0x6/0xc
The illegal operation was executed because of a missing facility check,
which should have made sure that the ECAG execution would only be executed
on machines which have the general-instructions-extension facility
installed.
Reported-and-tested-by: Stephen Powell <zlinuxman@wowway.com>
Cc: stable@vger.kernel.org # v4.0+
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2015-07-28 08:54:42 +02:00
..
2014-10-27 13:27:02 +01:00
2015-02-12 09:37:21 +01:00
2012-05-16 14:42:41 +02:00
2015-07-20 13:22:18 +02:00
2015-06-25 09:39:26 +02:00
2015-07-28 08:54:42 +02:00
2014-12-05 17:19:27 -06:00
2014-10-09 09:14:13 +02:00
2011-01-05 12:47:31 +01:00
2015-04-12 20:58:25 +02:00
2015-06-25 17:00:38 -07:00
2015-03-25 11:49:33 +01:00
2015-06-25 09:39:26 +02:00
2015-05-22 10:36:29 -07:00
2015-03-25 11:49:33 +01:00
2015-03-25 11:49:33 +01:00
2015-03-25 11:49:33 +01:00
2015-03-25 11:49:33 +01:00
2012-07-20 11:15:04 +02:00
2015-01-08 10:02:49 +01:00
2015-07-20 13:22:18 +02:00
2015-03-25 11:49:43 +01:00
2014-02-05 11:00:50 +01:00
2015-03-25 11:49:33 +01:00
2015-03-25 11:49:33 +01:00
2014-12-08 09:42:32 +01:00
2015-03-25 11:49:50 +01:00
2015-04-15 09:00:47 -07:00
2015-03-25 11:49:43 +01:00
2015-03-25 11:49:43 +01:00
2012-09-26 15:45:12 +02:00
2015-01-22 12:16:01 +01:00
2015-03-25 11:49:51 +01:00
2015-01-29 09:19:25 +01:00
2015-03-25 11:49:33 +01:00
2015-07-13 11:02:21 +02:00
2013-04-29 15:42:01 -04:00
2013-12-16 14:37:50 +01:00
2014-08-26 13:45:52 -04:00
2015-05-28 11:32:10 +09:30
2014-03-14 12:59:32 +01:00
2015-03-25 11:49:33 +01:00
2015-07-13 11:02:18 +02:00
2015-03-02 11:35:53 -08:00
2015-03-25 11:49:33 +01:00
2015-03-25 11:49:34 +01:00
2015-03-25 11:49:34 +01:00
2014-04-03 14:30:52 +02:00
2013-12-16 14:38:04 +01:00
2015-07-07 09:28:29 +02:00
2015-07-17 16:39:52 -07:00
2015-04-15 13:53:55 -07:00
2015-06-29 10:13:11 +02:00
2012-07-20 11:15:04 +02:00
2015-06-08 07:55:03 -05:00
2015-03-25 11:49:51 +01:00
2015-03-25 11:49:33 +01:00
2015-03-25 11:49:35 +01:00
2015-02-13 09:55:09 -08:00
2015-05-22 10:36:29 -07:00
2015-03-25 11:49:45 +01:00
2015-07-20 13:22:18 +02:00
2015-03-25 11:49:47 +01:00
2015-03-25 11:49:33 +01:00
2015-03-25 11:49:33 +01:00
2015-01-22 12:16:01 +01:00