dns_resolver: assure that dns_query() result is null-terminated
authorManuel Schölling <manuel.schoelling@gmx.de>
Sat, 7 Jun 2014 21:57:25 +0000 (23:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:06:01 +0000 (08:06 -0700)
commitb477b4df82ea86127be9f5ab834290bf1d7f17df
tree06a902140a54b54bbd1d64b31194b9b815de5576
parente8d7581a37f781789e9ba5e50aac5b3bbe4f2ec7
dns_resolver: assure that dns_query() result is null-terminated

[ Upstream commit 84a7c0b1db1c17d5ded8d3800228a608e1070b40 ]

dns_query() credulously assumes that keys are null-terminated and
returns a copy of a memory block that is off by one.

Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/dns_resolver/dns_query.c