syzbot


WARNING: refcount bug in rx_queue_release

Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: 34ac17ecbf57 ethtool: use ethnl_parse_header_dev_put()
First crash: 268d, last: 254d

Sample crash report:
batman_adv: batadv0: Removing interface: batadv_slave_0
batman_adv: batadv0: Interface deactivated: batadv_slave_1
batman_adv: batadv0: Removing interface: batadv_slave_1
device bridge_slave_1 left promiscuous mode
bridge0: port 2(bridge_slave_1) entered disabled state
device bridge_slave_0 left promiscuous mode
bridge0: port 1(bridge_slave_0) entered disabled state
device hsr_slave_0 left promiscuous mode
device hsr_slave_1 left promiscuous mode
batman_adv: batadv0: Interface deactivated: batadv_slave_0
batman_adv: batadv0: Removing interface: batadv_slave_0
batman_adv: batadv0: Interface deactivated: batadv_slave_1
batman_adv: batadv0: Removing interface: batadv_slave_1
device bridge_slave_1 left promiscuous mode
bridge0: port 2(bridge_slave_1) entered disabled state
device bridge_slave_0 left promiscuous mode
bridge0: port 1(bridge_slave_0) entered disabled state
device hsr_slave_0 left promiscuous mode
device hsr_slave_1 left promiscuous mode
batman_adv: batadv0: Interface deactivated: batadv_slave_0
batman_adv: batadv0: Removing interface: batadv_slave_0
batman_adv: batadv0: Interface deactivated: batadv_slave_1
batman_adv: batadv0: Removing interface: batadv_slave_1
device bridge_slave_1 left promiscuous mode
bridge0: port 2(bridge_slave_1) entered disabled state
device bridge_slave_0 left promiscuous mode
bridge0: port 1(bridge_slave_0) entered disabled state
device veth1_macvtap left promiscuous mode
device veth0_macvtap left promiscuous mode
device veth1_vlan left promiscuous mode
device veth0_vlan left promiscuous mode
device veth1_macvtap left promiscuous mode
device veth0_macvtap left promiscuous mode
device veth1_vlan left promiscuous mode
device veth0_vlan left promiscuous mode
device veth1_macvtap left promiscuous mode
device veth0_macvtap left promiscuous mode
device veth1_vlan left promiscuous mode
device veth0_vlan left promiscuous mode
team0 (unregistering): Port device team_slave_0 removed
bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
bond0 (unregistering): Released all slaves
team0 (unregistering): Port device team_slave_1 removed
team0 (unregistering): Port device team_slave_0 removed
bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
bond0 (unregistering): Released all slaves
------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 1 PID: 9 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Modules linked in:
CPU: 1 PID: 9 Comm: kworker/u16:0 Not tainted 5.16.0-rc2-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Workqueue: netns cleanup_net
RIP: 0010:refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Code: 1d d4 da a1 09 31 ff 89 de e8 9d 4a 9c fd 84 db 75 e0 e8 b4 46 9c fd 48 c7 c7 e0 4c 04 8a c6 05 b4 da a1 09 01 e8 a5 ae 25 05 <0f> 0b eb c4 e8 98 46 9c fd 0f b6 1d a3 da a1 09 31 ff 89 de e8 68
RSP: 0018:ffffc900005cf910 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880118a0240 RSI: ffffffff815e40a8 RDI: fffff520000b9f14
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815dde4e R11: 0000000000000000 R12: ffff888074cac5b0
R13: 0000000000000002 R14: ffff888013a4e5c0 R15: ffff88801919f050
FS:  0000000000000000(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ff00429000 CR3: 0000000018ed0000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __refcount_dec include/linux/refcount.h:344 [inline]
 refcount_dec include/linux/refcount.h:359 [inline]
 dev_put include/linux/netdevice.h:4166 [inline]
 rx_queue_release+0x123/0x140 net/core/net-sysfs.c:1015
 kobject_cleanup lib/kobject.c:705 [inline]
 kobject_release lib/kobject.c:736 [inline]
 kref_put include/linux/kref.h:65 [inline]
 kobject_put+0x1c8/0x540 lib/kobject.c:753
 net_rx_queue_update_kobjects+0x3e5/0x500 net/core/net-sysfs.c:1123
 remove_queue_kobjects net/core/net-sysfs.c:1821 [inline]
 netdev_unregister_kobject+0x14f/0x1f0 net/core/net-sysfs.c:1972
 unregister_netdevice_many+0xd1f/0x1790 net/core/dev.c:11104
 default_device_exit_batch+0x2fa/0x3c0 net/core/dev.c:11607
 ops_exit_list+0x10d/0x160 net/core/net_namespace.c:171
 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:593
 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (12):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream 2021/11/26 11:15 upstream a4849f6000e2 63eeac02 .config log report info WARNING: refcount bug in rx_queue_release
ci-upstream-kasan-gce 2021/11/25 13:14 upstream 5f53fa508db0 545ab074 .config log report info WARNING: refcount bug in rx_queue_release
ci-qemu-upstream 2021/11/18 16:24 upstream 42eb8fdac2fc 31a30fc0 .config log report info WARNING: refcount bug in rx_queue_release
ci-qemu-upstream 2021/11/18 09:11 upstream 42eb8fdac2fc cafff8b6 .config log report info WARNING: refcount bug in rx_queue_release
ci-qemu-upstream 2021/11/15 01:59 upstream fa55b7dcdc43 83f5c9b5 .config log report info WARNING: refcount bug in rx_queue_release
ci-qemu-upstream 2021/11/14 14:54 upstream c8c109546a19 83f5c9b5 .config log report info WARNING: refcount bug in rx_queue_release
ci-qemu-upstream 2021/11/13 23:39 upstream ccfff0a2bd2a 83f5c9b5 .config log report info WARNING: refcount bug in rx_queue_release
ci-qemu-upstream 2021/11/12 16:47 upstream 5833291ab6de 83f5c9b5 .config log report info WARNING: refcount bug in rx_queue_release
ci-qemu-upstream-386 2021/11/25 20:23 upstream b501b85957de 63eeac02 .config log report info WARNING: refcount bug in rx_queue_release
ci-qemu-upstream-386 2021/11/14 13:28 upstream c8c109546a19 83f5c9b5 .config log report info WARNING: refcount bug in rx_queue_release
ci-upstream-net-kasan-gce 2021/11/25 11:32 net-next 305e95bb893c 545ab074 .config log report info WARNING: refcount bug in rx_queue_release
ci-upstream-net-kasan-gce 2021/11/13 16:41 net-next 66f4beaa6c1d 83f5c9b5 .config log report info WARNING: refcount bug in rx_queue_release