Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4591754pxb; Sun, 27 Mar 2022 22:52:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbuZPKh7Pyq/fjvzxCpmsVh3tWa2ccn6Y/WiANoiZj7TMJ2DbBnX12uwpkGaKIIrgLClGx X-Received: by 2002:a17:902:7c90:b0:156:255:c571 with SMTP id y16-20020a1709027c9000b001560255c571mr6756453pll.15.1648446735334; Sun, 27 Mar 2022 22:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648446735; cv=none; d=google.com; s=arc-20160816; b=wUBS+gOBm3Ex+G5V6bPMQWylb8i9HETI/eCrE3mBN8Md0TbZlOjitVX+UVD0sAPadH b9Z9bBFgudIF8gILkjLF1Mve52aud4V47CxSiCD9oaTgWtOFnO9iTWQaWadnLikc8N4T QBv3o4r57gAhQqRjpCu2YYYZ/InPMlWPv5lQY0uJFxkeg42O82IhgB+3xAAi45ByTJYH wI7vx1X31BB5PHDypBv2cZnmOVGPa32XYhmY3vQEG1FUalQtfZ+nzXsPPltM2Rtts26m w4ECgcxSIcOw+r5U0Xuzd45iR9U12JxbJSs3DzR8eOlYoG3ynsf9rSbZWgxPAmlahjm2 +5vA== 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=CxecizhYVUoFFb2ENXPAj0S4kGMZ/wuMLwi+CMwdSbI=; b=AsJlaICe/MJbQCo9MMyG9Iu9J8//qJf5ApKvuVrzmSyaY/DYCG8WE8wqmmbJx/HVZM Hq0nUDJzj4UTfBhFjt2nEcVnw8TcZs0WuZ9Wtk/bWAxZJ8qdvv4rNcc6GOkkso/M7AlJ kuUp65IrSSX1sp0I5wSx1EcFKyKp1JOrLak3Lwa8tdGL3S99IAz3G4EScMkwdk2VRg66 oKmPGRJfYTP3JASw0mqmfRnpgWbOt/FPE/54ELaNrIbDJKw6Erastcq/qHOT8hJXi2/P XuRmkDZ3+H7AuTxZBskZy2jy7SXSc9MHEDU84nE78jATFU4YiYRWp3YjTgN2L/m0ISxy NfPQ== 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 l8-20020a17090270c800b00153b2d1665asi11632246plt.610.2022.03.27.22.52.01; Sun, 27 Mar 2022 22:52:15 -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 S232179AbiC0UKD (ORCPT + 99 others); Sun, 27 Mar 2022 16:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231990AbiC0UKA (ORCPT ); Sun, 27 Mar 2022 16:10:00 -0400 Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 059F060E1 for ; Sun, 27 Mar 2022 13:08:19 -0700 (PDT) Received: by mail-io1-f70.google.com with SMTP id u10-20020a5ec00a000000b00648e5804d5bso9194579iol.12 for ; Sun, 27 Mar 2022 13:08:19 -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=CxecizhYVUoFFb2ENXPAj0S4kGMZ/wuMLwi+CMwdSbI=; b=DTeoVkevFenR/6NZnNe0LflssxD81MWg1WsJRt9sWF8lbOfshcRNOJgj7RdHGt7FR7 ArIvF0oBSZuhKcblz0giRPTwY8Ec9smYK8S02J+b2pnbOoWtdMucRHQN0EYPD36Xu3z2 9MxyuVzPJyYHzjfDtFJtoQEAKpG85ymFTyAEktc8SW8LjoiKQYowbGM28ni8Ynq4kVMW g9p13/5DjmOl2e4bFm/ouU0jsbgcvFGznUpYVcA91bomyvvAGjJGFp9dbCRFt668I+tl HUcnGg7KKsH2sK5u1Vj+kRFNYuVia+acF5fgaF1NARpge35eO9F5mQU0MkjdTw36ckXI 506w== X-Gm-Message-State: AOAM532kCpJcMf2GM5Gh2ZUb/tq6sE2SLctrNQkJUO25iMqLfhuLxyk1 Vl4nDt3RIY5pF2eD7i69MEvvy/n1jjNye61VrdD8LSvcVJXa MIME-Version: 1.0 X-Received: by 2002:a05:6e02:19c6:b0:2c2:5f51:c81 with SMTP id r6-20020a056e0219c600b002c25f510c81mr4134847ill.57.1648411699002; Sun, 27 Mar 2022 13:08:19 -0700 (PDT) Date: Sun, 27 Mar 2022 13:08:18 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000c341cc05db38c1b0@google.com> Subject: [syzbot] memory leak in blk_mq_init_tags From: syzbot To: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, 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: 6b1f86f8e9c7 Merge tag 'folio-5.18b' of git://git.infradea.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13b41dcb700000 kernel config: https://syzkaller.appspot.com/x/.config?x=c6e80763d853259b dashboard link: https://syzkaller.appspot.com/bug?extid=f08c77040fa163a75a46 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=1564ecb3700000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+f08c77040fa163a75a46@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff888118503c00 (size 192): comm "kworker/u4:2", pid 52, jiffies 4294961137 (age 11.420s) hex dump (first 32 bytes): 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 02 00 00 00 06 00 00 00 01 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc_node include/linux/slab.h:602 [inline] [] kzalloc_node include/linux/slab.h:728 [inline] [] blk_mq_init_tags+0x4b/0xc0 block/blk-mq-tag.c:578 [] blk_mq_alloc_rq_map+0xea/0x1a0 block/blk-mq.c:3169 [] blk_mq_alloc_map_and_rqs+0x26/0xb0 block/blk-mq.c:3620 [] blk_mq_sched_alloc_map_and_rqs block/blk-mq-sched.c:507 [inline] [] blk_mq_init_sched+0x127/0x2e0 block/blk-mq-sched.c:587 [] elevator_init_mq+0x1f9/0x240 block/elevator.c:709 [] device_add_disk+0x25/0x510 block/genhd.c:421 [] sd_probe+0x457/0x670 drivers/scsi/sd.c:3551 [] 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_async_helper+0xcf/0x110 drivers/base/dd.c:931 [] async_run_entry_fn+0x24/0xf0 kernel/async.c:127 [] process_one_work+0x2bf/0x600 kernel/workqueue.c:2307 [] worker_thread+0x59/0x5b0 kernel/workqueue.c:2454 BUG: memory leak unreferenced object 0xffff888117fee680 (size 128): comm "kworker/u4:2", pid 52, jiffies 4294961137 (age 11.420s) hex dump (first 32 bytes): 01 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_array_node include/linux/slab.h:679 [inline] [] kcalloc_node include/linux/slab.h:684 [inline] [] sbitmap_init_node+0xde/0x2d0 lib/sbitmap.c:113 [] sbitmap_queue_init_node+0x3c/0x1f0 lib/sbitmap.c:428 [] bt_alloc block/blk-mq-tag.c:543 [inline] [] blk_mq_init_bitmaps+0x57/0xf0 block/blk-mq-tag.c:555 [] blk_mq_init_tags+0x88/0xc0 block/blk-mq-tag.c:586 [] blk_mq_alloc_rq_map+0xea/0x1a0 block/blk-mq.c:3169 [] blk_mq_alloc_map_and_rqs+0x26/0xb0 block/blk-mq.c:3620 [] blk_mq_sched_alloc_map_and_rqs block/blk-mq-sched.c:507 [inline] [] blk_mq_init_sched+0x127/0x2e0 block/blk-mq-sched.c:587 [] elevator_init_mq+0x1f9/0x240 block/elevator.c:709 [] device_add_disk+0x25/0x510 block/genhd.c:421 [] sd_probe+0x457/0x670 drivers/scsi/sd.c:3551 [] 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_async_helper+0xcf/0x110 drivers/base/dd.c:931 BUG: memory leak unreferenced object 0xffff888116df4c00 (size 512): comm "kworker/u4:2", pid 52, jiffies 4294961137 (age 11.420s) hex dump (first 32 bytes): 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 10 4c df 16 81 88 ff ff 10 4c df 16 81 88 ff ff .L.......L...... backtrace: [] kmalloc_node include/linux/slab.h:602 [inline] [] kzalloc_node include/linux/slab.h:728 [inline] [] sbitmap_queue_init_node+0x108/0x1f0 lib/sbitmap.c:438 [] bt_alloc block/blk-mq-tag.c:543 [inline] [] blk_mq_init_bitmaps+0x87/0xf0 block/blk-mq-tag.c:557 [] blk_mq_init_tags+0x88/0xc0 block/blk-mq-tag.c:586 [] blk_mq_alloc_rq_map+0xea/0x1a0 block/blk-mq.c:3169 [] blk_mq_alloc_map_and_rqs+0x26/0xb0 block/blk-mq.c:3620 [] blk_mq_sched_alloc_map_and_rqs block/blk-mq-sched.c:507 [inline] [] blk_mq_init_sched+0x127/0x2e0 block/blk-mq-sched.c:587 [] elevator_init_mq+0x1f9/0x240 block/elevator.c:709 [] device_add_disk+0x25/0x510 block/genhd.c:421 [] sd_probe+0x457/0x670 drivers/scsi/sd.c:3551 [] 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_async_helper+0xcf/0x110 drivers/base/dd.c:931 [] async_run_entry_fn+0x24/0xf0 kernel/async.c:127 --- 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