]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcrypt: kernel oops at insmod of the z90crypt device driver
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Wed, 10 Dec 2014 09:23:59 +0000 (10:23 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 18 Dec 2014 08:55:55 +0000 (09:55 +0100)
commitf56cfd91112a916eec4173a7bb7452bdc9c6806b
treec04f74a8b1f3b35c489bbcdccdb56bbfb4f98b24
parent340da758dd1ed7c3c1145fb070291b8b898807e3
s390/zcrypt: kernel oops at insmod of the z90crypt device driver

Kernel oops caused by invalid parameter at TAPQ instruction:
On older systems where the QCI instruction is not available
all possible domains are probed via TAPQ instruction. The
range for the probe has been extended with the > 16 domain
support now leading to a possible specification exception
when this instruction is called for probing higher values
within the new range. This may happen during insmod and/or
ap bus reset only on machines without a QCI instruction (z10,
z196, z114), zEC12 and newer systems are not affected.
The fix modifies the domain checking function to limit the
allowed range if no QCI info is available.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c