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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40F89C433EF for ; Sun, 29 May 2022 23:39:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B9F748D0002; Sun, 29 May 2022 19:39:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B4A648D0001; Sun, 29 May 2022 19:39:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A0F078D0002; Sun, 29 May 2022 19:39:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 930858D0001 for ; Sun, 29 May 2022 19:39:39 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6CEF734CF5 for ; Sun, 29 May 2022 23:39:39 +0000 (UTC) X-FDA: 79520400078.11.5F6EB7A Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf10.hostedemail.com (Postfix) with ESMTP id 80F9EC0046 for ; Sun, 29 May 2022 23:38:57 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6F3ADB80B32; Sun, 29 May 2022 23:39:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DED80C385A9; Sun, 29 May 2022 23:39:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1653867576; bh=ChvZGRzjNy/5pL6NQ06zFXWcMzXaPCwBkFBGIC5cEUQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nsLKOymprVfyiTw1eOGvvp0D7F+6ZaNwm1BQmiST2OzDxwDiJmi/Ikh4pebsQ8srw 1U0qVTOVVSkjOBMwA5+b3N4dWtKZCulaNb5CfQoRLdSRpDlHtOSSctpsGj3bM7MvIV gxeNVRxsRKJ+SNbqF6152VekWME5SnzFH3551oN0= Date: Sun, 29 May 2022 16:39:35 -0700 From: Andrew Morton To: syzbot Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, Matthew Wilcox Subject: Re: [syzbot] memory leak in xas_nomem Message-Id: <20220529163935.5118b4f91e2c5c3378ab326f@linux-foundation.org> In-Reply-To: <00000000000036af2005e009e7e6@google.com> References: <00000000000036af2005e009e7e6@google.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Stat-Signature: wfrfbumy81mf1hqkgdiu3qzro7qfkhx6 Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=nsLKOymp; dmarc=none; spf=pass (imf10.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspam-User: X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 80F9EC0046 X-HE-Tag: 1653867537-538583 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, 27 May 2022 20:20:21 -0700 syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 1e57930e9f40 Merge tag 'rcu.2022.05.19a' of git://git.kern.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17afc423f00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=5757003cb23a31a7 > dashboard link: https://syzkaller.appspot.com/bug?extid=9e27a75a8c24f3fe75c1 > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16bc056ef00000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=116b7d9df00000 > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+9e27a75a8c24f3fe75c1@syzkaller.appspotmail.com > > BUG: memory leak (hopefully cc's willy) > unreferenced object 0xffff88810cb35d80 (size 576): > comm "syz-executor883", pid 3623, jiffies 4294954631 (age 23.510s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 18 48 36 04 81 88 ff ff 98 5d b3 0c 81 88 ff ff .H6......]...... > backtrace: > [] xas_nomem lib/xarray.c:307 [inline] > [] xas_nomem+0x4a/0xd0 lib/xarray.c:299 > [] split_huge_page_to_list+0x26d0/0x29f0 mm/huge_memory.c:2626 > [] split_huge_page include/linux/huge_mm.h:191 [inline] > [] truncate_inode_partial_folio+0x3e4/0x5f0 mm/truncate.c:243 > [] shmem_undo_range+0x3d0/0xbe0 mm/shmem.c:966 > [] shmem_truncate_range mm/shmem.c:1044 [inline] > [] shmem_fallocate+0x1e1/0x910 mm/shmem.c:2671 > [] vfs_fallocate+0x31c/0x670 fs/open.c:308 > [] madvise_remove mm/madvise.c:965 [inline] > [] madvise_vma_behavior+0x7d3/0x1000 mm/madvise.c:989 > [] madvise_walk_vmas+0x11c/0x1d0 mm/madvise.c:1221 > [] do_madvise mm/madvise.c:1399 [inline] > [] do_madvise+0x23b/0x320 mm/madvise.c:1357 > [] __do_sys_madvise mm/madvise.c:1412 [inline] > [] __se_sys_madvise mm/madvise.c:1410 [inline] > [] __x64_sys_madvise+0x2a/0x30 mm/madvise.c:1410 > [] 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+0x44/0xae > > BUG: memory leak > unreferenced object 0xffff88810cb39d80 (size 576): > comm "syz-executor883", pid 3622, jiffies 4294954659 (age 23.230s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 98 f8 cd 0d 81 88 ff ff 98 9d b3 0c 81 88 ff ff ................ > backtrace: > [] xas_nomem lib/xarray.c:307 [inline] > [] xas_nomem+0x4a/0xd0 lib/xarray.c:299 > [] split_huge_page_to_list+0x26d0/0x29f0 mm/huge_memory.c:2626 > [] split_huge_page include/linux/huge_mm.h:191 [inline] > [] truncate_inode_partial_folio+0x3e4/0x5f0 mm/truncate.c:243 > [] shmem_undo_range+0x3d0/0xbe0 mm/shmem.c:966 > [] shmem_truncate_range mm/shmem.c:1044 [inline] > [] shmem_fallocate+0x1e1/0x910 mm/shmem.c:2671 > [] vfs_fallocate+0x31c/0x670 fs/open.c:308 > [] madvise_remove mm/madvise.c:965 [inline] > [] madvise_vma_behavior+0x7d3/0x1000 mm/madvise.c:989 > [] madvise_walk_vmas+0x11c/0x1d0 mm/madvise.c:1221 > [] do_madvise mm/madvise.c:1399 [inline] > [] do_madvise+0x23b/0x320 mm/madvise.c:1357 > [] __do_sys_madvise mm/madvise.c:1412 [inline] > [] __se_sys_madvise mm/madvise.c:1410 [inline] > [] __x64_sys_madvise+0x2a/0x30 mm/madvise.c:1410 > [] 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+0x44/0xae > > BUG: memory leak > unreferenced object 0xffff88810cb35d80 (size 576): > comm "syz-executor883", pid 3623, jiffies 4294954631 (age 29.410s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 18 48 36 04 81 88 ff ff 98 5d b3 0c 81 88 ff ff .H6......]...... > backtrace: > [] xas_nomem lib/xarray.c:307 [inline] > [] xas_nomem+0x4a/0xd0 lib/xarray.c:299 > [] split_huge_page_to_list+0x26d0/0x29f0 mm/huge_memory.c:2626 > [] split_huge_page include/linux/huge_mm.h:191 [inline] > [] truncate_inode_partial_folio+0x3e4/0x5f0 mm/truncate.c:243 > [] shmem_undo_range+0x3d0/0xbe0 mm/shmem.c:966 > [] shmem_truncate_range mm/shmem.c:1044 [inline] > [] shmem_fallocate+0x1e1/0x910 mm/shmem.c:2671 > [] vfs_fallocate+0x31c/0x670 fs/open.c:308 > [] madvise_remove mm/madvise.c:965 [inline] > [] madvise_vma_behavior+0x7d3/0x1000 mm/madvise.c:989 > [] madvise_walk_vmas+0x11c/0x1d0 mm/madvise.c:1221 > [] do_madvise mm/madvise.c:1399 [inline] > [] do_madvise+0x23b/0x320 mm/madvise.c:1357 > [] __do_sys_madvise mm/madvise.c:1412 [inline] > [] __se_sys_madvise mm/madvise.c:1410 [inline] > [] __x64_sys_madvise+0x2a/0x30 mm/madvise.c:1410 > [] 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+0x44/0xae > > BUG: memory leak > unreferenced object 0xffff88810cb39d80 (size 576): > comm "syz-executor883", pid 3622, jiffies 4294954659 (age 29.130s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 98 f8 cd 0d 81 88 ff ff 98 9d b3 0c 81 88 ff ff ................ > backtrace: > [] xas_nomem lib/xarray.c:307 [inline] > [] xas_nomem+0x4a/0xd0 lib/xarray.c:299 > [] split_huge_page_to_list+0x26d0/0x29f0 mm/huge_memory.c:2626 > [] split_huge_page include/linux/huge_mm.h:191 [inline] > [] truncate_inode_partial_folio+0x3e4/0x5f0 mm/truncate.c:243 > [] shmem_undo_range+0x3d0/0xbe0 mm/shmem.c:966 > [] shmem_truncate_range mm/shmem.c:1044 [inline] > [] shmem_fallocate+0x1e1/0x910 mm/shmem.c:2671 > [] vfs_fallocate+0x31c/0x670 fs/open.c:308 > [] madvise_remove mm/madvise.c:965 [inline] > [] madvise_vma_behavior+0x7d3/0x1000 mm/madvise.c:989 > [] madvise_walk_vmas+0x11c/0x1d0 mm/madvise.c:1221 > [] do_madvise mm/madvise.c:1399 [inline] > [] do_madvise+0x23b/0x320 mm/madvise.c:1357 > [] __do_sys_madvise mm/madvise.c:1412 [inline] > [] __se_sys_madvise mm/madvise.c:1410 [inline] > [] __x64_sys_madvise+0x2a/0x30 mm/madvise.c:1410 > [] 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+0x44/0xae > > BUG: memory leak > unreferenced object 0xffff88810cb35d80 (size 576): > comm "syz-executor883", pid 3623, jiffies 4294954631 (age 29.450s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 18 48 36 04 81 88 ff ff 98 5d b3 0c 81 88 ff ff .H6......]...... > backtrace: > [] xas_nomem lib/xarray.c:307 [inline] > [] xas_nomem+0x4a/0xd0 lib/xarray.c:299 > [] split_huge_page_to_list+0x26d0/0x29f0 mm/huge_memory.c:2626 > [] split_huge_page include/linux/huge_mm.h:191 [inline] > [] truncate_inode_partial_folio+0x3e4/0x5f0 mm/truncate.c:243 > [] shmem_undo_range+0x3d0/0xbe0 mm/shmem.c:966 > [] shmem_truncate_range mm/shmem.c:1044 [inline] > [] shmem_fallocate+0x1e1/0x910 mm/shmem.c:2671 > [] vfs_fallocate+0x31c/0x670 fs/open.c:308 > [] madvise_remove mm/madvise.c:965 [inline] > [] madvise_vma_behavior+0x7d3/0x1000 mm/madvise.c:989 > [] madvise_walk_vmas+0x11c/0x1d0 mm/madvise.c:1221 > [] do_madvise mm/madvise.c:1399 [inline] > [] do_madvise+0x23b/0x320 mm/madvise.c:1357 > [] __do_sys_madvise mm/madvise.c:1412 [inline] > [] __se_sys_madvise mm/madvise.c:1410 [inline] > [] __x64_sys_madvise+0x2a/0x30 mm/madvise.c:1410 > [] 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+0x44/0xae > > BUG: memory leak > unreferenced object 0xffff88810cb39d80 (size 576): > comm "syz-executor883", pid 3622, jiffies 4294954659 (age 29.170s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 98 f8 cd 0d 81 88 ff ff 98 9d b3 0c 81 88 ff ff ................ > backtrace: > [] xas_nomem lib/xarray.c:307 [inline] > [] xas_nomem+0x4a/0xd0 lib/xarray.c:299 > [] split_huge_page_to_list+0x26d0/0x29f0 mm/huge_memory.c:2626 > [] split_huge_page include/linux/huge_mm.h:191 [inline] > [] truncate_inode_partial_folio+0x3e4/0x5f0 mm/truncate.c:243 > [] shmem_undo_range+0x3d0/0xbe0 mm/shmem.c:966 > [] shmem_truncate_range mm/shmem.c:1044 [inline] > [] shmem_fallocate+0x1e1/0x910 mm/shmem.c:2671 > [] vfs_fallocate+0x31c/0x670 fs/open.c:308 > [] madvise_remove mm/madvise.c:965 [inline] > [] madvise_vma_behavior+0x7d3/0x1000 mm/madvise.c:989 > [] madvise_walk_vmas+0x11c/0x1d0 mm/madvise.c:1221 > [] do_madvise mm/madvise.c:1399 [inline] > [] do_madvise+0x23b/0x320 mm/madvise.c:1357 > [] __do_sys_madvise mm/madvise.c:1412 [inline] > [] __se_sys_madvise mm/madvise.c:1410 [inline] > [] __x64_sys_madvise+0x2a/0x30 mm/madvise.c:1410 > [] 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+0x44/0xae > > BUG: memory leak > unreferenced object 0xffff88810cb35d80 (size 576): > comm "syz-executor883", pid 3623, jiffies 4294954631 (age 29.490s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 18 48 36 04 81 88 ff ff 98 5d b3 0c 81 88 ff ff .H6......]...... > backtrace: > [] xas_nomem lib/xarray.c:307 [inline] > [] xas_nomem+0x4a/0xd0 lib/xarray.c:299 > [] split_huge_page_to_list+0x26d0/0x29f0 mm/huge_memory.c:2626 > [] split_huge_page include/linux/huge_mm.h:191 [inline] > [] truncate_inode_partial_folio+0x3e4/0x5f0 mm/truncate.c:243 > [] shmem_undo_range+0x3d0/0xbe0 mm/shmem.c:966 > [] shmem_truncate_range mm/shmem.c:1044 [inline] > [] shmem_fallocate+0x1e1/0x910 mm/shmem.c:2671 > [] vfs_fallocate+0x31c/0x670 fs/open.c:308 > [] madvise_remove mm/madvise.c:965 [inline] > [] madvise_vma_behavior+0x7d3/0x1000 mm/madvise.c:989 > [] madvise_walk_vmas+0x11c/0x1d0 mm/madvise.c:1221 > [] do_madvise mm/madvise.c:1399 [inline] > [] do_madvise+0x23b/0x320 mm/madvise.c:1357 > [] __do_sys_madvise mm/madvise.c:1412 [inline] > [] __se_sys_madvise mm/madvise.c:1410 [inline] > [] __x64_sys_madvise+0x2a/0x30 mm/madvise.c:1410 > [] 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+0x44/0xae > > BUG: memory leak > unreferenced object 0xffff88810cb39d80 (size 576): > comm "syz-executor883", pid 3622, jiffies 4294954659 (age 29.210s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 98 f8 cd 0d 81 88 ff ff 98 9d b3 0c 81 88 ff ff ................ > backtrace: > [] xas_nomem lib/xarray.c:307 [inline] > [] xas_nomem+0x4a/0xd0 lib/xarray.c:299 > [] split_huge_page_to_list+0x26d0/0x29f0 mm/huge_memory.c:2626 > [] split_huge_page include/linux/huge_mm.h:191 [inline] > [] truncate_inode_partial_folio+0x3e4/0x5f0 mm/truncate.c:243 > [] shmem_undo_range+0x3d0/0xbe0 mm/shmem.c:966 > [] shmem_truncate_range mm/shmem.c:1044 [inline] > [] shmem_fallocate+0x1e1/0x910 mm/shmem.c:2671 > [] vfs_fallocate+0x31c/0x670 fs/open.c:308 > [] madvise_remove mm/madvise.c:965 [inline] > [] madvise_vma_behavior+0x7d3/0x1000 mm/madvise.c:989 > [] madvise_walk_vmas+0x11c/0x1d0 mm/madvise.c:1221 > [] do_madvise mm/madvise.c:1399 [inline] > [] do_madvise+0x23b/0x320 mm/madvise.c:1357 > [] __do_sys_madvise mm/madvise.c:1412 [inline] > [] __se_sys_madvise mm/madvise.c:1410 [inline] > [] __x64_sys_madvise+0x2a/0x30 mm/madvise.c:1410 > [] 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+0x44/0xae > > executing program > executing program > executing program > executing program > > > --- > 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