Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp673490pxb; Tue, 29 Mar 2022 09:17:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwImxsif366vDyCfU3THEx2kbbKpJyaYpN17mH1GaIB+nuwcUtdimU5fHWU1x/EBGGK5kdY X-Received: by 2002:a17:907:da6:b0:6e0:c59:f3ad with SMTP id go38-20020a1709070da600b006e00c59f3admr35490541ejc.85.1648570646109; Tue, 29 Mar 2022 09:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648570646; cv=none; d=google.com; s=arc-20160816; b=hdbTaX/Yru1SSGQZgSi2HSZ72rhuHaVfcfFbt6jOr18H+OkmAM0Yw2DuLIamwHK8Wy MEbsbukJX6HgZ0rGJHSC1SYG1xwCqH6q0Yp3CusHhAJVYw/Auc1ZK2qH6LtVmCpjTqch GmOPseL0cc9MlMmRESw6hTassbqtZP3aK+UvHsJfrMWpnGtvi+DBkxF4o+iwZt0AJCMW EUEzs3pKQoFHBJ5QAThbxoncmiXNaegGlaCt6VNCO8aJmoh0RRReQPxixErQvbqFyEB/ KsFfJRyN8B2Iubql/6L5Fa3GAr1uhkaWC0WX5DenMARJH3AxysBnNkQ4fdIKOb1g4wf+ WqWA== 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=rJF02FUqA+BGhfpQq15X1gdE3Vmrsf58Y4lCUEm8TvI=; b=F1aqUhK4pHEbaZpyZk6JlHY584vF74moOGLsMNo37hv/dN2LEhLG9jDkf3JvyXccaV Dt5KuHI2ZYhqE+xHEZ7Miu3iU/mnMpnZkdECPcpo6a8LamdeZdK/VwVCJRXcf075AcoK 6kpeJiRC3OUvs8n3a7jjEGDrwFBAwHqCTRBZJNcCsOXcbiguNtUBtOM2QIpobEYZjRgp PBpfo2dne4Zuv2gnHtmP2sC/VE+XxKa3UMjuyqyFYzpBAqChppQ3lYMANXhH/GjnEdrJ hnYh0FAl2hrrKR9hS7d3iOSijmaFU04MkhO+8uxggDwttJTHLEnA6xu18t6ctenJw6ss fcbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b98-20020a509f6b000000b00418c2b5be6csi17942665edf.334.2022.03.29.09.16.52; Tue, 29 Mar 2022 09:17:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232090AbiC2PYF (ORCPT + 99 others); Tue, 29 Mar 2022 11:24:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233521AbiC2PYE (ORCPT ); Tue, 29 Mar 2022 11:24:04 -0400 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C0B9207A0A for ; Tue, 29 Mar 2022 08:22:21 -0700 (PDT) Received: by mail-il1-f199.google.com with SMTP id x1-20020a056e020f0100b002c98fce9c13so4828969ilj.3 for ; Tue, 29 Mar 2022 08:22:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=rJF02FUqA+BGhfpQq15X1gdE3Vmrsf58Y4lCUEm8TvI=; b=KCPDzrgCCMMgVLUVZkDolmALGjSkBqN1Dxktu5Og+obYj9UHwfiM0am4gjxOwEgISv 2QKgwk7fhnpH1EnxzuIbHZUqocIWlvI4VroOswoOeIDJiF1YhbyccQAvG+jDsWWP8zrW fUuYKn80rtATqn3sC1V2l7Zycw7KIdV4JGWVk5FbtWkBVRJrbFwqUCO/rCRpKgwQuIR8 xc3veLVTJLDEAcSisSYGGlWX/ClrDCvUqfL0Re7XvYcHU7QeOgT7mT+AwmyDd9nxCYqh hNr6AY6yNeYC8+yvcmUD5UeeSwmahUhLHcq4EschpgANYLqtdZkTYzeEDQJ6/PMpd+/u cj4g== X-Gm-Message-State: AOAM5306fhbj51tKtPFzKNXwcpwhEGMR4mSKIbWYZRWXpHBVdMkESsxp SiOfuz0cG7WdNcuf80HzuXAm60kACdGzxoOzOvestyBve2Tf MIME-Version: 1.0 X-Received: by 2002:a02:5b85:0:b0:319:ff85:ff5 with SMTP id g127-20020a025b85000000b00319ff850ff5mr17038951jab.250.1648567340853; Tue, 29 Mar 2022 08:22:20 -0700 (PDT) Date: Tue, 29 Mar 2022 08:22:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000bd6ee505db5cfec6@google.com> Subject: [syzbot] memory leak in gs_usb_probe From: syzbot To: davem@davemloft.net, kuba@kernel.org, linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, mkl@pengutronix.de, netdev@vger.kernel.org, pabeni@redhat.com, pfink@christ-es.de, syzkaller-bugs@googlegroups.com, wg@grandegger.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 52deda9551a0 Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12b472dd700000 kernel config: https://syzkaller.appspot.com/x/.config?x=9ca2a67ddb20027f dashboard link: https://syzkaller.appspot.com/bug?extid=4d0ae90a195b269f102d compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12e96e1d700000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12f8b513700000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+4d0ae90a195b269f102d@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff88810e4fc300 (size 96): comm "kworker/1:1", pid 25, jiffies 4294948102 (age 15.080s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc include/linux/slab.h:581 [inline] [] gs_make_candev drivers/net/can/usb/gs_usb.c:1065 [inline] [] gs_usb_probe.cold+0x69e/0x8b8 drivers/net/can/usb/gs_usb.c:1191 [] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396 [] call_driver_probe drivers/base/dd.c:517 [inline] [] really_probe.part.0+0xe7/0x380 drivers/base/dd.c:596 [] really_probe drivers/base/dd.c:558 [inline] [] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:755 [] driver_probe_device+0x2a/0x120 drivers/base/dd.c:785 [] __device_attach_driver+0xf6/0x140 drivers/base/dd.c:902 [] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:427 [] __device_attach+0x122/0x260 drivers/base/dd.c:973 [] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:487 [] device_add+0x5fb/0xdf0 drivers/base/core.c:3405 [] usb_set_configuration+0x8f2/0xb80 drivers/usb/core/message.c:2170 [] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238 [] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293 [] call_driver_probe drivers/base/dd.c:517 [inline] [] really_probe.part.0+0xe7/0x380 drivers/base/dd.c:596 [] really_probe drivers/base/dd.c:558 [inline] [] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:755 [] driver_probe_device+0x2a/0x120 drivers/base/dd.c:785 BUG: memory leak unreferenced object 0xffff88810e4fc280 (size 96): comm "kworker/1:1", pid 25, jiffies 4294948819 (age 7.910s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc include/linux/slab.h:581 [inline] [] gs_make_candev drivers/net/can/usb/gs_usb.c:1065 [inline] [] gs_usb_probe.cold+0x69e/0x8b8 drivers/net/can/usb/gs_usb.c:1191 [] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396 [] call_driver_probe drivers/base/dd.c:517 [inline] [] really_probe.part.0+0xe7/0x380 drivers/base/dd.c:596 [] really_probe drivers/base/dd.c:558 [inline] [] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:755 [] driver_probe_device+0x2a/0x120 drivers/base/dd.c:785 [] __device_attach_driver+0xf6/0x140 drivers/base/dd.c:902 [] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:427 [] __device_attach+0x122/0x260 drivers/base/dd.c:973 [] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:487 [] device_add+0x5fb/0xdf0 drivers/base/core.c:3405 [] usb_set_configuration+0x8f2/0xb80 drivers/usb/core/message.c:2170 [] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238 [] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293 [] call_driver_probe drivers/base/dd.c:517 [inline] [] really_probe.part.0+0xe7/0x380 drivers/base/dd.c:596 [] really_probe drivers/base/dd.c:558 [inline] [] __driver_probe_device+0x10c/0x1e0 drivers/base/dd.c:755 [] driver_probe_device+0x2a/0x120 drivers/base/dd.c:785 --- 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