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=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 83C48C433E7 for ; Fri, 16 Oct 2020 02:13:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1700D2073A for ; Fri, 16 Oct 2020 02:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602814391; bh=xS40bmmmKjTqUYiCBPNo2sLZNK3mKrdNPBNlZWchaGk=; h=Date:From:To:Subject:In-Reply-To:Reply-To:List-ID:From; b=f1GOIMci2BVtH6kvLob0M02l/dCnpxKcy17ekbi+ufAkJ0Ts3oKoBRP/2V8SZm3kW 57WPv6L3sEHzDoqlDEbwYwbrIPqEgyFk6/bLFjoI+Qf22/LzYT3hIFv01cdrHs9nvh +iwLAKKcOdoY+23/L1IwDBchLulDOIsxwmCWHSR4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404095AbgJPCNK (ORCPT ); Thu, 15 Oct 2020 22:13:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:48250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404094AbgJPCNK (ORCPT ); Thu, 15 Oct 2020 22:13:10 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 55898206ED; Fri, 16 Oct 2020 02:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602814389; bh=xS40bmmmKjTqUYiCBPNo2sLZNK3mKrdNPBNlZWchaGk=; h=Date:From:To:Subject:In-Reply-To:From; b=cY4yIvudmVl1kp2Ip5siRxlH/ET1gkEFpaoxbW8OZtnpaXQm+/w1rv6JcmoD6poMm Omt9nIa2IdsrkNHjVwt0xZbpkAfqOwufleiH7ZquultLE3RP/R6bHn/H+5eX3BQepv KI5S6QZ/nqtiyZmKbV2TS+ElrK3j5/XVfgj8bVQY= Date: Thu, 15 Oct 2020 19:13:08 -0700 From: Andrew Morton To: aneesh.kumar@linux.ibm.com, aou@eecs.berkeley.edu, linux@roeck-us.net, mm-commits@vger.kernel.org, natechancellor@gmail.com, palmer@dabbelt.com, paul.walmsley@sifive.com Subject: [folded-merged] mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test-fix.patch removed from -mm tree Message-ID: <20201016021308.ejN64BoO9%akpm@linux-foundation.org> In-Reply-To: <20201010231559.e148a66f744d0b4870301450@linux-foundation.org> User-Agent: s-nail v14.8.16 Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: mm/debug_vm_pgtable: avoid kernel crash with riscv has been removed from the -mm tree. Its filename was mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test-fix.patch This patch was dropped because it was folded into mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test.patch ------------------------------------------------------ From: "Aneesh Kumar K.V" Subject: mm/debug_vm_pgtable: avoid kernel crash with riscv It was observed that the usage of RANDOM_ORVALUE with a valid pte cause kernel crash on riscv. Comment out the usage of random value on riscv Link: https://lkml.kernel.org/r/20201015033206.140550-1-aneesh.kumar@linux.ibm.com Signed-off-by: Aneesh Kumar K.V Reported-by: Nathan Chancellor Reported-by: Guenter Roeck Cc: Paul Walmsley Cc: Albert Ou Cc: Palmer Dabbelt Signed-off-by: Andrew Morton --- mm/debug_vm_pgtable.c | 2 ++ 1 file changed, 2 insertions(+) --- a/mm/debug_vm_pgtable.c~mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test-fix +++ a/mm/debug_vm_pgtable.c @@ -548,7 +548,9 @@ static void __init pte_clear_tests(struc pte_t pte = pfn_pte(pfn, prot); pr_debug("Validating PTE clear\n"); +#ifndef CONFIG_RISCV pte = __pte(pte_val(pte) | RANDOM_ORVALUE); +#endif set_pte_at(mm, vaddr, ptep, pte); barrier(); pte_clear(mm, vaddr, ptep); _ Patches currently in -mm which might be from aneesh.kumar@linux.ibm.com are powerpc-mm-add-debug_vm-warn-for-pmd_clear.patch powerpc-mm-move-setting-pte-specific-flags-to-pfn_pte.patch mm-debug_vm_pgtable-ppc64-avoid-setting-top-bits-in-radom-value.patch mm-debug_vm_pgtables-hugevmap-use-the-arch-helper-to-identify-huge-vmap-support.patch mm-debug_vm_pgtable-savedwrite-enable-savedwrite-test-with-config_numa_balancing.patch mm-debug_vm_pgtable-thp-mark-the-pte-entry-huge-before-using-set_pmd-pud_at.patch mm-debug_vm_pgtable-set_pte-pmd-pud-dont-use-set__at-to-update-an-existing-pte-entry.patch mm-debug_vm_pgtable-locks-move-non-page-table-modifying-test-together.patch mm-debug_vm_pgtable-locks-take-correct-page-table-lock.patch mm-debug_vm_pgtable-thp-use-page-table-depost-withdraw-with-thp.patch mm-debug_vm_pgtable-pmd_clear-dont-use-pmd-pud_clear-on-pte-entries.patch mm-debug_vm_pgtable-hugetlb-disable-hugetlb-test-on-ppc64.patch mm-debug_vm_pgtable-avoid-none-pte-in-pte_clear_test.patch mm-debug_vm_pgtable-avoid-doing-memory-allocation-with-pgtable_t-mapped.patch