ipvs: initialize tbl->entries in ip_vs_lblc_init_svc()
authorCong Wang <xiyou.wangcong@gmail.com>
Mon, 23 Apr 2018 21:04:45 +0000 (14:04 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 26 Apr 2018 22:20:33 +0000 (00:20 +0200)
commit8b2ebb6cf064247d60cccbf1750610ac9bb2e672
treec615645978ac87b2305a92b82d52475dbd89b35e
parent3aa1409a7b160f9444945c0df1cb079df82be84e
ipvs: initialize tbl->entries in ip_vs_lblc_init_svc()

Similarly, tbl->entries is not initialized after kmalloc(),
therefore causes an uninit-value warning in ip_vs_lblc_check_expire(),
as reported by syzbot.

Reported-by: <syzbot+3e9695f147fb529aa9bc@syzkaller.appspotmail.com>
Cc: Simon Horman <horms@verge.net.au>
Cc: Julian Anastasov <ja@ssi.bg>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_lblc.c