Chengming Zhou 744e188592 crypto: scomp - fix req->dst buffer overflow
The req->dst buffer size should be checked before copying from the
scomp_scratch->dst to avoid req->dst buffer overflow problem.

Fixes: 1ab53a77b772 ("crypto: acomp - add driver-side scomp interface")
Reported-by: syzbot+3eff5e51bf1db122a16e@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/0000000000000b05cd060d6b5511@google.com/
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Reviewed-by: Barry Song <v-songbaohua@oppo.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-12-29 11:25:56 +08:00
..
2023-09-20 13:15:29 +08:00
2023-12-08 11:59:46 +08:00
2023-11-17 19:16:29 +08:00
2021-03-26 19:55:55 +11:00
2023-02-14 13:39:33 +08:00
2023-06-27 15:40:24 +08:00
2023-12-08 11:59:46 +08:00
2023-12-08 11:59:46 +08:00
2020-02-28 08:43:21 +08:00
2023-02-14 13:39:33 +08:00
2022-12-02 18:12:40 +08:00
2022-04-08 16:12:46 +08:00
2023-12-08 11:59:46 +08:00
2022-12-02 18:12:40 +08:00
2023-12-08 11:59:46 +08:00
2023-10-27 18:04:24 +08:00
2022-06-10 16:40:16 +08:00
2021-11-08 16:55:21 -08:00