|
From: | Richard Henderson |
Subject: | Re: [PATCH] linux-user/syscall.c: fix setsockopt(SOL_ALG, ALG_SET_KEY) |
Date: | Sun, 31 Mar 2024 07:53:11 -1000 |
User-agent: | Mozilla Thunderbird |
On 3/30/24 22:48, Michael Tokarev wrote:
This setsockopt accepts zero-lengh optlen (current qemu implementation does not allow this). Also, there's no need to make a copy of the key, it is enough to use lock_user() (which accepts zero-length length already). Resolves:https://gitlab.com/qemu-project/qemu/-/issues/2197 Fixes: f31dddd2fc "linux-user: Add support for setsockopt() option SOL_ALG" Signed-off-by: Michael Tokarev<mjt@tls.msk.ru>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |