syzbot


KMSAN: uninit-value in __hw_addr_add_ex

Status: upstream: reported on 2022/11/18 12:01
Reported-by: syzbot+cec7816c907e0923fdcc@syzkaller.appspotmail.com
First crash: 326d, last: 5d19h

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready
=====================================================
BUG: KMSAN: uninit-value in memcmp+0x23e/0x290 lib/string.c:789
 memcmp+0x23e/0x290 lib/string.c:789
 __hw_addr_add_ex+0x2f9/0x1020 net/core/dev_addr_lists.c:62
 __hw_addr_sync_one net/core/dev_addr_lists.c:210 [inline]
 __hw_addr_sync_multiple+0x35f/0xa40 net/core/dev_addr_lists.c:250
 dev_mc_sync_multiple+0x195/0x2b0 net/core/dev_addr_lists.c:959
 team_set_rx_mode+0x143/0x230 drivers/net/team/team.c:1780
 __dev_set_rx_mode+0x3b0/0x440 net/core/dev.c:8717
 __dev_mc_add net/core/dev_addr_lists.c:836 [inline]
 dev_mc_add+0x180/0x1d0 net/core/dev_addr_lists.c:850
 igmp6_group_added+0x320/0x830 net/ipv6/mcast.c:680
 __ipv6_dev_mc_inc+0x11e9/0x1620 net/ipv6/mcast.c:949
 ipv6_dev_mc_inc+0x70/0x80 net/ipv6/mcast.c:957
 addrconf_join_solict net/ipv6/addrconf.c:2179 [inline]
 addrconf_dad_begin net/ipv6/addrconf.c:3958 [inline]
 addrconf_dad_work+0x736/0x2210 net/ipv6/addrconf.c:4085
 process_one_work+0xdb9/0x1820 kernel/workqueue.c:2298
 worker_thread+0x10bc/0x21f0 kernel/workqueue.c:2445
 kthread+0x721/0x850 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

Uninit was stored to memory at:
 __hw_addr_create net/core/dev_addr_lists.c:32 [inline]
 __hw_addr_add_ex+0x718/0x1020 net/core/dev_addr_lists.c:93
 __dev_mc_add net/core/dev_addr_lists.c:832 [inline]
 dev_mc_add+0x10a/0x1d0 net/core/dev_addr_lists.c:850
 igmp6_group_added+0x320/0x830 net/ipv6/mcast.c:680
 __ipv6_dev_mc_inc+0x11e9/0x1620 net/ipv6/mcast.c:949
 ipv6_dev_mc_inc+0x70/0x80 net/ipv6/mcast.c:957
 addrconf_join_solict net/ipv6/addrconf.c:2179 [inline]
 addrconf_dad_begin net/ipv6/addrconf.c:3958 [inline]
 addrconf_dad_work+0x736/0x2210 net/ipv6/addrconf.c:4085
 process_one_work+0xdb9/0x1820 kernel/workqueue.c:2298
 worker_thread+0x10bc/0x21f0 kernel/workqueue.c:2445
 kthread+0x721/0x850 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

Local variable buf created at:
 igmp6_group_added+0x9b/0x830 net/ipv6/mcast.c:671
 __ipv6_dev_mc_inc+0x11e9/0x1620 net/ipv6/mcast.c:949

CPU: 1 PID: 25 Comm: kworker/1:1 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: ipv6_addrconf addrconf_dad_work
=====================================================

Crashes (179):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce-386 2022/01/04 23:22 https://github.com/google/kmsan.git master 81c325bbf94e 0a2584dd .config log report info KMSAN: uninit-value in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/21 05:24 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 5bb70014 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/20 09:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 5bb70014 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/20 08:11 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 5bb70014 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/19 06:34 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 5bb70014 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/17 13:43 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bfcab33d .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/17 02:14 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d bfcab33d .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/13 07:54 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d f42ee5d8 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/12 22:22 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d f42ee5d8 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/12 20:27 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d f42ee5d8 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/12 14:02 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d f42ee5d8 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/12 09:51 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d f42ee5d8 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/07 09:54 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 6d752409 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/07 06:52 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 6d752409 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/06 23:44 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 6d752409 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/06 19:50 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 6d752409 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/05 22:29 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 6d752409 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/05 15:44 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 6d752409 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/11/05 02:39 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 6d752409 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/20 14:54 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d b31320fc .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/20 06:53 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d b31320fc .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/19 20:56 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d b31320fc .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/19 15:02 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d b31320fc .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/17 12:44 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 67cb024c .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/17 03:45 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 67cb024c .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/16 17:40 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 67cb024c .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/16 00:23 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 67cb024c .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/09 09:43 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d aea5da89 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/09 07:05 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d aea5da89 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/03 02:52 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d feb56351 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/10/02 01:46 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d feb56351 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/09/25 05:15 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 0042f2b4 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/09/19 02:07 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d dd9a85ff .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/09/18 11:51 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d dd9a85ff .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/09/12 12:00 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 356d8217 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/09/12 01:50 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 356d8217 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/09/11 14:00 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 356d8217 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/09/05 08:12 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 28811d0a .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/23 00:00 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 26a13b38 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/22 14:22 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 26a13b38 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/22 06:23 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 26a13b38 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/21 19:02 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 26a13b38 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/20 09:45 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 26a13b38 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/15 23:31 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 8dfcaa3d .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/15 15:31 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 8dfcaa3d .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/15 10:00 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 8dfcaa3d .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/15 08:54 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 8dfcaa3d .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/15 01:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 8dfcaa3d .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/04 15:03 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d 1c9013ac .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/02 08:14 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d fef302b1 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
ci-qemu2-riscv64 2022/08/02 01:47 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d fef302b1 .config log report info KASAN: global-out-of-bounds Read in __hw_addr_add_ex
* Struck through repros no longer work on HEAD.