linux-stable/drivers/s390/char
Alexander Gordeev ec75af7e81 s390/early: fix sclp_early_sccb variable lifetime
[ Upstream commit 639886b71d ]

Commit ada1da31ce ("s390/sclp: sort out physical vs
virtual pointers usage") fixed the notion of virtual
address for sclp_early_sccb pointer. However, it did
not take into account that kasan_early_init() can also
output messages and sclp_early_sccb should be adjusted
by the time kasan_early_init() is called.

Currently it is not a problem, since virtual and physical
addresses on s390 are the same. Nevertheless, should they
ever differ, this would cause an invalid pointer access.

Fixes: ada1da31ce ("s390/sclp: sort out physical vs virtual pointers usage")
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:32:53 +01:00
..
Kconfig
Makefile
con3215.c
con3270.c
ctrlchar.c
ctrlchar.h
defkeymap.c
defkeymap.map
diag_ftp.c
diag_ftp.h
fs3270.c
hmcdrv_cache.c
hmcdrv_cache.h
hmcdrv_dev.c
hmcdrv_dev.h
hmcdrv_ftp.c
hmcdrv_ftp.h
hmcdrv_mod.c
keyboard.c
keyboard.h
monreader.c
monwriter.c
raw3270.c
raw3270.h
sclp.c
sclp.h
sclp_ap.c
sclp_cmd.c
sclp_con.c
sclp_config.c
sclp_cpi_sys.c
sclp_cpi_sys.h
sclp_ctl.c
sclp_diag.h
sclp_early.c
sclp_early_core.c
sclp_ftp.c
sclp_ftp.h
sclp_ocf.c
sclp_pci.c
sclp_quiesce.c
sclp_rw.c
sclp_rw.h
sclp_sd.c
sclp_sdias.c
sclp_sdias.h
sclp_tty.c
sclp_tty.h
sclp_vt220.c
tape.h
tape_34xx.c
tape_3590.c
tape_3590.h
tape_char.c
tape_class.c
tape_class.h
tape_core.c
tape_proc.c
tape_std.c
tape_std.h
tty3270.c
tty3270.h
uvdevice.c
vmcp.c
vmlogrdr.c
vmur.c
vmur.h
zcore.c