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 X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3873C433F5 for ; Mon, 13 Sep 2021 08:04:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B22C960F92 for ; Mon, 13 Sep 2021 08:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237725AbhIMIFu (ORCPT ); Mon, 13 Sep 2021 04:05:50 -0400 Received: from mail-io1-f69.google.com ([209.85.166.69]:52816 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237713AbhIMIFr (ORCPT ); Mon, 13 Sep 2021 04:05:47 -0400 Received: by mail-io1-f69.google.com with SMTP id e18-20020a6b7312000000b005be766a70dbso13322518ioh.19 for ; Mon, 13 Sep 2021 01:04:32 -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:in-reply-to:message-id:subject :from:to; bh=PjwXxTwlsEf2JX6e7/eNYgkSX09JO8xcTqxRo9lighc=; b=VRgr6YAO55v4b4K8UdT5mIzJDxE+IvAJ4tEUXy0KWgeTOqK8gzbSqB1z4esNwJPQ3f WR02P2V1vntU4hzIDNoDRMtOusxdKFkvD9J54DlhcbT7O/uU7jRGVRqdFGF9eeFUU7u5 zDifWGu9R0WHrjZKQV9YosOUAQX8LJmQ3Y5n8cvSjcxzj7/sv9VJiGvuCboELwa48cFx Wg81RoUdxYfdlhiE6DmznTaJd7143w2Ex4diwktKPCVDNBVx8LhLhxLwzWZZue8dxw2G RUCfW8U9txm7fmIcNnkvpYEylQ4g0Vxe0NjW28OS0brK1lm/EBuwCO8f9U/YMhMgWJNB QXkA== X-Gm-Message-State: AOAM532/bQ+jCk69UJ8uRTi5tY3Zj6AleDfeSg1zvnXrfJpq1814ncQe rZttsEyQBJ8uPMy2wMdrVEthlGjH8CjC9odm2a1AnKxsuNbK X-Google-Smtp-Source: ABdhPJxk/RaDiv0svCfqTaljcJw1liNNEy6x4BPZK+g0g545XlGcP0Wi2MSKVftDZIc4Ile4osYs6Kc3MZBxlVecCZmJIP23TA+4 MIME-Version: 1.0 X-Received: by 2002:a92:6904:: with SMTP id e4mr7164478ilc.311.1631520272300; Mon, 13 Sep 2021 01:04:32 -0700 (PDT) Date: Mon, 13 Sep 2021 01:04:32 -0700 In-Reply-To: <0000000000004fe6b105cb84cf1e@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000463eb205cbdbea58@google.com> Subject: Re: [syzbot] memory leak in create_io_worker From: syzbot To: Qiang.Zhang@windriver.com, asml.silence@gmail.com, axboe@kernel.dk, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: f306b90c69ce Merge tag 'smp-urgent-2021-09-12' of git://gi.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14bc2715300000 kernel config: https://syzkaller.appspot.com/x/.config?x=bb1c2ff5ae428ca6 dashboard link: https://syzkaller.appspot.com/bug?extid=65454c239241d3d647da compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=171d8963300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15b9ccdd300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+65454c239241d3d647da@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff88811953fa80 (size 192): comm "syz-executor248", pid 6847, jiffies 4294979550 (age 31.120s) hex dump (first 32 bytes): 01 00 00 00 08 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_node include/linux/slab.h:609 [inline] [] kzalloc_node include/linux/slab.h:732 [inline] [] create_io_worker+0x41/0x1f0 fs/io-wq.c:741 [] io_wqe_create_worker fs/io-wq.c:267 [inline] [] io_wqe_enqueue+0x217/0x3a0 fs/io-wq.c:873 [] io_queue_async_work+0xc4/0x200 fs/io_uring.c:1473 [] __io_queue_sqe+0x34c/0x510 fs/io_uring.c:6940 [] io_queue_sqe fs/io_uring.c:6958 [inline] [] io_submit_sqe fs/io_uring.c:7134 [inline] [] io_submit_sqes+0xc36/0x2ec0 fs/io_uring.c:7240 [] __do_sys_io_uring_enter+0x5ff/0xf80 fs/io_uring.c:9882 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x44/0xae BUG: memory leak unreferenced object 0xffff88811953fa80 (size 192): comm "syz-executor248", pid 6847, jiffies 4294979550 (age 31.180s) hex dump (first 32 bytes): 01 00 00 00 08 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_node include/linux/slab.h:609 [inline] [] kzalloc_node include/linux/slab.h:732 [inline] [] create_io_worker+0x41/0x1f0 fs/io-wq.c:741 [] io_wqe_create_worker fs/io-wq.c:267 [inline] [] io_wqe_enqueue+0x217/0x3a0 fs/io-wq.c:873 [] io_queue_async_work+0xc4/0x200 fs/io_uring.c:1473 [] __io_queue_sqe+0x34c/0x510 fs/io_uring.c:6940 [] io_queue_sqe fs/io_uring.c:6958 [inline] [] io_submit_sqe fs/io_uring.c:7134 [inline] [] io_submit_sqes+0xc36/0x2ec0 fs/io_uring.c:7240 [] __do_sys_io_uring_enter+0x5ff/0xf80 fs/io_uring.c:9882 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x44/0xae BUG: memory leak unreferenced object 0xffff88811953fa80 (size 192): comm "syz-executor248", pid 6847, jiffies 4294979550 (age 31.230s) hex dump (first 32 bytes): 01 00 00 00 08 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_node include/linux/slab.h:609 [inline] [] kzalloc_node include/linux/slab.h:732 [inline] [] create_io_worker+0x41/0x1f0 fs/io-wq.c:741 [] io_wqe_create_worker fs/io-wq.c:267 [inline] [] io_wqe_enqueue+0x217/0x3a0 fs/io-wq.c:873 [] io_queue_async_work+0xc4/0x200 fs/io_uring.c:1473 [] __io_queue_sqe+0x34c/0x510 fs/io_uring.c:6940 [] io_queue_sqe fs/io_uring.c:6958 [inline] [] io_submit_sqe fs/io_uring.c:7134 [inline] [] io_submit_sqes+0xc36/0x2ec0 fs/io_uring.c:7240 [] __do_sys_io_uring_enter+0x5ff/0xf80 fs/io_uring.c:9882 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x44/0xae BUG: memory leak unreferenced object 0xffff88811953fa80 (size 192): comm "syz-executor248", pid 6847, jiffies 4294979550 (age 31.290s) hex dump (first 32 bytes): 01 00 00 00 08 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_node include/linux/slab.h:609 [inline] [] kzalloc_node include/linux/slab.h:732 [inline] [] create_io_worker+0x41/0x1f0 fs/io-wq.c:741 [] io_wqe_create_worker fs/io-wq.c:267 [inline] [] io_wqe_enqueue+0x217/0x3a0 fs/io-wq.c:873 [] io_queue_async_work+0xc4/0x200 fs/io_uring.c:1473 [] __io_queue_sqe+0x34c/0x510 fs/io_uring.c:6940 [] io_queue_sqe fs/io_uring.c:6958 [inline] [] io_submit_sqe fs/io_uring.c:7134 [inline] [] io_submit_sqes+0xc36/0x2ec0 fs/io_uring.c:7240 [] __do_sys_io_uring_enter+0x5ff/0xf80 fs/io_uring.c:9882 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x44/0xae BUG: memory leak unreferenced object 0xffff88811953fa80 (size 192): comm "syz-executor248", pid 6847, jiffies 4294979550 (age 31.340s) hex dump (first 32 bytes): 01 00 00 00 08 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_node include/linux/slab.h:609 [inline] [] kzalloc_node include/linux/slab.h:732 [inline] [] create_io_worker+0x41/0x1f0 fs/io-wq.c:741 [] io_wqe_create_worker fs/io-wq.c:267 [inline] [] io_wqe_enqueue+0x217/0x3a0 fs/io-wq.c:873 [] io_queue_async_work+0xc4/0x200 fs/io_uring.c:1473 [] __io_queue_sqe+0x34c/0x510 fs/io_uring.c:6940 [] io_queue_sqe fs/io_uring.c:6958 [inline] [] io_submit_sqe fs/io_uring.c:7134 [inline] [] io_submit_sqes+0xc36/0x2ec0 fs/io_uring.c:7240 [] __do_sys_io_uring_enter+0x5ff/0xf80 fs/io_uring.c:9882 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x44/0xae BUG: memory leak unreferenced object 0xffff88811953fa80 (size 192): comm "syz-executor248", pid 6847, jiffies 4294979550 (age 31.400s) hex dump (first 32 bytes): 01 00 00 00 08 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_node include/linux/slab.h:609 [inline] [] kzalloc_node include/linux/slab.h:732 [inline] [] create_io_worker+0x41/0x1f0 fs/io-wq.c:741 [] io_wqe_create_worker fs/io-wq.c:267 [inline] [] io_wqe_enqueue+0x217/0x3a0 fs/io-wq.c:873 [] io_queue_async_work+0xc4/0x200 fs/io_uring.c:1473 [] __io_queue_sqe+0x34c/0x510 fs/io_uring.c:6940 [] io_queue_sqe fs/io_uring.c:6958 [inline] [] io_submit_sqe fs/io_uring.c:7134 [inline] [] io_submit_sqes+0xc36/0x2ec0 fs/io_uring.c:7240 [] __do_sys_io_uring_enter+0x5ff/0xf80 fs/io_uring.c:9882 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x44/0xae BUG: memory leak unreferenced object 0xffff88811953fa80 (size 192): comm "syz-executor248", pid 6847, jiffies 4294979550 (age 31.450s) hex dump (first 32 bytes): 01 00 00 00 08 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_node include/linux/slab.h:609 [inline] [] kzalloc_node include/linux/slab.h:732 [inline] [] create_io_worker+0x41/0x1f0 fs/io-wq.c:741 [] io_wqe_create_worker fs/io-wq.c:267 [inline] [] io_wqe_enqueue+0x217/0x3a0 fs/io-wq.c:873 [] io_queue_async_work+0xc4/0x200 fs/io_uring.c:1473 [] __io_queue_sqe+0x34c/0x510 fs/io_uring.c:6940 [] io_queue_sqe fs/io_uring.c:6958 [inline] [] io_submit_sqe fs/io_uring.c:7134 [inline] [] io_submit_sqes+0xc36/0x2ec0 fs/io_uring.c:7240 [] __do_sys_io_uring_enter+0x5ff/0xf80 fs/io_uring.c:9882 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x44/0xae BUG: memory leak unreferenced object 0xffff88811953fa80 (size 192): comm "syz-executor248", pid 6847, jiffies 4294979550 (age 31.500s) hex dump (first 32 bytes): 01 00 00 00 08 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_node include/linux/slab.h:609 [inline] [] kzalloc_node include/linux/slab.h:732 [inline] [] create_io_worker+0x41/0x1f0 fs/io-wq.c:741 [] io_wqe_create_worker fs/io-wq.c:267 [inline] [] io_wqe_enqueue+0x217/0x3a0 fs/io-wq.c:873 [] io_queue_async_work+0xc4/0x200 fs/io_uring.c:1473 [] __io_queue_sqe+0x34c/0x510 fs/io_uring.c:6940 [] io_queue_sqe fs/io_uring.c:6958 [inline] [] io_submit_sqe fs/io_uring.c:7134 [inline] [] io_submit_sqes+0xc36/0x2ec0 fs/io_uring.c:7240 [] __do_sys_io_uring_enter+0x5ff/0xf80 fs/io_uring.c:9882 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x44/0xae write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory