From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) (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 AB40E299929 for ; Thu, 14 May 2026 01:51:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778723467; cv=none; b=R4mydO3dxi2PtX5er3ZP69sSXwTsAaCQfKiZG32Xq7QFXcBh8a2Mwo90kfjebaDKjxc3VhO5qjuAQXLBP8poIu2QKHxlHYQ07fJVlQmyt9jHeIvAx1pS3WiQmEijWm62K8JzuQV+xoD5c4iEJ29oFsKAtGK05K7oydfLgLakbJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778723467; c=relaxed/simple; bh=MofJpxzzk4BQ3CYQVEyZjZBYkKgjCwIeMREk4OcyYWg=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=J3mMQFTUaMG9T/+NDYUiKnsRAvkaCA37oK/T133rwq8kiKc6BVNKvqFY3ufBr5FJBcirqQiafSx9WumNHnf/ydPDZy/chuzwUtMHLFcA48ayJVSoZh4O7nvmwgwMhPCZrFyQAgFXDM3Vz76k+ER8fAhrLxZr5TW1rsPU1m5Y8ms= 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.161.72 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-oo1-f72.google.com with SMTP id 006d021491bc7-6853c2438b9so13389447eaf.3 for ; Wed, 13 May 2026 18:51:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778723464; x=1779328264; 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=1b8n1DlzP2v82ecFdY60TOVjc4v2/MbXgadEDkWIB1Y=; b=jr2335gwPcr7Eelreedu+ntHmhPOvYYaMIO/MzSWeUKBD3Hg8b4KIvnQO4Ycbtkb9r 8j12oCiC7v83yVLlsvrLaltIVqFRA9LqjdJaah7feLF2oUWX2tujYrehHFpk2TxwsisN 9Y/gbPr6876HruA0bnqAZ1KQHOHP5TlMe65P5JYJOuoBqV4pvn19kGqDoJLXWPk2JtfI gXYTfnqw9aYUq3QaREDq8lDHntFR2n3rRdTu4ngjReNP2otIUkUAtdYhAKn0gA988/+j Y3akjWMZL5bQOkCppzpAdmU3z3aW2RlffsGUk57Gv7t1VBwQp1mc9TJVPZK9lV4aX+FE YYNw== X-Gm-Message-State: AOJu0YwLzOcxwqzVcxEhBhvl0DGcGvC476YWIj2RBJcWWStylY5y3Dpw BAh1Meq4JORBmoBU4yFO67/h2SqV9u9rNl4XMosTJzi0EIy6bO6aMyDc/tuxB1PzpKDKmQlb/k6 DnubSC2+3/AthUSDGybMdmcJPMnp6xl83S664Ch2RTJs+DfItSDt10REt2LY= 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:6820:818b:b0:696:7f9e:45c9 with SMTP id 006d021491bc7-69b78d48f27mr3241898eaf.1.1778723464744; Wed, 13 May 2026 18:51:04 -0700 (PDT) Date: Wed, 13 May 2026 18:51:04 -0700 In-Reply-To: <6a00e81a.170a0220.1c0296.0218.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a052a88.050a0220.190576.0005.GAE@google.com> Subject: Forwarded: [syzbot] test patch for unregister_netdevice 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: [syzbot] test patch for unregister_netdevice Author: raoxu@uniontech.com #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git main diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 5476b6536eb7..a517e57cf86a 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -3666,6 +3666,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, break; case NETDEV_CHANGEMTU: + if (dev->reg_state == NETREG_UNREGISTERING) + break; + /* if MTU under IPV6_MIN_MTU stop IPv6 on this interface. */ if (dev->mtu < IPV6_MIN_MTU) { addrconf_ifdown(dev, dev != net->loopback_dev); @@ -3691,6 +3694,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, fallthrough; case NETDEV_UP: case NETDEV_CHANGE: + if (dev->reg_state == NETREG_UNREGISTERING) + break; + if (idev && idev->cnf.disable_ipv6) break;