From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f208.google.com (mail-il1-f208.google.com [209.85.166.208]) (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 CB0BC1369B4 for ; Wed, 22 Jan 2025 17:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.208 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737566259; cv=none; b=RRL3GFwOlh4LMgHZp5eOP3RibYkKMnlXMIJTbmJKO5Zc7BvbEoXQOeBejO3lloaH4r+sc/TiLbzLhYIeK2MlbCyz/l6pbpfG8YXr6TXtDAvS9U9vNB4jBLha+xc0StWG4s3Ri2XlDz8d5G4/PLq7tkGVbRWa40tieF0aQygB408= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737566259; c=relaxed/simple; bh=wD401DKYjMC7VGaVU7ri/aasRTit16JujH5EOFUdeak=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=qr1oOMlLFIw9faXZqY8h6zQfBh6jBLlsc83MjJxyJis+3v422nM54Cu8phfSFftFh4SLGZzCX6jO/a4RhvkiRTA02Hz8gaj3EK2O5wa/fhbDvAmzZ3QUG3gM4pDZaArT9LZ6Q2eH0PRUi5pHQ/ovi0SPzUjzaOCbbnAF0ZcYJmg= 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.208 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-f208.google.com with SMTP id e9e14a558f8ab-3cf6ceaccdbso49533805ab.1 for ; Wed, 22 Jan 2025 09:17:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737566257; x=1738171057; 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=zeFxw4+w4QWACazXVG0ws2fgynvwoGy1X2pZFKa1tAc=; b=H4caeeytahMNDr+nGlwa+bLJiYZsQw1DQMvaKTYoCT2fe247Ti/UqckUKNAset4YJK WIY3aQHbrA68+VU8UwamhjH4gbrokGTm4V+t7hXibzNwCYAckUPc4CcoZ3weLYWQva/Q wLezNtBGA5b6985yzpT1lIb8RJskNM4ZSZuXaSU69ZOvLfxLDAy1CK//OcWDUtPz6vNv KM2YTD4Ov/cxc6oxwBhgHsOUOIdOO7rvOI47Ml9xSv3bKFwJsaI5/kj1YTUq/JFixm7s C6WYzcTSHipbnnxJ6gWB9Zcyg3vet9kymWTNPvy7vdGJktmZXx+868WUJ5tIZ9SNL0+D o7Uw== X-Gm-Message-State: AOJu0YzEimlAGDwxNOqIW50rGHm3ADPPgFeGTfQFOdLngNCPN5rzdMmL nZJ1qEjdpCd6fhKhC5JdH+Z/qK7IGUqcGSSL9RjZxfDQqAxR+bjgQraFMt1Z77PUNO+csfehcKK vPnUNB79UF8FMBH6KQIH+1ipi9NQMFqrCEy8rnj+ZRAW2ms4ZK3wXWr5qxQ== X-Google-Smtp-Source: AGHT+IES005ZK48Kvsb56pvhc+EFNQkFKYJkBWAo9hHnUhXZcTFJfShTeJk8VAlbwH+VJD6kza2Zt4S/eHYTvg98AGXuUvMV7AI8 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:1f0a:b0:3cf:ae67:4115 with SMTP id e9e14a558f8ab-3cfae67439fmr61192285ab.8.1737566256932; Wed, 22 Jan 2025 09:17:36 -0800 (PST) Date: Wed, 22 Jan 2025 09:17:36 -0800 In-Reply-To: <6787c94e.050a0220.20d369.0019.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <67912830.050a0220.194594.001a.GAE@google.com> Subject: Re: [syzbot] Re: [syzbot] [net?] WARNING in nsim_udp_tunnel_set_port 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?] WARNING in nsim_udp_tunnel_set_port Author: kuba@kernel.org On Wed, 15 Jan 2025 06:42:22 -0800 syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 63676eefb7a0 Merge tag 'sched_ext-for-6.13-rc5-fixes' of g.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1336e418580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=86dd15278dbfe19f > dashboard link: https://syzkaller.appspot.com/bug?extid=2e5de9e3ab986b71d2bf > compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17cfb1c4580000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13ac4edf980000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/ba5dd9f6cf65/disk-63676eef.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/290bc4e6d798/vmlinux-63676eef.xz > kernel image: https://storage.googleapis.com/syzbot-assets/561f22e07925/bzImage-63676eef.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+2e5de9e3ab986b71d2bf@syzkaller.appspotmail.com #syz test diff --git a/drivers/net/netdevsim/udp_tunnels.c b/drivers/net/netdevsim/udp_tunnels.c index 02dc3123eb6c..9c627433c34a 100644 --- a/drivers/net/netdevsim/udp_tunnels.c +++ b/drivers/net/netdevsim/udp_tunnels.c @@ -112,8 +112,8 @@ nsim_udp_tunnels_info_reset_write(struct file *file, const char __user *data, struct net_device *dev = file->private_data; struct netdevsim *ns = netdev_priv(dev); - memset(ns->udp_ports.ports, 0, sizeof(ns->udp_ports.__ports)); rtnl_lock(); + memset(ns->udp_ports.ports, 0, sizeof(ns->udp_ports.__ports)); udp_tunnel_nic_reset_ntf(dev); rtnl_unlock();