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: 153d, last: 3d23h
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in ethnl_set_linkmodes 1 167d 167d 0/24 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:300 [inline]
BUG: KMSAN: uninit-value in ethnl_set_linkmodes+0x1469/0x2270 net/ethtool/linkmodes.c:349
 ethnl_update_u32 net/ethtool/netlink.h:81 [inline]
 ethnl_update_linkmodes net/ethtool/linkmodes.c:300 [inline]
 ethnl_set_linkmodes+0x1469/0x2270 net/ethtool/linkmodes.c:349
 genl_family_rcv_msg_doit net/netlink/genetlink.c:756 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:833 [inline]
 genl_rcv_msg+0x1447/0x1500 net/netlink/genetlink.c:850
 netlink_rcv_skb+0x3b5/0x6e0 net/netlink/af_netlink.c:2540
 genl_rcv+0x3c/0x50 net/netlink/genetlink.c:861
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0xf3b/0x1270 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x127d/0x1430 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0xa8e/0xe70 net/socket.c:2482
 ___sys_sendmsg+0x2a1/0x3f0 net/socket.c:2536
 __sys_sendmsg net/socket.c:2565 [inline]
 __do_sys_sendmsg net/socket.c:2574 [inline]
 __se_sys_sendmsg net/socket.c:2572 [inline]
 __x64_sys_sendmsg+0x367/0x540 net/socket.c:2572
 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+0x63/0xcd

Uninit was stored to memory at:
 tun_get_link_ksettings+0x33/0x60 drivers/net/tun.c:3538
 __ethtool_get_link_ksettings+0x176/0x260 net/ethtool/ioctl.c:448
 ethnl_set_linkmodes+0x57c/0x2270 net/ethtool/linkmodes.c:343
 genl_family_rcv_msg_doit net/netlink/genetlink.c:756 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:833 [inline]
 genl_rcv_msg+0x1447/0x1500 net/netlink/genetlink.c:850
 netlink_rcv_skb+0x3b5/0x6e0 net/netlink/af_netlink.c:2540
 genl_rcv+0x3c/0x50 net/netlink/genetlink.c:861
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0xf3b/0x1270 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x127d/0x1430 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0xa8e/0xe70 net/socket.c:2482
 ___sys_sendmsg+0x2a1/0x3f0 net/socket.c:2536
 __sys_sendmsg net/socket.c:2565 [inline]
 __do_sys_sendmsg net/socket.c:2574 [inline]
 __se_sys_sendmsg net/socket.c:2572 [inline]
 __x64_sys_sendmsg+0x367/0x540 net/socket.c:2572
 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+0x63/0xcd

Uninit was stored to memory at:
 tun_set_link_ksettings+0x33/0x60 drivers/net/tun.c:3547
 ethtool_set_link_ksettings+0x5fc/0x690 net/ethtool/ioctl.c:616
 __dev_ethtool net/ethtool/ioctl.c:2985 [inline]
 dev_ethtool+0x1862/0x2600 net/ethtool/ioctl.c:3039
 dev_ioctl+0x369/0x1020 net/core/dev_ioctl.c:524
 sock_do_ioctl+0x295/0x540 net/socket.c:1183
 sock_ioctl+0x5ad/0xcd0 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+0x63/0xcd

Local variable link_ksettings created at:
 ethtool_set_link_ksettings+0x54/0x690 net/ethtool/ioctl.c:584
 __dev_ethtool net/ethtool/ioctl.c:2985 [inline]
 dev_ethtool+0x1862/0x2600 net/ethtool/ioctl.c:3039

CPU: 0 PID: 13332 Comm: syz-executor.4 Not tainted 6.1.0-rc6-syzkaller-63554-ge889f323ec44 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
=====================================================

Crashes (13):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2022/11/24 18:16 https://github.com/google/kmsan.git master e889f323ec44 62e26685 .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
ci-upstream-kmsan-gce 2022/11/23 19:05 https://github.com/google/kmsan.git master ddce02aa9c40 12c66417 .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
ci-upstream-kmsan-gce 2022/11/22 12:19 https://github.com/google/kmsan.git master ddce02aa9c40 1c576c23 .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
ci-upstream-kmsan-gce 2022/11/17 18:22 https://github.com/google/kmsan.git master cb231e2f67ec 4ba8ab94 .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
ci-upstream-kmsan-gce 2022/10/23 16:24 https://github.com/google/kmsan.git master 968c2729e576 23bf86af .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
ci-upstream-kmsan-gce 2022/10/20 18:25 https://github.com/google/kmsan.git master 968c2729e576 a0fd4dab .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
ci-upstream-kmsan-gce 2022/10/16 22:47 https://github.com/google/kmsan.git master 968c2729e576 67cb024c .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
ci-upstream-kmsan-gce 2022/08/31 11:24 https://github.com/google/kmsan.git master e23a6cc335d5 51e54e30 .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
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
ci-upstream-kmsan-gce-386 2022/11/24 17:55 https://github.com/google/kmsan.git master e889f323ec44 62e26685 .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
ci-upstream-kmsan-gce-386 2022/11/11 10:05 https://github.com/google/kmsan.git master cb231e2f67ec 3ead01ad .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
ci-upstream-kmsan-gce-386 2022/10/25 12:19 https://github.com/google/kmsan.git master 4a3e741a3d6a 45645420 .config log report info KMSAN: uninit-value in ethnl_set_linkmodes
* Struck through repros no longer work on HEAD.