===================================================== BUG: KMSAN: uninit-value in __ethtool_get_link_ksettings+0x503/0x5a0 net/ethtool/ioctl.c:444 CPU: 1 PID: 26316 Comm: syz-executor.5 Not tainted 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:121 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 __ethtool_get_link_ksettings+0x503/0x5a0 net/ethtool/ioctl.c:444 linkinfo_prepare_data+0x1e8/0x4b0 net/ethtool/linkinfo.c:37 ethnl_default_notify+0x432/0x1030 net/ethtool/netlink.c:586 ethtool_notify+0x259/0x520 net/ethtool/netlink.c:656 ethtool_set_link_ksettings net/ethtool/ioctl.c:620 [inline] dev_ethtool+0xe228/0xe7b0 net/ethtool/ioctl.c:2842 dev_ioctl+0x5a3/0x1260 net/core/dev_ioctl.c:440 ethtool_ioctl net/socket.c:3196 [inline] compat_sock_ioctl_trans net/socket.c:3390 [inline] compat_sock_ioctl+0x2ef8/0x4210 net/socket.c:3493 __do_compat_sys_ioctl fs/ioctl.c:842 [inline] __se_compat_sys_ioctl+0x53d/0x1100 fs/ioctl.c:793 __ia32_compat_sys_ioctl+0x4a/0x70 fs/ioctl.c:793 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline] __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f0b549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f55055fc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000008946 RDX: 0000000020000080 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:288 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:225 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:245 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 tun_get_link_ksettings+0x7c/0xb0 drivers/net/tun.c:3418 __ethtool_get_link_ksettings+0x204/0x5a0 net/ethtool/ioctl.c:440 linkinfo_prepare_data+0x1e8/0x4b0 net/ethtool/linkinfo.c:37 ethnl_default_notify+0x432/0x1030 net/ethtool/netlink.c:586 ethtool_notify+0x259/0x520 net/ethtool/netlink.c:656 ethtool_set_link_ksettings net/ethtool/ioctl.c:620 [inline] dev_ethtool+0xe228/0xe7b0 net/ethtool/ioctl.c:2842 dev_ioctl+0x5a3/0x1260 net/core/dev_ioctl.c:440 ethtool_ioctl net/socket.c:3196 [inline] compat_sock_ioctl_trans net/socket.c:3390 [inline] compat_sock_ioctl+0x2ef8/0x4210 net/socket.c:3493 __do_compat_sys_ioctl fs/ioctl.c:842 [inline] __se_compat_sys_ioctl+0x53d/0x1100 fs/ioctl.c:793 __ia32_compat_sys_ioctl+0x4a/0x70 fs/ioctl.c:793 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline] __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:288 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:225 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:245 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 tun_set_link_ksettings+0x7e/0xb0 drivers/net/tun.c:3427 ethtool_set_link_ksettings net/ethtool/ioctl.c:618 [inline] dev_ethtool+0xe1a2/0xe7b0 net/ethtool/ioctl.c:2842 dev_ioctl+0x5a3/0x1260 net/core/dev_ioctl.c:440 ethtool_ioctl net/socket.c:3196 [inline] compat_sock_ioctl_trans net/socket.c:3390 [inline] compat_sock_ioctl+0x2ef8/0x4210 net/socket.c:3493 __do_compat_sys_ioctl fs/ioctl.c:842 [inline] __se_compat_sys_ioctl+0x53d/0x1100 fs/ioctl.c:793 __ia32_compat_sys_ioctl+0x4a/0x70 fs/ioctl.c:793 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline] __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Local variable ----link_ksettings.i893@dev_ethtool created at: ethtool_set_link_ksettings net/ethtool/ioctl.c:586 [inline] dev_ethtool+0x3cdc/0xe7b0 net/ethtool/ioctl.c:2842 ethtool_set_link_ksettings net/ethtool/ioctl.c:586 [inline] dev_ethtool+0x3cdc/0xe7b0 net/ethtool/ioctl.c:2842 =====================================================