Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp441375pxa; Tue, 11 Aug 2020 06:58:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrvxOMVp7Ilz3RgwKKyDyMRfWLQqYXNJQ9ctCCP5jvP25EGIatHMJ87Fz7Ew0RNb7/m1TX X-Received: by 2002:a17:906:328d:: with SMTP id 13mr27224282ejw.71.1597154315946; Tue, 11 Aug 2020 06:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597154315; cv=none; d=google.com; s=arc-20160816; b=0lwWNTAR4Ff3VNt4Z6NDd1nJvUxIg4QrEUiC93qZE7JXccfFc9Ggr3kgs12CWV3M6m kJ1f9KKDxDpDnOGyMs3sOyE8snw/G3Jk80sBo/zUAkKJ2O0Bu9RJCejtKKNp6SwX0isW Nl0AAnd/vwKoS7TwpHnd2wZrgv1zEZ7rqEa49yPbwwb3l8QPKX7zDC6hq7J7nYwHmmGc bUu2p0BOnnybCeQDng50WTWuE4psyhUM1ZHar34xfNa7swuJn362RDxjmPWHae68b68o mYFpt0eflYX8t29HdpHrETEvh8Niy0bKkuXm3R4hdXUWdVpFAX4jH4iQ74EFWl9Ycv1e 4MWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=+cHgg9a8eJJddqLe/oCJVSWP9J8KQvuNJEZvME5xXmA=; b=Eji8FKeJZ8iK62ahOXpULQAaiJMPISQlkCnrLN50gkFg6gCW4iy3VT/ZMdDWaxtBN2 oQTeOdf9uvpJX3IOKrAd5j1c8207M272ptI/H55K2U02fJNQ8OZoX346dvmBFQVO2X0L tMsfbdIrk6xgFUjRe7qu+sqgLIWtd5CzEqQHsDPSF7181XsX5vAm6nQP3YPqFE2NAHMv B4flzhUW1sNg6q/PrYnjCV9fnzbR3BUli1RzJwwI33mV/aGNUdlSGKiWjlY2r7L1pIP1 TN2PHpLk08lo7okfd8esQkCAyYOlSGKPjypM3l+8WbQB8jZWm7CP6wln2J4cVmwjyfVz zDcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si13795087eda.592.2020.08.11.06.58.12; Tue, 11 Aug 2020 06:58:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728516AbgHKN5T (ORCPT + 99 others); Tue, 11 Aug 2020 09:57:19 -0400 Received: from mail-io1-f70.google.com ([209.85.166.70]:39184 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728532AbgHKN5S (ORCPT ); Tue, 11 Aug 2020 09:57:18 -0400 Received: by mail-io1-f70.google.com with SMTP id v10so9744855iot.6 for ; Tue, 11 Aug 2020 06:57:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=+cHgg9a8eJJddqLe/oCJVSWP9J8KQvuNJEZvME5xXmA=; b=kigu+aDpH7starEUmmirwWJRjnvPYhS8coKBlXM57vPajll9rZsg+eXVayZ49pRo0q ePIgY7r+He28OIIfAWqtEkvGaFKYG7Tnc2gc7mKOBdHDY5whbAduTkB95tqw9N9gJBE5 ln/MaBVTt2fVAaqtOc5L9xIvHYBeEIayh2TT19DOXc+Lz+VJj/VLobk73/noyFleQDy6 xQ1jmUc0xSKNXPMk6tl7/Dhl/FZOzru7Uutf3dtxrWJcoXRCsQYT0DvDXSbR9uKxqkQW dcKw9PFI6HDR00zY7m7dW5+HpmOu/pH3xwmg3rEJnk+0KhfwVchmzQrppErQX/LVsFp5 eUlQ== X-Gm-Message-State: AOAM531lPMIblSPW8nY2uBSYs899gElIMxhQ7a9N9ZvLqO18G6VMrhUF k4tZXztx5IB5zsUrTK74/hySV5LeDEuyzO+ofhV7dN3NrEAA MIME-Version: 1.0 X-Received: by 2002:a02:9307:: with SMTP id d7mr17785704jah.71.1597154237154; Tue, 11 Aug 2020 06:57:17 -0700 (PDT) Date: Tue, 11 Aug 2020 06:57:17 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000f50fb505ac9a72c9@google.com> Subject: memory leak in io_submit_sqes From: syzbot To: axboe@kernel.dk, io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: d6efb3ac Merge tag 'tty-5.9-rc1' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13cb0762900000 kernel config: https://syzkaller.appspot.com/x/.config?x=42163327839348a9 dashboard link: https://syzkaller.appspot.com/bug?extid=a730016dc0bdce4f6ff5 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16e877dc900000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1608291a900000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+a730016dc0bdce4f6ff5@syzkaller.appspotmail.com executing program executing program executing program executing program executing program BUG: memory leak unreferenced object 0xffff888124949100 (size 256): comm "syz-executor808", pid 6480, jiffies 4294949911 (age 33.960s) hex dump (first 32 bytes): 00 78 74 2a 81 88 ff ff 00 00 00 00 00 00 00 00 .xt*............ 90 b0 51 81 ff ff ff ff 00 00 00 00 00 00 00 00 ..Q............. backtrace: [<0000000084e46f34>] io_alloc_req fs/io_uring.c:1503 [inline] [<0000000084e46f34>] io_submit_sqes+0x5dc/0xc00 fs/io_uring.c:6306 [<000000006d4e19eb>] __do_sys_io_uring_enter+0x582/0x830 fs/io_uring.c:8036 [<00000000a4116b07>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 [<0000000067b2aefc>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 BUG: memory leak unreferenced object 0xffff88811751d200 (size 96): comm "syz-executor808", pid 6480, jiffies 4294949911 (age 33.960s) hex dump (first 32 bytes): 00 78 74 2a 81 88 ff ff 00 00 00 00 00 00 00 00 .xt*............ 0e 01 00 00 00 00 75 22 00 00 00 00 00 0f 1f 04 ......u"........ backtrace: [<00000000073ea2ba>] kmalloc include/linux/slab.h:555 [inline] [<00000000073ea2ba>] io_arm_poll_handler fs/io_uring.c:4773 [inline] [<00000000073ea2ba>] __io_queue_sqe+0x445/0x6b0 fs/io_uring.c:5988 [<000000001551bde0>] io_queue_sqe+0x309/0x550 fs/io_uring.c:6060 [<000000002dfb908f>] io_submit_sqe fs/io_uring.c:6130 [inline] [<000000002dfb908f>] io_submit_sqes+0x8b8/0xc00 fs/io_uring.c:6327 [<000000006d4e19eb>] __do_sys_io_uring_enter+0x582/0x830 fs/io_uring.c:8036 [<00000000a4116b07>] do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 [<0000000067b2aefc>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 --- 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