From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f206.google.com (mail-il1-f206.google.com [209.85.166.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12B007E105 for ; Thu, 23 Jan 2025 19:47:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.206 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737661630; cv=none; b=Ct+CXK60fnN73QP8L8/u9RqwoyBhyVkFHzxbBJX0JjpOGEhowZkuOdEE/gqe2oMVQy2cdcTSLfy0eTnwghCfXcuhHgCPih1+K8kYekmoMP5lPlDJXAfmZAzdsqyQbsvpELEohNMaoC3zZZEbmWsWQ4YMdqvNDxAlsoUT9fqJnvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737661630; c=relaxed/simple; bh=uEAIGi6dg5s5CvpBXI8UDTVk0+W+SmBFOlrqwarHhKE=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=mzly4Iitq8r+otnowsF67VhCpxF4Qtcq+16HbVHXfBLkzQEauRp6Yd6fYB5Cyq177uTj3CTRV9HEjy3xsYziBm1zcP/rw27kVENC6LXCRwvT2ZAKalUmMcKOUpvdRCPv+4xDIMu7+FixSo/q8YwLAPfq7Wldl42kkgWNiM1u4OY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.206 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f206.google.com with SMTP id e9e14a558f8ab-3cf6c83560fso8582015ab.2 for ; Thu, 23 Jan 2025 11:47:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737661628; x=1738266428; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FQNuSAl9J1xadGdN8grFSfvDs3Ckr0uqDaLJdJwJmGI=; b=dSlXzGgy9JNBZkK5m6r25CGl8bbZOeOeB7ypni/7gFr1z5JzDXiBv87KuvJOruAI7z zQ6tw+fhbKB2YI1veJ9PCZDlyxiLmR1wKHtdyZIUMXlkj9YFEs2imUpag3U6puQU9edd jVbv8jdpr45gDWlam6vl1bQsb+0Tp0lq8UiPGk2505FeKvnrgjJcWGgJcodmzCueGRkg C0ffC2y1YEzubt2jlnsnlUSMO4j/Tdk8ZHrttcWkWHQmBeXhloAlaXgcjZht0FSpz/D+ EDXp9hbrTAW0VNxy7oG5tAbxCy23ctBdR+R42HgsddozkEoPP9cdZfh/+CT43C0sUznU mJBg== X-Gm-Message-State: AOJu0YyWJHbfU+T1/NAIiX+3X43jHi/Q7JIklhnb+wnZYgZpPtwv+bwz v0rJ9dhYakunUWB20Q6f1AunFcs6iZvs+KNf34sSYIGS/OHjN2XYZETaKDJ4Y15zA869Z11yWfF tQw9v4OzN8xINJI0MoyIWvCkg3m4+4h0zxN8l2LNWdWKh9GR0EeRy5kOCDA== X-Google-Smtp-Source: AGHT+IHS1Mhj0aCMZdkDHGoBVOhUIWZCcKUqkOFHB50oxY/bDtdHYq41wm6LvVfGayaWL3Jye9f5FTwcZsXcWdIEDhhGKCi0xHqo Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:3001:b0:3cf:c7d3:e4b with SMTP id e9e14a558f8ab-3cfc7d30e92mr5879275ab.21.1737661628046; Thu, 23 Jan 2025 11:47:08 -0800 (PST) Date: Thu, 23 Jan 2025 11:47:08 -0800 In-Reply-To: <67926fd0.050a0220.2eae65.000e.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <67929cbc.050a0220.2eae65.0012.GAE@google.com> Subject: Re: [syzbot] Re: [syzbot] [net?] KMSAN: uninit-value in nsim_get_ringparam From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: Re: [syzbot] [net?] KMSAN: uninit-value in nsim_get_ringparam Author: kuba@kernel.org On Thu, 23 Jan 2025 08:35:28 -0800 syzbot wrote: > HEAD commit: 7004a2e46d16 Merge tag 'linux_kselftest-nolibc-6.14-rc1' o.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=171a1c24580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=d6a5cefe7199b4e8 > dashboard link: https://syzkaller.appspot.com/bug?extid=b3bcd80232d00091e061 > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16a2a9f8580000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12baf618580000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/d5b55fed9d79/disk-7004a2e4.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/70382af6f618/vmlinux-7004a2e4.xz > kernel image: https://storage.googleapis.com/syzbot-assets/a7609fc3059d/bzImage-7004a2e4.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+b3bcd80232d00091e061@syzkaller.appspotmail.com #syz test diff --git a/drivers/net/netdevsim/ethtool.c b/drivers/net/netdevsim/ethtool.c index 3b23f3d3ca2b..5c80fbee7913 100644 --- a/drivers/net/netdevsim/ethtool.c +++ b/drivers/net/netdevsim/ethtool.c @@ -74,7 +74,7 @@ static void nsim_get_ringparam(struct net_device *dev, memcpy(ring, &ns->ethtool.ring, sizeof(ns->ethtool.ring)); kernel_ring->hds_thresh_max = NSIM_HDS_THRESHOLD_MAX; - if (kernel_ring->tcp_data_split == ETHTOOL_TCP_DATA_SPLIT_UNKNOWN) + if (dev->cfg->hds_config == ETHTOOL_TCP_DATA_SPLIT_UNKNOWN) kernel_ring->tcp_data_split = ETHTOOL_TCP_DATA_SPLIT_ENABLED; }