Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6664729rwl; Mon, 9 Jan 2023 11:15:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXtovRfYz7UVE7xKyKyy8d5M/hToexKUYwn7CkPSDXeUhzViTYoRjXLfo6wnPSsgryy9XMr5 X-Received: by 2002:a17:907:8e93:b0:7bf:3627:df32 with SMTP id tx19-20020a1709078e9300b007bf3627df32mr59675732ejc.75.1673291714248; Mon, 09 Jan 2023 11:15:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673291714; cv=none; d=google.com; s=arc-20160816; b=vt/UYINw2FQZWoQtbg+qJyRkw5ZGvX8uNpOVH/xQOrlZHdsEk1ZWn5fIuBwNjS3MB4 ITSm7+eY7fjXvlIzjHywMEkDb1j7hALtLEyboEYVmKT2X+HgZy72VM/URv89xiSDtjR9 dIfxNDKmEC/sDb7nhCx2hUHkpYubNamk6CjGMpE7xqrY8aLWTjcgXQCZVxqFp5oONeuy BLCGBYGaaCLJtRlplD+ec9X7IM5mUb8QQQ6tcDDf2G3ShWnWQHA59OB9OdMOPXCEpFWu uEEEsiwMGqImudQ8GSXHRtuNJ/0l9WgeIfuyG6lwEVJEHRxIrdkR3QEl7Zm39uAQxDYd hwtQ== 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:in-reply-to:date :mime-version; bh=qipXSH1J20AC+wKAB2KjTCOSuds0oDzQzeLap2sBh/o=; b=CU+2xbIEM3P709L23sYbS3qE5V/ub7Lu6oKg+7Be3tWt1OuWpEjXxMX6Cjk1Weqa8v tWrpFfALrQ2jBesx8rJxX6r2rpt4MT3igt/I2Xfbi6WfLdaNqPFowMcu9iOMVoSUJzuO nmuREVzQhScJnK9kUhy4xOvOxQ/SjtbRoTaZu9POQr/TtHw7H2D/Hi+5QVgCWwK7UpdT rswFkU+pnGsM/uEzTEuQaaeqJq+XFXcoeHsVxpq9BOsfaf0ZIPFV4qH/eYqkzMTdRCFj LTp38Vynvl2uYdgDxGYlDn1qOFNHxV/VsMKnK7etq7ngaCV55C4bEdH0BYWoVOVlw1JT Kyfg== 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 ww2-20020a170907084200b007c0db556798si9923049ejb.994.2023.01.09.11.15.01; Mon, 09 Jan 2023 11:15:14 -0800 (PST) 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 S234778AbjAITKa (ORCPT + 53 others); Mon, 9 Jan 2023 14:10:30 -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 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" X-Spam-Status: No, score=-1.6 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 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 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.