syzbot


WARNING in dev_deactivate_many

Status: upstream: reported C repro on 2024/06/24 15:15
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+e9121deb112a224121e0@syzkaller.appspotmail.com
First crash: 23d, last: 6d08h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] WARNING in dev_deactivate_many 0 (1) 2024/06/24 15:15
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/07/07 02:29 18m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing report log
2024/07/07 02:29 18m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing OK log
2024/06/21 04:52 20m edumazet@google.com patch https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing report log

Sample crash report:
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
ref_tracker: freed in:
 netdev_tracker_free include/linux/netdevice.h:4058 [inline]
 netdev_put include/linux/netdevice.h:4075 [inline]
 netdev_put include/linux/netdevice.h:4071 [inline]
 dev_watchdog_down net/sched/sch_generic.c:570 [inline]
 dev_deactivate_many+0x214/0xb40 net/sched/sch_generic.c:1362
 dev_deactivate+0xf9/0x1c0 net/sched/sch_generic.c:1396
 linkwatch_do_dev+0x11e/0x160 net/core/link_watch.c:175
 __linkwatch_run_queue+0x233/0x690 net/core/link_watch.c:234
 linkwatch_event+0x8f/0xc0 net/core/link_watch.c:277
 process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231
 process_scheduled_works kernel/workqueue.c:3312 [inline]
 worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2496 at lib/ref_tracker.c:255 ref_tracker_free+0x61e/0x820 lib/ref_tracker.c:255
Modules linked in:
CPU: 0 PID: 2496 Comm: kworker/0:0 Not tainted 6.10.0-rc4-syzkaller-00053-g819984a0dd36 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: usb_hub_wq hub_event
RIP: 0010:ref_tracker_free+0x61e/0x820 lib/ref_tracker.c:255
Code: 00 44 8b 6b 18 31 ff 44 89 ee e8 4d d8 f1 fe 45 85 ed 0f 85 a6 00 00 00 e8 3f dd f1 fe 48 8b 34 24 48 89 ef e8 83 f3 32 04 90 <0f> 0b 90 bb ea ff ff ff e9 4e fd ff ff e8 20 dd f1 fe 4c 8d 6d 44
RSP: 0018:ffffc900002d7298 EFLAGS: 00010202
RAX: 0000000000000201 RBX: ffff8881137311c0 RCX: 0000000000000000
RDX: 0000000000000202 RSI: ffffffff86c7d6e0 RDI: 0000000000000001
RBP: ffff88811fc185e0 R08: 0000000000000001 R09: fffffbfff1997dae
R10: ffffffff8ccbed77 R11: fffffffffffda9a0 R12: 1ffff9200005ae55
R13: 0000000005a60115 R14: ffff8881137311d8 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8881f6400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fae50793120 CR3: 00000001026b6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 netdev_tracker_free include/linux/netdevice.h:4058 [inline]
 netdev_put include/linux/netdevice.h:4075 [inline]
 netdev_put include/linux/netdevice.h:4071 [inline]
 dev_watchdog_down net/sched/sch_generic.c:570 [inline]
 dev_deactivate_many+0x214/0xb40 net/sched/sch_generic.c:1362
 __dev_close_many+0x145/0x310 net/core/dev.c:1543
 dev_close_many+0x24c/0x6a0 net/core/dev.c:1581
 unregister_netdevice_many_notify+0x46d/0x19f0 net/core/dev.c:11194
 unregister_netdevice_many net/core/dev.c:11277 [inline]
 unregister_netdevice_queue+0x307/0x3f0 net/core/dev.c:11156
 unregister_netdevice include/linux/netdevice.h:3119 [inline]
 unregister_netdev+0x1c/0x30 net/core/dev.c:11295
 usbnet_disconnect+0xed/0x500 drivers/net/usb/usbnet.c:1621
 usb_unbind_interface+0x1e8/0x970 drivers/usb/core/driver.c:461
 device_remove drivers/base/dd.c:568 [inline]
 device_remove+0x122/0x170 drivers/base/dd.c:560
 __device_release_driver drivers/base/dd.c:1270 [inline]
 device_release_driver_internal+0x44a/0x610 drivers/base/dd.c:1293
 bus_remove_device+0x22f/0x420 drivers/base/bus.c:574
 device_del+0x396/0x9f0 drivers/base/core.c:3868
 usb_disable_device+0x36c/0x7f0 drivers/usb/core/message.c:1418
 usb_disconnect+0x2e1/0x920 drivers/usb/core/hub.c:2304
 hub_port_connect drivers/usb/core/hub.c:5361 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5661 [inline]
 port_event drivers/usb/core/hub.c:5821 [inline]
 hub_event+0x1be4/0x4f50 drivers/usb/core/hub.c:5903
 process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231
 process_scheduled_works kernel/workqueue.c:3312 [inline]
 worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/23 02:27 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 819984a0dd36 edc5149a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in dev_deactivate_many
2024/06/21 04:19 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 58be297b675d dac2aa43 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in dev_deactivate_many
2024/06/22 18:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 819984a0dd36 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in dev_deactivate_many
2024/06/21 23:45 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 819984a0dd36 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in dev_deactivate_many
2024/06/21 01:32 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 58be297b675d dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in dev_deactivate_many
2024/06/19 11:16 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b0fc24f36191 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in dev_deactivate_many
* Struck through repros no longer work on HEAD.