syzbot


KMSAN: uninit-value in ethnl_set_linkmodes (2)

Status: upstream: reported on 2022/07/04 13:27
Reported-by: syzbot+ef6edd9f1baaa54d6235@syzkaller.appspotmail.com
First crash: 50d, last: 20d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in ethnl_set_linkmodes 1 64d 64d 0/23 closed as invalid on 2022/06/14 13:16

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in ethnl_update_u32 net/ethtool/netlink.h:81 [inline]
BUG: KMSAN: uninit-value in ethnl_update_linkmodes net/ethtool/linkmodes.c:295 [inline]
BUG: KMSAN: uninit-value in ethnl_set_linkmodes+0x1469/0x2270 net/ethtool/linkmodes.c:344
 ethnl_update_u32 net/ethtool/netlink.h:81 [inline]
 ethnl_update_linkmodes net/ethtool/linkmodes.c:295 [inline]
 ethnl_set_linkmodes+0x1469/0x2270 net/ethtool/linkmodes.c:344
 genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
 genl_rcv_msg+0x103f/0x1260 net/netlink/genetlink.c:792
 netlink_rcv_skb+0x3a5/0x6c0 net/netlink/af_netlink.c:2501
 genl_rcv+0x3c/0x50 net/netlink/genetlink.c:803
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0xf3b/0x1270 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x1288/0x1440 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0xabc/0xe90 net/socket.c:2492
 ___sys_sendmsg+0x2a5/0x350 net/socket.c:2546
 __sys_sendmsg net/socket.c:2575 [inline]
 __do_sys_sendmsg net/socket.c:2584 [inline]
 __se_sys_sendmsg net/socket.c:2582 [inline]
 __x64_sys_sendmsg+0x367/0x540 net/socket.c:2582
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

Uninit was stored to memory at:
 tun_get_link_ksettings+0x3e/0x60 drivers/net/tun.c:3515
 __ethtool_get_link_ksettings+0x181/0x270 net/ethtool/ioctl.c:461
 ethnl_set_linkmodes+0x57c/0x2270 net/ethtool/linkmodes.c:338
 genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
 genl_rcv_msg+0x103f/0x1260 net/netlink/genetlink.c:792
 netlink_rcv_skb+0x3a5/0x6c0 net/netlink/af_netlink.c:2501
 genl_rcv+0x3c/0x50 net/netlink/genetlink.c:803
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0xf3b/0x1270 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x1288/0x1440 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0xabc/0xe90 net/socket.c:2492
 ___sys_sendmsg+0x2a5/0x350 net/socket.c:2546
 __sys_sendmsg net/socket.c:2575 [inline]
 __do_sys_sendmsg net/socket.c:2584 [inline]
 __se_sys_sendmsg net/socket.c:2582 [inline]
 __x64_sys_sendmsg+0x367/0x540 net/socket.c:2582
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

Uninit was stored to memory at:
 tun_set_link_ksettings+0x3e/0x60 drivers/net/tun.c:3524
 ethtool_set_link_ksettings+0x607/0x6a0 net/ethtool/ioctl.c:628
 __dev_ethtool net/ethtool/ioctl.c:2997 [inline]
 dev_ethtool+0x1862/0x2600 net/ethtool/ioctl.c:3051
 dev_ioctl+0x369/0x1020 net/core/dev_ioctl.c:524
 sock_do_ioctl+0x295/0x540 net/socket.c:1183
 sock_ioctl+0x556/0xc90 net/socket.c:1286
 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+0x92/0xd0 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

Local variable link_ksettings created at:
 ethtool_set_link_ksettings+0x54/0x6a0 net/ethtool/ioctl.c:596
 __dev_ethtool net/ethtool/ioctl.c:2997 [inline]
 dev_ethtool+0x1862/0x2600 net/ethtool/ioctl.c:3051

CPU: 1 PID: 15406 Comm: syz-executor.2 Not tainted 5.19.0-rc4-syzkaller-31333-g97117d69c353 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
=====================================================

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2022/07/27 20:24 https://github.com/google/kmsan.git master 97117d69c353 fb95c74d .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
ci-upstream-kmsan-gce 2022/06/27 19:21 https://github.com/google/kmsan.git master 4b28366af7d9 ef82eb2c .config log report info KMSAN: uninit-value in ethnl_set_linkmodes