Commit ab0b2e4b authored by Anton Ivanov's avatar Anton Ivanov Committed by Xie XiuQi
Browse files

um: Remove use of asprinf in umid.c



stable inclusion
from stable-5.10.4
commit c4b425322134e2ee2950bc1ca54a66511a1526a9
bugzilla: 46903

--------------------------------

commit 97be7cea upstream.

asprintf is not compatible with the existing uml memory allocation
mechanism. Its use on the "user" side of UML results in a corrupt slab
state.

Fixes: 0d4e5ac7 ("um: remove uses of variable length arrays")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarAnton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent b49c44b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment