linux/arch/s390
Michael Holzheu 272fa59ccb s390/dis: Fix handling of format specifiers
The print_insn() function returns strings like "lghi %r1,0". To escape the
'%' character in sprintf() a second '%' is used. For example "lghi %%r1,0"
is converted into "lghi %r1,0".

After print_insn() the output string is passed to printk(). Because format
specifiers like "%r" or "%f" are ignored by printk() this works by chance
most of the time. But for instructions with control registers like
"lctl %c6,%c6,780" this fails because printk() interprets "%c" as
character format specifier.

Fix this problem and escape the '%' characters twice.

For example "lctl %%%%c6,%%%%c6,780" is then converted by sprintf()
into "lctl %%c6,%%c6,780" and by printk() into "lctl %c6,%c6,780".

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2015-12-18 14:43:21 +01:00
..
appldata
boot
configs
crypto
hypfs
include s390: wire up mlock2 system call 2015-11-16 12:51:07 +01:00
kernel s390/dis: Fix handling of format specifiers 2015-12-18 14:43:21 +01:00
kvm KVM: s390: fix wrong lookup of VCPUs by array index 2015-11-19 14:47:43 +01:00
lib
mm s390: avoid cache aliasing under z/VM and KVM 2015-11-16 12:04:18 +01:00
net
numa
oprofile
pci s390/pci_dma: improve debugging of errors during dma map 2015-11-09 09:10:49 +01:00
Kbuild
Kconfig IOMMU Updates for Linux v4.4 2015-11-05 16:12:10 -08:00
Kconfig.debug
Makefile
defconfig