From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f205.google.com (mail-il1-f205.google.com [209.85.166.205]) (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 BD34314A4FB for ; Thu, 23 Jan 2025 17:05:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.205 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651929; cv=none; b=FyNMSeqHWuosUVNOqiI3s+PvWf0rgW7YxIx5bzJFzENPTfjKCz/kkkchyOxKt/AwPvIbOov4dB762uI8mvn/O3w7xdqGczuJupoJVXn5lpVQoS6rYgxaqFXQDjF0JWBdW4MGQ6H8NAZqGqyTgUXq44eBpbu4S1UjbPQachGtwRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651929; c=relaxed/simple; bh=uEAIGi6dg5s5CvpBXI8UDTVk0+W+SmBFOlrqwarHhKE=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=RppvIIzpeO/LXtJEuhfGTEz1bxO7jfU6dlvVcuSIJHzzMhGItNBwGQHwfgjch79DFeu1boF7Fbk5WyFgmKRpWjZASUuGgJrASPwktUUEsZELZkFU73KZujfVFNoWgNwSCnllKER1e6v0TXRr7RKMrveQvn7ttHcCUqaYrXVrblo= 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.205 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-f205.google.com with SMTP id e9e14a558f8ab-3cfb365f077so6940855ab.2 for ; Thu, 23 Jan 2025 09:05:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737651927; x=1738256727; 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=I+0CrvX3gnBB7gOrClvmKtElO1bH3m3Tl9Azk40Vmo8tG4viFr0PeIq3I0oYNWB+XI 4rwdGnsmgBMPj+sRuLb7F1rFRt9A+pcWZAuwVC95HkZ/Y9dUlyyjx1uBls1ESQYRbTca Qsg91Wtm2A6FNwey6+IiQS8WijnKfa4e0YuJiCioIGhh+UuAdNnVfrAkrC+/U5dc39Js 3yxXE14hNOygUCURkHcKWeEJv99JI8G3w1emg/KnQhqbyk3pn8w0FfTsHhVs+kUEr9wK TFRak8b3+l+kjr3BBhkxUnZhj/VUvtjsWTRxz0nUOp10Hcwo7jTtAKVLkiF5TmLgp6AY nL1Q== X-Gm-Message-State: AOJu0Yy7u/xd2N+aAakniIFITB+0B7HvkfvIqEBehMbOPMcNaCct3quo hy1uStiKBxEyHTwGCgx9nDAvy2+uSwrhRrdpiViFNPQJay11Gh6efnb4J5AeOp/5gRXyEBC9mHa z+F0KkW53KF+wNcRfB9fVYcg+sj1OZk0GX/ijuK5co5nKdGBwuckyWG/4Nw== X-Google-Smtp-Source: AGHT+IFz7QmTIAldkjTR8ixdQj2nqo6FoUDSqWf64lHiOH8jkt0DgY7vs8XsKxBgaZ281DY+lyZhpYKMb4WnBd2lJu2g/LrtQ+4H 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:1887:b0:3ce:78e5:d370 with SMTP id e9e14a558f8ab-3cf74429411mr231862995ab.12.1737651926724; Thu, 23 Jan 2025 09:05:26 -0800 (PST) Date: Thu, 23 Jan 2025 09:05:26 -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: <679276d6.050a0220.2eae65.0011.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; }