alistair23-linux/drivers/s390/crypto
Harald Freudenberger a1b2925e6b s390/zcrypt: fix card and queue total counter wrap
[ Upstream commit fcd98d4002 ]

The internal statistic counters for the total number of
requests processed per card and per queue used integers. So they do
wrap after a rather huge amount of crypto requests processed. This
patch introduces uint64 counters which should hold much longer but
still may wrap. The sysfs attributes request_count for card and queue
also used only %ld and now display the counter value with %llu.

This is not a security relevant fix. The int overflow which happened
is not in any way exploitable as a security breach.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-03-05 16:43:36 +01:00
..
ap_bus.c s390/zcrypt: move ap device reset from bus to driver code 2020-02-05 21:22:44 +00:00
ap_bus.h s390/zcrypt: fix card and queue total counter wrap 2020-03-05 16:43:36 +01:00
ap_card.c s390/zcrypt: fix card and queue total counter wrap 2020-03-05 16:43:36 +01:00
ap_debug.h
ap_queue.c s390/zcrypt: fix card and queue total counter wrap 2020-03-05 16:43:36 +01:00
Makefile
pkey_api.c s390/pkey: fix missing length of protected key on return 2020-02-19 19:53:04 +01:00
vfio_ap_drv.c
vfio_ap_ops.c
vfio_ap_private.h
zcrypt_api.c s390/zcrypt: fix card and queue total counter wrap 2020-03-05 16:43:36 +01:00
zcrypt_api.h
zcrypt_card.c
zcrypt_cca_key.h
zcrypt_ccamisc.c
zcrypt_ccamisc.h
zcrypt_cex2a.c s390/zcrypt: move ap device reset from bus to driver code 2020-02-05 21:22:44 +00:00
zcrypt_cex2a.h
zcrypt_cex2c.c s390/zcrypt: move ap device reset from bus to driver code 2020-02-05 21:22:44 +00:00
zcrypt_cex2c.h
zcrypt_cex4.c s390/zcrypt: move ap device reset from bus to driver code 2020-02-05 21:22:44 +00:00
zcrypt_cex4.h
zcrypt_debug.h
zcrypt_error.h
zcrypt_msgtype6.c
zcrypt_msgtype6.h
zcrypt_msgtype50.c
zcrypt_msgtype50.h
zcrypt_queue.c