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 A1347C5479D for ; Mon, 9 Jan 2023 19:10:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237380AbjAITKc (ORCPT ); Mon, 9 Jan 2023 14:10:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237582AbjAITKU (ORCPT ); Mon, 9 Jan 2023 14:10:20 -0500 Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 810044F11B for ; Mon, 9 Jan 2023 11:10:18 -0800 (PST) Received: by mail-il1-f197.google.com with SMTP id z19-20020a921a53000000b0030b90211df1so6669744ill.2 for ; Mon, 09 Jan 2023 11:10:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qipXSH1J20AC+wKAB2KjTCOSuds0oDzQzeLap2sBh/o=; b=UZ2PQe5Ftjc0tJCN8h1scF8HZ6zX0yJ+foLfRf1Yf/iKeSchESKCAW0rf8cXPcnA/5 etWlUfwpsRFJ/7ZXCf+M/U9Rnygg2qn6v+mvU6zt64AeHONoV6YGM1XelejnBcK8OKew J+53vdUhF+60MKt/0xV+griOJOp2KwOfo2xhGVfX6xhQs4H88nAzGV4hn2GvA8gJDwlD GGjUKevywaY2ij+8ulYQqs9q8wIniLNtUgB0/oyd/2QuNnmzWA+G2cjQyEQVtPgfR3NE tvNomgPu2AjYEhm+pcGn1EfbjT2SeiM7NyRAOcGMFIZehRhADS4y7rNkmD5azE7Y1qVU BQuA== X-Gm-Message-State: AFqh2kpL0he5olxGGWlJSYKmFDlURBdJGf1t64OApfnnN3/1I99WmoZq 1s56khP57SB2A79EGLw/uPmMu9jfC7OuoDTVPm03kAFQd4wA X-Google-Smtp-Source: AMrXdXvekfGtpmxBwAA8jYkJiOeGaSTE4S050BkI8YGNuRcxcli6hv9NIhm554AyWQfQ9PRtJLTEJkqcMARSAq/gpxvJcaPtfz1m MIME-Version: 1.0 X-Received: by 2002:a92:c5cb:0:b0:30c:25e4:34f5 with SMTP id s11-20020a92c5cb000000b0030c25e434f5mr3757800ilt.222.1673291417865; Mon, 09 Jan 2023 11:10:17 -0800 (PST) Date: Mon, 09 Jan 2023 11:10:17 -0800 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000009156db05f1d984c7@google.com> Subject: Re: [syzbot] memory leak in io_submit_sqes (4) From: syzbot To: 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: linux-kernel@vger.kernel.org Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: memory leak in io_submit_sqes BUG: memory leak unreferenced object 0xffff888113562900 (size 256): comm "syz-executor.0", pid 5682, jiffies 4294944681 (age 14.960s) hex dump (first 32 bytes): 00 9f 50 13 81 88 ff ff 00 00 00 00 00 00 00 00 ..P............. 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 .........@...... backtrace: [] __io_alloc_req_refill+0x55/0x193 io_uring/io_uring.c:1040 [] io_alloc_req_refill io_uring/io_uring.h:378 [inline] [] io_submit_sqes.cold+0x65/0x8a io_uring/io_uring.c:2384 [] __do_sys_io_uring_enter+0x76d/0x1490 io_uring/io_uring.c:3345 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810522d080 (size 96): comm "syz-executor.0", pid 5682, jiffies 4294944681 (age 14.960s) hex dump (first 32 bytes): 00 9f 50 13 81 88 ff ff 00 00 00 00 00 00 00 00 ..P............. 7b 20 00 c0 00 00 00 00 00 00 00 00 00 00 00 00 { .............. backtrace: [] kmalloc_trace+0x20/0x90 mm/slab_common.c:1062 [] kmalloc include/linux/slab.h:580 [inline] [] io_req_alloc_apoll io_uring/poll.c:650 [inline] [] io_arm_poll_handler+0x1fc/0x470 io_uring/poll.c:694 [] io_queue_async+0x8d/0x2e0 io_uring/io_uring.c:2006 [] io_queue_sqe io_uring/io_uring.c:2037 [inline] [] io_submit_sqe io_uring/io_uring.c:2286 [inline] [] io_submit_sqes+0x968/0xb70 io_uring/io_uring.c:2397 [] __do_sys_io_uring_enter+0x76d/0x1490 io_uring/io_uring.c:3345 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff888113564f00 (size 256): comm "syz-executor.0", pid 5682, jiffies 4294944681 (age 14.960s) hex dump (first 32 bytes): 00 9f 50 13 81 88 ff ff 00 00 00 00 00 00 00 00 ..P............. 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 .........@...... backtrace: [] __io_alloc_req_refill+0x55/0x193 io_uring/io_uring.c:1040 [] io_alloc_req_refill io_uring/io_uring.h:378 [inline] [] io_submit_sqes.cold+0x65/0x8a io_uring/io_uring.c:2384 [] __do_sys_io_uring_enter+0x76d/0x1490 io_uring/io_uring.c:3345 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810522dc00 (size 96): comm "syz-executor.0", pid 5682, jiffies 4294944681 (age 14.960s) hex dump (first 32 bytes): 00 9f 50 13 81 88 ff ff 00 00 00 00 00 00 00 00 ..P............. 7b 20 00 c0 00 00 00 00 00 00 00 00 00 00 00 00 { .............. backtrace: [] kmalloc_trace+0x20/0x90 mm/slab_common.c:1062 [] kmalloc include/linux/slab.h:580 [inline] [] io_req_alloc_apoll io_uring/poll.c:650 [inline] [] io_arm_poll_handler+0x1fc/0x470 io_uring/poll.c:694 [] io_queue_async+0x8d/0x2e0 io_uring/io_uring.c:2006 [] io_queue_sqe io_uring/io_uring.c:2037 [inline] [] io_submit_sqe io_uring/io_uring.c:2286 [inline] [] io_submit_sqes+0x968/0xb70 io_uring/io_uring.c:2397 [] __do_sys_io_uring_enter+0x76d/0x1490 io_uring/io_uring.c:3345 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff8881135a7600 (size 256): comm "syz-executor.0", pid 5682, jiffies 4294944681 (age 14.960s) hex dump (first 32 bytes): 00 9f 50 13 81 88 ff ff 00 00 00 00 00 00 00 00 ..P............. 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 .........@...... backtrace: [] __io_alloc_req_refill+0x55/0x193 io_uring/io_uring.c:1040 [] io_alloc_req_refill io_uring/io_uring.h:378 [inline] [] io_submit_sqes.cold+0x65/0x8a io_uring/io_uring.c:2384 [] __do_sys_io_uring_enter+0x76d/0x1490 io_uring/io_uring.c:3345 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff888109a6d900 (size 96): comm "syz-executor.0", pid 5682, jiffies 4294944681 (age 14.960s) hex dump (first 32 bytes): 00 9f 50 13 81 88 ff ff 00 00 00 00 00 00 00 00 ..P............. 7b 20 00 c0 00 00 00 00 00 00 00 00 00 00 00 00 { .............. backtrace: [] kmalloc_trace+0x20/0x90 mm/slab_common.c:1062 [] kmalloc include/linux/slab.h:580 [inline] [] io_req_alloc_apoll io_uring/poll.c:650 [inline] [] io_arm_poll_handler+0x1fc/0x470 io_uring/poll.c:694 [] io_queue_async+0x8d/0x2e0 io_uring/io_uring.c:2006 [] io_queue_sqe io_uring/io_uring.c:2037 [inline] [] io_submit_sqe io_uring/io_uring.c:2286 [inline] [] io_submit_sqes+0x968/0xb70 io_uring/io_uring.c:2397 [] __do_sys_io_uring_enter+0x76d/0x1490 io_uring/io_uring.c:3345 [] 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+0x63/0xcd Tested on: commit: a4b98579 Merge branch 'io_uring-6.2' into syztest git tree: git://git.kernel.dk/linux.git syztest console output: https://syzkaller.appspot.com/x/log.txt?x=1560579a480000 kernel config: https://syzkaller.appspot.com/x/.config?x=72a4287b7f412c8a dashboard link: https://syzkaller.appspot.com/bug?extid=6c95df01470a47fc3af4 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 Note: no patches were applied.