diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2018-11-02 19:04:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-03 10:44:05 -0700 |
commit | e19e5be8b4cafa8b3f8b0cd1b1dfe20fa0145b83 (patch) | |
tree | f2a8fdc8dad7f905403fd87053959a4d5de2130e /lib/iommu-helper.c | |
parent | 265ad0632fef0fac447894b26fcf91562fbb0e30 (diff) | |
download | linux-e19e5be8b4cafa8b3f8b0cd1b1dfe20fa0145b83.tar.bz2 |
s390/qeth: sanitize strings in debug messages
As Documentation/s390/s390dbf.txt states quite clearly, using any
pointer in sprinf-formatted s390dbf debug entries is dangerous.
The pointers are dereferenced whenever the trace file is read from.
So if the referenced data has a shorter life-time than the trace file,
any read operation can result in a use-after-free.
So rip out all hazardous use of indirect data, and replace any usage of
dev_name() and such by the Bus ID number.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/iommu-helper.c')
0 files changed, 0 insertions, 0 deletions