[S390] kprobes: forbid probing of stnsm/stosm/epsw

The probed instructions will be executed in a single stepped and irq
disabled context. Therefore the results of stnsm, stosm and epsw would
be wrong if probed.
So let's just disallow probing of these functions. If really needed a
fixup could be written for each of them, but I doubt it's worth it.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by Heiko Carstens and committed by Martin Schwidefsky bac9f154 215b3096

+3
+3
arch/s390/kernel/kprobes.c
··· 63 63 case 0x0b: /* bsm */ 64 64 case 0x83: /* diag */ 65 65 case 0x44: /* ex */ 66 + case 0xac: /* stnsm */ 67 + case 0xad: /* stosm */ 66 68 return -EINVAL; 67 69 } 68 70 switch (*(__u16 *) instruction) { ··· 74 72 case 0xb258: /* bsg */ 75 73 case 0xb218: /* pc */ 76 74 case 0xb228: /* pt */ 75 + case 0xb98d: /* epsw */ 77 76 return -EINVAL; 78 77 } 79 78 return 0;