selftests: rtnetlink: add addresses with fixed life time
authorFlorian Westphal <fw@strlen.de>
Mon, 17 Jun 2019 14:02:28 +0000 (16:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jun 2019 23:27:42 +0000 (16:27 -0700)
commit3cfa148826e3c666da1cc2a43fbe8689e2650636
treed4e4fb67271f0dd40016de4f002c64abdc1f5832
parent40008e921133f95685ca4dfd7233b3df96af2bd6
selftests: rtnetlink: add addresses with fixed life time

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>
tools/testing/selftests/net/rtnetlink.sh