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 5BD11C54EBD for ; Mon, 9 Jan 2023 19:10:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231782AbjAITK3 (ORCPT ); Mon, 9 Jan 2023 14:10:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235434AbjAITKT (ORCPT ); Mon, 9 Jan 2023 14:10:19 -0500 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DC1C4EC94 for ; Mon, 9 Jan 2023 11:10:18 -0800 (PST) Received: by mail-il1-f200.google.com with SMTP id n15-20020a056e021baf00b0030387c2e1d3so6719127ili.5 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=0qssMuRT2zAZ3lWbFBKhSoFoSS7wzRIL8jow7t0HgOOujeXNFMxD51dNFBoj4XxJlO kB86OBvDRMRxikkbM3RQaAGorF3PyGOesKb4lmFRRdGZdSZHBGc7FUY/UR346H6TVQ7r 5QRMU4UxQ7QUOE3vOLu614uLG5+02uMF98w6KlDUJZkZj5NzFwXAYv5Xr6ceCz64NazG vIgdR9NpZ4u/VuXXFZo/E8gsgZnO4WoY9nmdY1X+/DYLZ/1z+W4PqdyZ+U6uZ1OAhq2r AKQMuahfcset4gnbbq/iRJC1/gdpBR55dRJsxVEw7v0fAxtvpatdKyxtHRiVaQEg+sCv gyRA== X-Gm-Message-State: AFqh2kquMfJ58ui4F9F52EQwbzdgburFcH+1qRjuqTIkIJRccfHVzBrj Dh4wW5duyN/oHuChev9Glz6nKcsZCgg/VH+Tacgjkocfs1Sj 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: io-uring@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.