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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55834C4708E for ; Thu, 5 Jan 2023 20:50:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MewSV199OXpBTX9h4TTnwLyacZATKYO5CAkDWZavV6U=; b=Q1ZurbPDzaMkAO 842BIzUJt10+YRi7dPOjMVJgHsyl1qzFGvN8PZXgCFb7zNtuKltmuTqFnkfpPhpUmwTL5xbh7cinT Jq5RZmrP5Eoa6/gM4Hsd5Fwl9gePo+KcCQr+gHFaML8Bof/I2qPu7y6bP0aacxRaxKYEIYK3WHpDP XKXNVqpSa3cEBh0kK5yYA1NsGRHyQEgvvftMStxylEAZaTlVnaGMOTNT165Wub5wIE5/YP55UQgwm BKOUJa/L3HgTo5K5tpBCNWq4iFfcB6KpiS/RaDi1SW5ByAACYL83G6xY7vY5+ZjPTRvXCO+OH6zWu bV8e7w/UH9fkRTZciKrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDXAs-00EktU-BM; Thu, 05 Jan 2023 20:49:19 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDUbA-00DJTM-S2 for linux-arm-kernel@lists.infradead.org; Thu, 05 Jan 2023 18:04:22 +0000 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 dfw.source.kernel.org (Postfix) with ESMTPS id 5AEEE61BED; Thu, 5 Jan 2023 18:04:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32B9AC433F1; Thu, 5 Jan 2023 18:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672941855; bh=RL6oAOiPenaDDp6rZZtH4O8n8lQHc98WXu6NZJShQ5c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PIobjOQRMSDmnwjpOtTQx0KpGaJYIyC4RJlf2IGy6NEmxITQz5Po+kd1KaRugQV86 3ZMKUvU0Z3EKbII25SNRXRA5oMR3nXk1QME/8pioonHsMYhBdKxOILYvFob3QMMh8i tz/7UPPlC3Ht5PFastTNJQP/eBz72zbxLGkmaPwKoWt3jIJANVEvvFkTnvb1eDuQnf XTf0+tX4yMPRl1bOR5/jSUFQuvvTSG7dOl6t1ZqzZVEB/3LN4B7LhbA0NW3Bij/ZWA QBpSKH2HMSkvjFYH/Xz35FxkrhMX16krtyJvly1GXCb0UwF9Chq7BL2bQDSMsxxzIj fvdZ7/KfO3sgQ== From: Will Deacon To: Liu Shixin , Rafael Aquini , Catalin Marinas , Denys Vlasenko , Kefeng Wang , Anshuman Khandual , Pasha Tatashin , David Hildenbrand Cc: kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3] arm64/mm: fix incorrect file_map_count for invalid pmd Date: Thu, 5 Jan 2023 18:03:59 +0000 Message-Id: <167293109023.1463092.17340880121149597305.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221121073608.4183459-1-liushixin2@huawei.com> References: <20221121073608.4183459-1-liushixin2@huawei.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230105_100417_009828_CD454165 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 21 Nov 2022 15:36:08 +0800, Liu Shixin wrote: > The page table check trigger BUG_ON() unexpectedly when split hugepage: > > ------------[ cut here ]------------ > kernel BUG at mm/page_table_check.c:119! > Internal error: Oops - BUG: 00000000f2000800 [#1] SMP > Dumping ftrace buffer: > (ftrace buffer empty) > Modules linked in: > CPU: 7 PID: 210 Comm: transhuge-stres Not tainted 6.1.0-rc3+ #748 > Hardware name: linux,dummy-virt (DT) > pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) > pc : page_table_check_set.isra.0+0x398/0x468 > lr : page_table_check_set.isra.0+0x1c0/0x468 > [...] > Call trace: > page_table_check_set.isra.0+0x398/0x468 > __page_table_check_pte_set+0x160/0x1c0 > __split_huge_pmd_locked+0x900/0x1648 > __split_huge_pmd+0x28c/0x3b8 > unmap_page_range+0x428/0x858 > unmap_single_vma+0xf4/0x1c8 > zap_page_range+0x2b0/0x410 > madvise_vma_behavior+0xc44/0xe78 > do_madvise+0x280/0x698 > __arm64_sys_madvise+0x90/0xe8 > invoke_syscall.constprop.0+0xdc/0x1d8 > do_el0_svc+0xf4/0x3f8 > el0_svc+0x58/0x120 > el0t_64_sync_handler+0xb8/0xc0 > el0t_64_sync+0x19c/0x1a0 > [...] > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64/mm: fix incorrect file_map_count for invalid pmd https://git.kernel.org/arm64/c/74c2f8105451 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel