syzbot


KMSAN: uninit-value in ethnl_set_linkmodes (2)

Status: fixed on 2023/06/08 14:41
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+ef6edd9f1baaa54d6235@syzkaller.appspotmail.com
Fix commit: 9ad685dbfe7e ethtool: Fix uninitialized number of lanes
First crash: 836d, last: 523d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net] ethtool: Fix uninitialized number of lanes 2 (2) 2023/05/02 13:03
[syzbot] KMSAN: uninit-value in ethnl_set_linkmodes (2) 1 (4) 2023/04/29 12:24
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in ethnl_set_linkmodes 1 850d 850d 0/28 closed as invalid on 2022/06/14 13:16
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/04/29 11:36 24m idosch@idosch.org patch net OK log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in ethnl_update_linkmodes net/ethtool/linkmodes.c:273 [inline]
BUG: KMSAN: uninit-value in ethnl_set_linkmodes+0x190b/0x19d0 net/ethtool/linkmodes.c:333
 ethnl_update_linkmodes net/ethtool/linkmodes.c:273 [inline]
 ethnl_set_linkmodes+0x190b/0x19d0 net/ethtool/linkmodes.c:333
 ethnl_default_set_doit+0x88d/0xde0 net/ethtool/netlink.c:640
 genl_family_rcv_msg_doit net/netlink/genetlink.c:968 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:1048 [inline]
 genl_rcv_msg+0x141a/0x14c0 net/netlink/genetlink.c:1065
 netlink_rcv_skb+0x3f8/0x750 net/netlink/af_netlink.c:2577
 genl_rcv+0x40/0x60 net/netlink/genetlink.c:1076
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0xf41/0x1270 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0x127d/0x1430 net/netlink/af_netlink.c:1942
 sock_sendmsg_nosec net/socket.c:724 [inline]
 sock_sendmsg net/socket.c:747 [inline]
 ____sys_sendmsg+0xa24/0xe40 net/socket.c:2501
 ___sys_sendmsg+0x2a1/0x3f0 net/socket.c:2555
 __sys_sendmsg net/socket.c:2584 [inline]
 __do_sys_sendmsg net/socket.c:2593 [inline]
 __se_sys_sendmsg net/socket.c:2591 [inline]
 __x64_sys_sendmsg+0x36b/0x540 net/socket.c:2591
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Uninit was stored to memory at:
 tun_get_link_ksettings+0x37/0x60 drivers/net/tun.c:3544
 __ethtool_get_link_ksettings+0x17b/0x260 net/ethtool/ioctl.c:441
 ethnl_set_linkmodes+0xee/0x19d0 net/ethtool/linkmodes.c:327
 ethnl_default_set_doit+0x88d/0xde0 net/ethtool/netlink.c:640
 genl_family_rcv_msg_doit net/netlink/genetlink.c:968 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:1048 [inline]
 genl_rcv_msg+0x141a/0x14c0 net/netlink/genetlink.c:1065
 netlink_rcv_skb+0x3f8/0x750 net/netlink/af_netlink.c:2577
 genl_rcv+0x40/0x60 net/netlink/genetlink.c:1076
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0xf41/0x1270 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0x127d/0x1430 net/netlink/af_netlink.c:1942
 sock_sendmsg_nosec net/socket.c:724 [inline]
 sock_sendmsg net/socket.c:747 [inline]
 ____sys_sendmsg+0xa24/0xe40 net/socket.c:2501
 ___sys_sendmsg+0x2a1/0x3f0 net/socket.c:2555
 __sys_sendmsg net/socket.c:2584 [inline]
 __do_sys_sendmsg net/socket.c:2593 [inline]
 __se_sys_sendmsg net/socket.c:2591 [inline]
 __x64_sys_sendmsg+0x36b/0x540 net/socket.c:2591
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Uninit was stored to memory at:
 tun_set_link_ksettings+0x37/0x60 drivers/net/tun.c:3553
 ethtool_set_link_ksettings+0x600/0x690 net/ethtool/ioctl.c:609
 __dev_ethtool net/ethtool/ioctl.c:3024 [inline]
 dev_ethtool+0x1db9/0x2a70 net/ethtool/ioctl.c:3078
 dev_ioctl+0xb07/0x1270 net/core/dev_ioctl.c:524
 sock_do_ioctl+0x295/0x540 net/socket.c:1213
 sock_ioctl+0x729/0xd90 net/socket.c:1316
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0x222/0x400 fs/ioctl.c:856
 __x64_sys_ioctl+0x96/0xe0 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Local variable link_ksettings created at:
 ethtool_set_link_ksettings+0x54/0x690 net/ethtool/ioctl.c:577
 __dev_ethtool net/ethtool/ioctl.c:3024 [inline]
 dev_ethtool+0x1db9/0x2a70 net/ethtool/ioctl.c:3078

