Eric Dumazet
77d36398d9
net: fix uninit-value in __hw_addr_add_ex()
...
syzbot complained :
BUG: KMSAN: uninit-value in memcmp+0x119/0x180 lib/string.c:861
CPU: 0 PID: 3 Comm: kworker/0:0 Not tainted 4.16.0+ #82
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: ipv6_addrconf addrconf_dad_work
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x185/0x1d0 lib/dump_stack.c:53
kmsan_report+0x142/0x240 mm/kmsan/kmsan.c:1067
__msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:676
memcmp+0x119/0x180 lib/string.c:861
__hw_addr_add_ex net/core/dev_addr_lists.c:60 [inline]
__dev_mc_add+0x1c2/0x8e0 net/core/dev_addr_lists.c:670
dev_mc_add+0x6d/0x80 net/core/dev_addr_lists.c:687
igmp6_group_added+0x2db/0xa00 net/ipv6/mcast.c:662
ipv6_dev_mc_inc+0xe9e/0x1130 net/ipv6/mcast.c:914
addrconf_join_solict net/ipv6/addrconf.c:2078 [inline]
addrconf_dad_begin net/ipv6/addrconf.c:3828 [inline]
addrconf_dad_work+0x427/0x2150 net/ipv6/addrconf.c:3954
process_one_work+0x12c6/0x1f60 kernel/workqueue.c:2113
worker_thread+0x113c/0x24f0 kernel/workqueue.c:2247
kthread+0x539/0x720 kernel/kthread.c:239
Fixes: f001fde5eadd ("net: introduce a list of device addresses dev_addr_list (v6)")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-07 22:32:31 -04:00
..
2018-02-11 14:34:03 -08:00
2018-04-07 22:32:31 -04:00
2018-03-07 15:12:58 -05:00
2018-04-05 15:16:15 -04:00
2018-03-23 11:31:58 -04:00
2017-11-21 15:57:07 -08:00
2018-03-05 12:52:45 -05:00
2017-11-30 09:54:27 -05:00
2018-03-31 23:37:32 -04:00
2018-03-29 14:10:30 -04:00
2018-03-29 14:10:30 -04:00
2018-03-31 02:16:26 +02:00
2018-03-04 13:04:23 -05:00
2018-02-23 12:35:46 -05:00
2017-12-08 13:32:26 -05:00
2017-11-02 11:10:55 +01:00
2016-05-25 12:35:09 -07:00
2018-01-23 19:43:30 -05:00
2017-09-26 13:36:44 -07:00
2017-08-07 14:16:22 -07:00
2018-01-05 15:21:20 -08:00
2018-01-17 00:10:42 -05:00
2018-03-31 22:24:58 -04:00
2018-03-27 13:18:09 -04:00
2018-03-26 12:07:48 -04:00
2017-11-02 11:10:55 +01:00
2017-11-04 09:26:51 +09:00
2017-07-21 11:14:51 -04:00
2017-11-08 11:13:54 +01:00
2017-12-13 13:18:46 -05:00
2018-03-27 13:18:09 -04:00
2015-11-03 11:08:22 -05:00
2016-12-29 11:38:31 -05:00
2018-03-31 22:24:58 -04:00
2017-03-02 08:42:29 +01:00
2017-06-08 10:53:29 -04:00
2018-04-07 22:32:31 -04:00
2018-03-27 13:18:09 -04:00
2018-02-02 19:47:03 -05:00
2018-03-27 13:18:09 -04:00
2018-02-11 14:34:03 -08:00
2018-03-27 13:18:09 -04:00
2015-07-09 14:17:15 -07:00
2017-11-02 11:10:55 +01:00
2017-05-02 16:40:27 -07:00
2018-01-05 15:21:21 -08:00