Article View: linux.kernel.netdev
Article #5807Re: [syzbot] [net?] possible deadlock in __netdev_update_features (3)
From: syzbot
Date: Wed, 21 Oct 2026 01:03
Date: Wed, 21 Oct 2026 01:03
109 lines
14517 bytes
14517 bytes
syzbot has found a reproducer for the following issue on:
HEAD commit: 7a19f0cc94ad Merge branch 'for-next/core' into for-kernelci
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
console output: https://syzkaller.appspot.com/x/log.txt?x=14b5b831580000
kernel config: https://syzkaller.appspot.com/x/.config?x=26d6221a572842ac
dashboard link: https://syzkaller.appspot.com/bug?extid=c6c86a1c56b5131f2d97
compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15311081580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=159e0481580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/296cd4b77dbf/disk-7a19f0cc.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e57669ed895f/vmlinux-7a19f0cc.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c679c1ad76d4/Image-7a19f0cc.gz.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+c6c86a1c56b5131f2d97@syzkaller.appspotmail.com
batman_adv: batadv0: Interface activated: macvlan2
============================================
WARNING: possible recursive locking detected
syzkaller #0 Not tainted
--------------------------------------------
syz.0.17/4904 is trying to acquire lock:
ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2864 [inline]
ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline]
ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_sync_lower_features net/core/dev.c:10983 [inline]
ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: __netdev_update_features+0x988/0x1894 net/core/dev.c:11153
but task is already holding lock:
ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2864 [inline]
ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline]
ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: __dev_ethtool net/ethtool/ioctl.c:3627 [inline]
ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: dev_ethtool+0x384/0x1a98 net/ethtool/ioctl.c:3669
and the lock comparison function returns 0:
other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock(&dev_instance_lock_key#23);
lock(&dev_instance_lock_key#23);
*** DEADLOCK ***
May be due to missing lock nesting notation
locks held by syz.0.17/4904: 2, last CPU#0:
#0: ffff80008aa8ec80 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:80
#1: ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2864 [inline]
#1: ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline]
#1: ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: __dev_ethtool net/ethtool/ioctl.c:3627 [inline]
#1: ffff0000cbc0ce78 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: dev_ethtool+0x384/0x1a98 net/ethtool/ioctl.c:3669
stack backtrace:
CPU: 0 UID: 0 PID: 4904 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026
Call trace:
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C)
__dump_stack+0x30/0x40 lib/dump_stack.c:94
dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120
dump_stack+0x1c/0x28 lib/dump_stack.c:129
print_deadlock_bug+0x2e8/0x2f0 kernel/locking/lockdep.c:3085
check_deadlock kernel/locking/lockdep.c:3137 [inline]
validate_chain kernel/locking/lockdep.c:3939 [inline]
__lock_acquire+0x2404/0x2b08 kernel/locking/lockdep.c:5288
lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942
__mutex_lock_common kernel/locking/mutex.c:646 [inline]
__mutex_lock+0x164/0x1078 kernel/locking/mutex.c:821
mutex_lock_nested+0x24/0x30 kernel/locking/mutex.c:874
netdev_lock include/linux/netdevice.h:2864 [inline]
netdev_lock_ops include/net/netdev_lock.h:42 [inline]
netdev_sync_lower_features net/core/dev.c:10983 [inline]
__netdev_update_features+0x988/0x1894 net/core/dev.c:11153
netdev_update_features+0x78/0xf4 net/core/dev.c:11210
macvlan_device_event+0x530/0x778 drivers/net/macvlan.c:1883
notifier_call_chain+0x1a4/0x4cc kernel/notifier.c:85
raw_notifier_call_chain+0x3c/0x50 kernel/notifier.c:453
call_netdevice_notifiers_info+0xb8/0x120 net/core/dev.c:2275
call_netdevice_notifiers_extack net/core/dev.c:2313 [inline]
call_netdevice_notifiers net/core/dev.c:2327 [inline]
netdev_features_change+0x84/0xcc net/core/dev.c:1612
dev_ethtool_locked net/ethtool/ioctl.c:3576 [inline]
__dev_ethtool net/ethtool/ioctl.c:3634 [inline]
dev_ethtool+0x165c/0x1a98 net/ethtool/ioctl.c:3669
dev_ioctl+0x284/0xc88 net/core/dev_ioctl.c:745
sock_do_ioctl+0x198/0x254 net/socket.c:1339
sock_ioctl+0x55c/0x7ec net/socket.c:1446
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:597 [inline]
__se_sys_ioctl fs/ioctl.c:583 [inline]
__arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583
__invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49
el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121
do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140
el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796
el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815
el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606
---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Technical Details
Message-ID:
<6ad80f64.46bc089a.3217e3.0039.GAE@google.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349677-linux-kernel-netdev=dewy.ruReferences:
<6a6be82b.77639fcc.3d4fd0.0014.GAE@google.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349677-linux-kernel-netdev=dewy.ru
From: syzbot+c6c86a1c56b5131f2d97@syzkaller.appspotmail.com (syzbot)
Newsgroups: linux.kernel.netdev
Subject: Re: [syzbot] [net?] possible deadlock in __netdev_update_features (3)
Date: Tue, 20 Oct 2026 18:03:32 -0700
Organization: Usenet Network
Message-ID: <6ad80f64.46bc089a.3217e3.0039.GAE@google.com>
References: <6a6be82b.77639fcc.3d4fd0.0014.GAE@google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
logging-data="4007434"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:eNDR4eDdfHy6f6P6mQdV3US7rx4= sha256:Xj+PVwkzD/YaPsxTEhaXBsW22Va+/qrr99fbTHnvazc=
sha1:cR9CdlBnTq2bwut+HYOR7inhTgU= sha256:6bKyofNtw9dKF1KMCQidzLuNhQSfBHRpo61ehCm8J94=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 8F3A5110EC2; Wed, 21 Oct 2026 04:05:50 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.618
X-Spam-Status: No, score=-2.618 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, FROM_LOCAL_HEX=0.331,
HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 4pMB-r-8DxjW;
Wed, 21 Oct 2026 04:05:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349677-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=syzkaller.appspotmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id CB17E110E98; Wed, 21 Oct 2026 04:05:39 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 1F9A12D9C7; Wed, 21 Oct 2026 01:03:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792544614;
b=zu1SPtMHwdneN41v3OYhBjEmaLa8N/VhSYEZjY9uKVkJcQa+kBMxqJwJgLhdl9u7OACO
OTT5gBuna/traVPcWUiQlZz8z+hzvI364kbabYg2dKCXhyIY+hH5d7ED2oPYfYN71A6h0
vkc1NAg8R5y80DgLjPo614dT06SJhICGe03wnwmXnPsiMPJa4sAHmlVhPv06enU5hawUz
VPAsVlutpmpEEAywKEJOPJ8mTMl/tYht6GBsmJ5vt78q1IXnu14ePLtqPa+xWDX+H2CFU
k8P8xXiel+DiR/nL4cc/8/VYEC2Wcca5ceq+GGa2zWA5ffTGEVtN8f9FXnlYgqmC1rw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792544614;
h=X-Original-To:Received:DMARC-Filter:Received:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:X-Received:Date:In-Reply-To:
X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID:
Subject:From:To:Content-Type;
bh=26ckmdUGF7QTnv8n0/aMUKoRme42kauVoRprvIKYDLU=;
b=cVmvDAl9mlTLVhyuotUxHOnNn2FxSMNaYPtGQ0uxFAixXJ271nDSuuLXMH9/Aqtawhx/
bTdA7LG4agzci2cH2bkT3jhJJHtab6EcXolPntqmdkjuUaEUYsq5ypyuP1Y3y4kpjKp5R
LPQq4A1XlA3Q8hxGXvsYwvs6AQboPuqJut0nRM8ZHJ3twg6CtJ/OPOyaos+1FoYwXkTWC
mzyn05CpqOW9axlJ6qLQEhHdkCSE+kb4OYfFo6A+s2KuuoAuzSUZfmis/3sKA8OuarWKw
ziGFiTgUWmkIUxUazG6G6Ew5KQHnLKLSlgVXNEX3BnpK3MHCIJIusy+ainoRESg3tFQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=fail header.from=syzkaller.appspotmail.com;
spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 63B8E606A329;
Wed, 21 Oct 2026 01:03:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.69
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1792544613;
b=ldbi4j2R0n/xZz12Lrhdqg+qIBtBUeqyZWbbZKT6Y/B7/GFS++FRGvbC4qzRW/a13+ol
tZt7xjhwxb2X6LZqTuHdfuc21SSYsvcrXNr0ldm3izRkZQOQfcIZHGonGas5SSRWUuwLB
Tm6rdUKBm5IW63m5jnb3KDEGTIi8NN0C5DABH1nsfDByliqIlxZ/4uT5e7ES+4Mrye92e
tW+Wj0ViP5ctfnbUYD0WtOqpaPmJ9zE33tYSBYErBsuSmQNY4UCohr+D6pBf6s1Q5ntjg
SkVuZ3veAj38QL2dMoJtOZpjKd+M92mEVKo1hJLXZIvJR1k4SoRzMUNki4txhe09DzQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792544613;
h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted:
X-Gm-Message-State:MIME-Version:X-Received:Date:In-Reply-To:
X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID:
Subject:From:To:Content-Type;
bh=26ckmdUGF7QTnv8n0/aMUKoRme42kauVoRprvIKYDLU=;
b=et0bAiTKNNu0mnsvWAVvKQLPLDpWi6xxfYueLmfOe+XVyAwJQWPeFUm5FBxYtzw9iSmx
RF/jdLvcoeyjkWuoKSqJYl64wL9DfmKUOm4xQgtfXj4ZziCpL9gWXzNnMJh/+RgHeVcUS
LnNZnebMKRanVxIPArkl+wYQ/IgbxzNlz+mJ/7Q+Yxtaj+H8stmG8WnE1fOw5RDiZVgS8
D8oEsgqzKLRAmdeOdTo20xvZT2qw+VJ+2aADz3WhnII29MDxUJtV9bIxxLjeZTJCIIQlG
6khM/5IC1sSSnYbKgDY/pzg3zrNihTubng9BZgXyfhUff5jDMh+8IB6qwOFx5My+rIA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=fail header.from=syzkaller.appspotmail.com;
spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com;
arc=none smtp.remote-ip=209.85.210.69
X-Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BF1D606A31C
for <netdev@vger.kernel.org>; Wed, 21 Oct 2026 01:03:33 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6BF1D606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com
X-Received: by mail-ot1-f69.google.com with SMTP id 46e09a7af769-84656141ed0so1322920a34.0
for <netdev@vger.kernel.org>; Tue, 20 Oct 2026 18:03:33 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792544612; x=1793149412;
h=content-type:to:from:subject:message-id:in-reply-to:date
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to:content-type;
bh=26ckmdUGF7QTnv8n0/aMUKoRme42kauVoRprvIKYDLU=;
b=Ip08uaIwmOsWv6D+sRrGnNgVentdNzBwNZ12MfshFe08ZqPNXlA0O0RiFeudpwUQ7O
EsO8vhjB+00i69lB4u8gRNhuuiyI2+DjFzM93zo1Mw9RMxzdF2+9G6BOBFHaT1MspXcs
AE8Jqr687wc/H6qo8HXveyH3tekmZvEBzIaFaf7ss5IvTx+4WSA+RllDYMKLDosfV9v9
5KnKL9RFWybjcalto+LRqoxqpU6+CiA7C8xeMteM5IFa0dW1mbBfkZ5Ac/+GydgpTD7n
w7eGsl51JLiKHbkxOoTYKUJ+5+VVS7TtyYFvNw1UHyH14IsDGHyHmc2D0bsjZ+qeYtlf
HgFQ==
X-Forwarded-Encrypted: i=1; AKwUvBx3N3dCXgRJC40jL/8wVY1vL43ui9fnY03pOi3oMwIeV6M2p85TpvfZsI2yrQ271PKlJAfAn4w=@vger.kernel.org
X-Gm-Message-State: AFq9FYIuavgABHjX1RmFulhRGD6qBhQf9g0P5CcHGPfJSAf7lT0sP8kD
sczFhJtmtaR8+Fd9Co8ma3EkPAczFJm/2EXWS1J8fqYHQQnIfQEjaNiUQnSKBULSKAUsTvnA1Mf
+BYO+PiyJ8FY7Ky7qoWLPGSltGnaZiDkTYFlFzznCGS1o5Mx+U1KZB0yizqY=
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-Received: by 2002:a05:6808:c224:b0:4e6:76eb:b991 with SMTP id
5614622812f47-54d950c7a3emr2372052b6e.29.1792544612365; Tue, 20 Oct 2026
18:03:32 -0700 (PDT)
X-In-Reply-To: <6a6be82b.77639fcc.3d4fd0.0014.GAE@google.com>
X-Google-Appengine-App-Id: s~syzkaller
X-Google-Appengine-App-Id-Alias: syzkaller