CPU: 1 PID: 4952 Comm: syz-executor743 Not tainted 6.3.0-syzkaller-g81af97bdef5e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
=====================================================

Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/29 03:11 https://github.com/google/kmsan.git master 81af97bdef5e 62df2017 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/05/05 02:44 https://github.com/google/kmsan.git master 81af97bdef5e 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/28 23:34 https://github.com/google/kmsan.git master 81af97bdef5e 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/27 10:21 https://github.com/google/kmsan.git master 81af97bdef5e 6f5b1cc4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/27 08:12 https://github.com/google/kmsan.git master 81af97bdef5e 6f5b1cc4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/25 13:36 https://github.com/google/kmsan.git master 81af97bdef5e 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/24 09:45 https://github.com/google/kmsan.git master 0255004d2a8e c778c7f4 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/24 02:03 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/23 13:29 https://github.com/google/kmsan.git master 0255004d2a8e 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/19 20:39 https://github.com/google/kmsan.git master 0255004d2a8e a219f34e .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/18 21:08 https://github.com/google/kmsan.git master 0255004d2a8e d931e9f0 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/18 16:29 https://github.com/google/kmsan.git master 0255004d2a8e d931e9f0 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/17 21:09 https://github.com/google/kmsan.git master 0255004d2a8e 436577a9 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/15 00:46 https://github.com/google/kmsan.git master c478e5b17829 ec410564 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/13 15:18 https://github.com/google/kmsan.git master c478e5b17829 3cfcaa1b .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/12 21:23 https://github.com/google/kmsan.git master 2500b7d438a0 82d5e53e .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/12 10:29 https://github.com/google/kmsan.git master 9dff0cdf1e18 1a1596b6 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/03/08 00:17 https://github.com/google/kmsan.git master e61893130d87 d2b00170 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2022/11/24 18:16 https://github.com/google/kmsan.git master e889f323ec44 62e26685 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2022/11/23 19:05 https://github.com/google/kmsan.git master ddce02aa9c40 12c66417 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2022/11/22 12:19 https://github.com/google/kmsan.git master ddce02aa9c40 1c576c23 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2022/11/17 18:22 https://github.com/google/kmsan.git master cb231e2f67ec 4ba8ab94 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2022/10/23 16:24 https://github.com/google/kmsan.git master 968c2729e576 23bf86af .config console log report info [disk image] [vmlinux] ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2022/10/20 18:25 https://github.com/google/kmsan.git master 968c2729e576 a0fd4dab .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2022/10/16 22:47 https://github.com/google/kmsan.git master 968c2729e576 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2022/08/31 11:24 https://github.com/google/kmsan.git master e23a6cc335d5 51e54e30 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2022/07/27 20:24 https://github.com/google/kmsan.git master 97117d69c353 fb95c74d .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2022/06/27 19:21 https://github.com/google/kmsan.git master 4b28366af7d9 ef82eb2c .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ethnl_set_linkmodes
2023/05/06 10:02 https://github.com/google/kmsan.git master 81af97bdef5e 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2023/05/05 23:25 https://github.com/google/kmsan.git master 81af97bdef5e 4cec9341 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/26 17:09 https://github.com/google/kmsan.git master 81af97bdef5e 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/18 16:04 https://github.com/google/kmsan.git master 0255004d2a8e d931e9f0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/17 09:50 https://github.com/google/kmsan.git master 0255004d2a8e c6ec7083 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2023/04/15 02:09 https://github.com/google/kmsan.git master c478e5b17829 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2023/02/23 08:39 https://github.com/google/kmsan.git master 97e36f4aa06f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2022/12/15 13:16 https://github.com/google/kmsan.git master 5c6259d6d19f 6f9c033e .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2022/12/14 23:09 https://github.com/google/kmsan.git master 5c6259d6d19f b18f0a64 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2022/11/24 17:55 https://github.com/google/kmsan.git master e889f323ec44 62e26685 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2022/11/11 10:05 https://github.com/google/kmsan.git master cb231e2f67ec 3ead01ad .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
2022/10/25 12:19 https://github.com/google/kmsan.git master 4a3e741a3d6a 45645420 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ethnl_set_linkmodes
* Struck through repros no longer work on HEAD.