linux/arch/s390
Herbert Xu d07f951903 crypto: s390/aes - Fix buffer overread in CTR mode
When processing the last block, the s390 ctr code will always read
a whole block, even if there isn't a whole block of data left.  Fix
this by using the actual length left and copy it into a buffer first
for processing.

Fixes: 0200f3ecc1 ("crypto: s390 - add System z hardware support for CTR mode")
Cc: <stable@vger.kernel.org>
Reported-by: Guangwu Zhang <guazhang@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewd-by: Harald Freudenberger <freude@de.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-12-08 11:59:45 +08:00
..
appldata S390: Remove now superfluous sentinel elem from ctl_table arrays 2023-10-10 15:22:02 -07:00
boot s390/cmma: rework no-dat handling 2023-11-05 22:34:58 +01:00
configs s390: update defconfigs 2023-09-19 13:25:44 +02:00
crypto crypto: s390/aes - Fix buffer overread in CTR mode 2023-12-08 11:59:45 +08:00
hypfs hypfs: convert to new timestamp accessors 2023-10-18 13:26:15 +02:00
include kprobes: unify kprobes_exceptions_nofify() prototypes 2023-11-10 19:59:05 +09:00
kernel more s390 updates for 6.7 merge window 2023-11-08 12:39:54 -08:00
kvm s390 updates for the 6.7 merge window 2023-11-03 10:17:22 -10:00
lib s390/ctlreg: add struct ctlreg 2023-09-19 13:26:56 +02:00
mm s390/mm: make pte_free_tlb() similar to pXd_free_tlb() 2023-11-05 22:34:58 +01:00
net bpf-next-for-netdev 2023-10-16 21:05:33 -07:00
pci IOMMU Updates for Linux v6.7 2023-11-09 13:37:28 -08:00
purgatory s390 updates for 6.5 merge window part 2 2023-07-06 13:18:30 -07:00
tools KVM: s390: Add facility 197 to the allow list 2022-07-13 15:25:25 +02:00
Kbuild - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
Kconfig s390: add USER_STACKTRACE support 2023-11-05 22:34:57 +01:00
Kconfig.debug s390/Kconfig.debug: fix indentation 2022-06-01 12:03:15 +02:00
Makefile kbuild: unify vdso_install rules 2023-10-28 21:09:02 +09:00