Re: [PATCH] linux-user/syscall.c: fix setsockopt(SOL_ALG, ALG_SET_KEY)

2024-03-31 Thread Richard Henderson
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-pro

[PATCH] linux-user/syscall.c: fix setsockopt(SOL_ALG, ALG_SET_KEY)

2024-03-31 Thread Michael Tokarev
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: f312fc