xtensa: ISS: fix call to split_if_spec
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 3 Jul 2023 18:01:42 +0000 (11:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Jul 2023 11:49:45 +0000 (13:49 +0200)
commit22fc9fd7230727d00de456e567e82bc56c2c5ca3
tree04b252fce5268f159b747e4adfd38aaca6c9d277
parent6a05de6da58a67abec06167b32c291d7a9b6770b
xtensa: ISS: fix call to split_if_spec

commit bc8d5916541fa19ca5bc598eb51a5f78eb891a36 upstream.

split_if_spec expects a NULL-pointer as an end marker for the argument
list, but tuntap_probe never supplied that terminating NULL. As a result
incorrectly formatted interface specification string may cause a crash
because of the random memory access. Fix that by adding NULL terminator
to the split_if_spec argument list.

Cc: stable@vger.kernel.org
Fixes: 7282bee78798 ("[PATCH] xtensa: Architecture support for Tensilica Xtensa Part 8")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/platforms/iss/network.c