From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0690C433EF for ; Tue, 29 Mar 2022 15:22:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238454AbiC2PYF (ORCPT ); Tue, 29 Mar 2022 11:24:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232090AbiC2PYE (ORCPT ); Tue, 29 Mar 2022 11:24:04 -0400 Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 972871C4B2A for ; Tue, 29 Mar 2022 08:22:21 -0700 (PDT) Received: by mail-io1-f71.google.com with SMTP id b15-20020a05660214cf00b00648a910b964so12572945iow.19 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=mNs1iSb+NZwIJVUnCabwuAZpg9iHxu2tpyPprvc4kFgO7Q5lfarj9J70DCNinZk5ve CJZau/IzUbTEriQzZYS3LYPExDfnd/oJ/bigcYWA1SnOYix2ybOTTk6dNJtMoA5rz725 vHhf4skYnuLWbR3td7vi4DAqx7ks7kLpRvEI7iWuL2a3W3po63Q+5NZI/QAcrXBPK116 Johni2xAppqhJxFnLC78eEKQncaQOFMSdw1QEeuU2Y9BeWchFjn39Y8OWkoCuM1bIEKl zovJLACvG4/Wwi/4J7rGKQ3Xr7PFTQ6/xi7EOLP0kUSJXyHCye1z5P8qfsDbXOdDu/t4 YAiQ== X-Gm-Message-State: AOAM531tpexkzOzE9cu5NTknOpb/iaX3JkVuJFtfl9BcfNSyCkpdD/yp 6IUSzbeIcDIHCDCRnV2NGHAmUbE/SEG5JD+M/uR5/Ntuzdv3 X-Google-Smtp-Source: ABdhPJwEhecZIWBhxu8UENb5AeqD1ufIoK+sgyDfNUmc7z61COVL6a53khHIMSakMoWjBb+RJewOyFGLdk2Xc4iTXNnNiCEpnWLN 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" Precedence: bulk List-ID: X-Mailing-List: netdev@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