selftests: rtnetlink: add addresses with fixed life time
authorFlorian Westphal <fw@strlen.de>
Mon, 17 Jun 2019 14:02:28 +0000 (16:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2020 09:17:59 +0000 (10:17 +0100)
commit544d4b9fc42469a8dd5e05bc6cbce31d6848b0e0
tree0a40b68db5e4e7eddd5ad3e519214beac1a496e7
parent72e77ea7b5935428d816124fb5a104a777410d51
selftests: rtnetlink: add addresses with fixed life time

[ Upstream commit 3cfa148826e3c666da1cc2a43fbe8689e2650636 ]

This exercises kernel code path that deal with addresses that have
a limited lifetime.

Without previous fix, this triggers following crash on net-next:
 BUG: KASAN: null-ptr-deref in check_lifetime+0x403/0x670
 Read of size 8 at addr 0000000000000010 by task kworker [..]

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/rtnetlink.sh