Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp802873pxy; Wed, 21 Apr 2021 15:44:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye4okmsMwEcUqsPfb8Kg6Lo6PijIZTHwPFGf68XeTmWIysUsw7uhFN30GGAUIYU+4m2gpo X-Received: by 2002:a63:120a:: with SMTP id h10mr415157pgl.212.1619045092804; Wed, 21 Apr 2021 15:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619045092; cv=none; d=google.com; s=arc-20160816; b=g7O4OUJ7F51pUvfJGbMCSLKw9JyfC9rBvQzkPOBGRVQqFeKkjehBA72Y+hr3hZZ1sD 3zq55XrbE/qBh4hjeluJjeCPJznWu9ZsAd/g8SvuG58fQgL+oCX1aqz1g76fIj7FxB4+ sNzs7Zi7iWc8/vH67/Wn8i7HkMm0Ao7z2Jg5cVtwPngt7rL2I4No73mVZXrGNyWAPMxb 9//3agNF9vzXG9keb5EMtV0i6eprzO5wxuNAMg/WGI8YEihud5J/X7nGiAAcXpw4jN/4 OLn5X2aAQYymWEnY3ca2+B3GddyFspbT/IM7YRddtqLn8mLaJriyKwpnaS6KUNJ87uKX CD/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=R3uYg2uJLiGS0r/f+irqbv2XMxfvS8kMSZjyQAHZ0hE=; b=kiC7VzIrHf6ke+Zm1Ux/rjpncXmCyM/UB2fJHZnaF8p65S6eUfUWh2vr7JUmV//FlQ 1uPcaWRch26Epb1Wu3N0xXC4F0Jywdn0kNLNioV/jPaiWUOhDHk7GJqyIgdVgzKNFYn7 6t585Nm/jsY4hZlngB50MtvAoZnW+fEJs5V0tVsjwQNIVaJ6+wix3hJbyrhtS5/2a2Rc plrBSgi6nDxIpl/PFs/UYCUVcO8btNwUMz23fTb2ra/F0QUHxp94RuBITVtRjC1nQFT/ 8ZjjF0kKKhTHuokrbQasOWcTyQA0L4nMNpihUbJrf6Qb1enxqPtrHyYltsvaUb7cl240 smFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si931091plw.355.2021.04.21.15.44.41; Wed, 21 Apr 2021 15:44:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243819AbhDUPMz (ORCPT + 99 others); Wed, 21 Apr 2021 11:12:55 -0400 Received: from mail-il1-f199.google.com ([209.85.166.199]:49909 "EHLO mail-il1-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240356AbhDUPMx (ORCPT ); Wed, 21 Apr 2021 11:12:53 -0400 Received: by mail-il1-f199.google.com with SMTP id c10-20020a92cf0a0000b029016baf18aee1so16195186ilo.16 for ; Wed, 21 Apr 2021 08:12:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=R3uYg2uJLiGS0r/f+irqbv2XMxfvS8kMSZjyQAHZ0hE=; b=OGIzJs0O7AuNBznkbPbaRUE6ggworzkeiTYreg+C6PbqQ+BoqcxddGum0XkdMOxQHS TKssUtnRJGdC9LlIjlVE/8av/wDaXXp9tnH709STzLZWxLecTpTyCm9NMZ41deGkHUIX lYWP/lwYPLQ1w93YQ0KyeYb0klI0LOIa0pR6KyPqtWfbWk95FO8n+hVrrGUTfs+ChCYG GzwvXnp3CQvRwEDlN5GCLeisYHWuhw8SLK2ojHVBB4jzd0zxSJnXmRQNAvedPTsC3DJ+ 8Y4/wlJK8+D5P/+JtoTj82w3/5kHdF+T13mZnEbuwobXNqvJVw0imNzpXZKVGGrN24/m Ze8A== X-Gm-Message-State: AOAM532gG6T9ZXgg7BwzLyevNVPUvznmvFQaRc5RHqxcAIsjHiMORj0z iE4Hf8nT5T5UIG+0sCO3mhR5H7A5GO3spRCltg8mebMAtEjn MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1aaa:: with SMTP id l10mr26736498ilv.29.1619017938422; Wed, 21 Apr 2021 08:12:18 -0700 (PDT) Date: Wed, 21 Apr 2021 08:12:18 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000001ad5d605c07cfd2e@google.com> Subject: [syzbot] memory leak in usb_set_configuration (2) From: syzbot To: gregkh@linuxfoundation.org, johan@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, mathias.nyman@linux.intel.com, stern@rowland.harvard.edu, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 9cdbf646 Merge tag 'io_uring-5.12-2021-04-16' of git://git.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=136ce5a6d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=fd35e661e44323ea dashboard link: https://syzkaller.appspot.com/bug?extid=d1e69c888f0d3866ead4 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16ecba29d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=143cf955d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+d1e69c888f0d3866ead4@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff8881120e1400 (size 1024): comm "kworker/0:2", pid 3660, jiffies 4294952380 (age 24.950s) hex dump (first 32 bytes): c8 78 3c 12 81 88 ff ff c8 78 3c 12 81 88 ff ff .x<......x<..... 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc include/linux/slab.h:554 [inline] [] kzalloc include/linux/slab.h:684 [inline] [] usb_set_configuration+0x187/0xb90 drivers/usb/core/message.c:1992 [] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238 [] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293 [] really_probe+0x159/0x4a0 drivers/base/dd.c:559 [] driver_probe_device+0x84/0x100 drivers/base/dd.c:745 [] __device_attach_driver+0xee/0x110 drivers/base/dd.c:851 [] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:431 [] __device_attach+0x122/0x250 drivers/base/dd.c:919 [] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:491 [] device_add+0x5d5/0xc40 drivers/base/core.c:3242 [] usb_new_device.cold+0x16a/0x582 drivers/usb/core/hub.c:2555 [] hub_port_connect drivers/usb/core/hub.c:5223 [inline] [] hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] [] port_event drivers/usb/core/hub.c:5509 [inline] [] hub_event+0x142e/0x20c0 drivers/usb/core/hub.c:5591 [] process_one_work+0x2c9/0x600 kernel/workqueue.c:2275 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2421 [] kthread+0x178/0x1b0 kernel/kthread.c:292 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 BUG: memory leak unreferenced object 0xffff888110a217a0 (size 32): comm "kworker/0:2", pid 3660, jiffies 4294952380 (age 24.950s) hex dump (first 32 bytes): 31 2d 31 3a 30 2e 32 34 31 00 00 00 00 00 00 00 1-1:0.241....... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kvasprintf+0x6c/0xf0 lib/kasprintf.c:25 [] kvasprintf_const+0x58/0x110 lib/kasprintf.c:49 [] kobject_set_name_vargs+0x3b/0xe0 lib/kobject.c:289 [] dev_set_name+0x63/0x90 drivers/base/core.c:3028 [] usb_set_configuration+0x6b9/0xb90 drivers/usb/core/message.c:2099 [] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238 [] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293 [] really_probe+0x159/0x4a0 drivers/base/dd.c:559 [] driver_probe_device+0x84/0x100 drivers/base/dd.c:745 [] __device_attach_driver+0xee/0x110 drivers/base/dd.c:851 [] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:431 [] __device_attach+0x122/0x250 drivers/base/dd.c:919 [] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:491 [] device_add+0x5d5/0xc40 drivers/base/core.c:3242 [] usb_new_device.cold+0x16a/0x582 drivers/usb/core/hub.c:2555 [] hub_port_connect drivers/usb/core/hub.c:5223 [inline] [] hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] [] port_event drivers/usb/core/hub.c:5509 [inline] [] hub_event+0x142e/0x20c0 drivers/usb/core/hub.c:5591 BUG: memory leak unreferenced object 0xffff88810c472800 (size 256): comm "kworker/0:2", pid 3660, jiffies 4294952409 (age 24.660s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 08 28 47 0c 81 88 ff ff .........(G..... 08 28 47 0c 81 88 ff ff b0 c4 5e 82 ff ff ff ff .(G.......^..... backtrace: [] kmalloc include/linux/slab.h:554 [inline] [] kzalloc include/linux/slab.h:684 [inline] [] device_private_init drivers/base/core.c:3084 [inline] [] device_add+0x811/0xc40 drivers/base/core.c:3134 [] usb_set_configuration+0x9d9/0xb90 drivers/usb/core/message.c:2164 [] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238 [] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293 [] really_probe+0x159/0x4a0 drivers/base/dd.c:559 [] driver_probe_device+0x84/0x100 drivers/base/dd.c:745 [] __device_attach_driver+0xee/0x110 drivers/base/dd.c:851 [] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:431 [] __device_attach+0x122/0x250 drivers/base/dd.c:919 [] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:491 [] device_add+0x5d5/0xc40 drivers/base/core.c:3242 [] usb_new_device.cold+0x16a/0x582 drivers/usb/core/hub.c:2555 [] hub_port_connect drivers/usb/core/hub.c:5223 [inline] [] hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] [] port_event drivers/usb/core/hub.c:5509 [inline] [] hub_event+0x142e/0x20c0 drivers/usb/core/hub.c:5591 [] process_one_work+0x2c9/0x600 kernel/workqueue.c:2275 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2421 [] kthread+0x178/0x1b0 kernel/kthread.c:292 [ 176. --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches