um: Remove use of asprinf in umid.c
authorAnton Ivanov <anton.ivanov@cambridgegreys.com>
Fri, 13 Nov 2020 10:26:17 +0000 (10:26 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:54:17 +0000 (11:54 +0100)
commitc4b425322134e2ee2950bc1ca54a66511a1526a9
treef9017f6caee1950b456d55501e1ad974eca905dc
parent0f2206e3d90a9f131b8cfc3f7629c698aa625ce4
um: Remove use of asprinf in umid.c

commit 97be7ceaf7fea68104824b6aa874cff235333ac1 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: 0d4e5ac7e780 ("um: remove uses of variable length arrays")
Cc: stable@vger.kernel.org
Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/um/os-Linux/umid.c