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 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 B7E4CC433B4 for ; Fri, 30 Apr 2021 06:55:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8633D61423 for ; Fri, 30 Apr 2021 06:55:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbhD3G4L (ORCPT ); Fri, 30 Apr 2021 02:56:11 -0400 Received: from mail-io1-f72.google.com ([209.85.166.72]:34682 "EHLO mail-io1-f72.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbhD3G4J (ORCPT ); Fri, 30 Apr 2021 02:56:09 -0400 Received: by mail-io1-f72.google.com with SMTP id v25-20020a0566020159b02904017f565b33so13986977iot.1 for ; Thu, 29 Apr 2021 23:55:21 -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=EHef1FvwWSkR56z6QkPtMzzrDYUPUDgt3XTVoI0D6gU=; b=Fa1Gv8uV7aV78bYXGKAgHuoBzFmh1KB+ne3Aowjm6jJifTMK0AJnGUVdhnIOZ+wnRc 4Kjxh2tFCoR67u2WAZgvM01VywgWcOiTiRepsI94G5E1w51bCcuEswsJ4bvfRJNjHTfy MJuUHO4W1HALUKXf/pyjNUQDyM5tb7r7LVRW/h8fqJ0OnTz6OyWeFURzk4yjIM5s8gSX jMiaOvpQ/nTyTvfs72aRNbRIx7PTaXjKeCR1boQcK/CW4PZ4o11fkBurJ9RMrGyWFFGB ck4fa94jiQYXT90MShwGD9lL+NBbWC/nf6ahNn12PZpPxlDnxfsnaRj9VWWlw+Ldxize 9HWg== X-Gm-Message-State: AOAM530SKhm4GmW/mJDBxoQO6MbUGeCpJV7y+ADDGEvxSdLeXpKsz51U HTlPuLTPUW0d7d8S2aa4tSstaVbP6E12ORulwnOZ+Fa+WUQT X-Google-Smtp-Source: ABdhPJxwzKEFtm8/qzASZm5JdkNfg5YuL9nzG4q+9DqNLWDpKwpNdA/pPjhfHa+Z+SAEbXeaa2fZFox7+GUaZwWSvsy5z0tknvTd MIME-Version: 1.0 X-Received: by 2002:a05:6e02:13ca:: with SMTP id v10mr2756708ilj.191.1619765721663; Thu, 29 Apr 2021 23:55:21 -0700 (PDT) Date: Thu, 29 Apr 2021 23:55:21 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000758d3005c12b18d2@google.com> Subject: [syzbot] memory leak in io_sqe_buffers_register 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 found the following issue on: HEAD commit: d2b6f8a1 Merge tag 'xfs-5.13-merge-3' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=173639a3d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=337dc545ba10a406 dashboard link: https://syzkaller.appspot.com/bug?extid=0f32d05d8b6cd8d7ea3e syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14df6ba3d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12815385d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+0f32d05d8b6cd8d7ea3e@syzkaller.appspotmail.com Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.62' (ECDSA) to the list of known hosts. executing program executing program executing program BUG: memory leak unreferenced object 0xffff8881123bf0a0 (size 32): comm "syz-executor557", pid 8384, jiffies 4294946143 (age 12.360s) hex dump (first 32 bytes): 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 00 00 00 00 00 ................ backtrace: [] kmalloc_node include/linux/slab.h:579 [inline] [] kvmalloc_node+0x61/0xf0 mm/util.c:587 [] kvmalloc include/linux/mm.h:795 [inline] [] kvmalloc_array include/linux/mm.h:813 [inline] [] kvcalloc include/linux/mm.h:818 [inline] [] io_rsrc_data_alloc+0x4f/0xc0 fs/io_uring.c:7164 [] io_sqe_buffers_register+0x98/0x3d0 fs/io_uring.c:8383 [] __io_uring_register+0xf67/0x18c0 fs/io_uring.c:9986 [] __do_sys_io_uring_register fs/io_uring.c:10091 [inline] [] __se_sys_io_uring_register fs/io_uring.c:10071 [inline] [] __x64_sys_io_uring_register+0x112/0x230 fs/io_uring.c:10071 [] do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 [] entry_SYSCALL_64_after_hwframe+0x44/0xae --- 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