Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp766440lqt; Fri, 19 Apr 2024 09:44:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhx8mspltFIvGjKlmSO2TwVD5/HW7bd/xZdtXb9/JZMb2VZIfciKkbx9Ut9e804StB2SXaRwrPRd/b1/SOgIQ/TGq0EeHHBRhmObPjjg== X-Google-Smtp-Source: AGHT+IHNUTegz7J4flfilLvTtSkUc7dz8/JetzVzqrniBO++stoTS16i3UZ6HpT8iyMz9VR1A0xa X-Received: by 2002:ad4:4e06:0:b0:6a0:53b7:c16c with SMTP id dl6-20020ad44e06000000b006a053b7c16cmr2598647qvb.26.1713545064455; Fri, 19 Apr 2024 09:44:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713545064; cv=pass; d=google.com; s=arc-20160816; b=nRRQtQAA2EoL4EmrR5iA1PAdLo6EeoMAhT/Xyd9C5jZbz3t6/K/XSnQGjvxdlhI6pT ZHL5vmCQZxCCc+Ve/jXigOtFzsEiBEwSSLcCiOjt24spzhL3pZ4391Ceck71eUuxp7Gb TCRRaNToMM2HlZObfkFAGEP/LtSByvEBkXr2bPQqfLaSZkg/udOs+bpHeihbbdaClbzL 2CePmkwqyEh60DIfIqATWX9PF6y5W39AnJ8Am6kdi/OA5nV3FAU8PDSvlMsvcSTXaC/V 1TjTpYAB/6iPLB65sZYQW/12bhVe62ZAdNOMWwOf11Z4u92x3wULHOF1eL6n2ntD9SRv 2pQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=v/yjo8cwZJ3lmYQYHHdSfD7wxZUU2QLHlIrKpERdTfQ=; fh=enfUVBD4ZnKEftQw8Q5L48dy+wN2yhqik5fQGvJermk=; b=cN7hfeuofcw1LCjVtwHKBCaEC3IsdD5p50hGwlnKhDHBGzPsd5Wbft4hEadWPuIxL6 yRaed8RjtGA7HYTDnjCo/LaetScxJrRGyHOU70tURouvU/85pin0HxIQ4C3QU9yTPNJn hW201ulq3aRxf04AE4xNqAfDd5rXVTaQyXjJ2OvC9A2UTggMJtCxhtcbU/8ChEStLocw MUcyaPo/PQDM7OJ75DXSYA11ShyKC4qO6aUXrAoGd9QINyOy7JANh2YzdDCMlB5Px+td Sc02SafOC8pj1mVNuZ/AjpzWaQjq355aCkQYlxN4nEwEPHbdoFOljkOs+koJ2Uy7410u 2bPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-151760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iy10-20020a0562140f6a00b0069b1f36ee95si4307368qvb.438.2024.04.19.09.44.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 09:44:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-151760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F5811C2144E for ; Fri, 19 Apr 2024 16:44:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF0B71350EC; Fri, 19 Apr 2024 16:44:14 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 437B7132800; Fri, 19 Apr 2024 16:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713545054; cv=none; b=M2G9rsptJsNJ1Yh/LHa0jlmV6ZsDSNT25jWWDh2Sf/vRWTPE+ZggV1L2j3J2qVZJq6ZjlGwAnWHwZ3YSTJdAIgPJQAUgdHvdMnnGiE051M9FeakwAYpMJqmUVp36/QrYQSIE6o6+AX/wyvKFxdfOpIsrancGlGhXD1m3CnkqGWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713545054; c=relaxed/simple; bh=g6dfOkD7e/Rsui1E9vwCOjhb2lg0fOpMCgFt3OAgUNw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=A6djVsazQpWQmEpTTwN5fz41S2HbPYD7Qb6Pz3MWmn4H4L+5RmrlMiw9g9MVH9bq47tMeOkYea+6JjJ8Zug/fxD2ft+7SJioK+TTxv0OYAsnkhijVgb4dJ0xduarjteapV/rsrXpjWdMTfTut3inP7ClyZOO1merMeV50M/Udjc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC3AEC2BD10; Fri, 19 Apr 2024 16:44:10 +0000 (UTC) From: Catalin Marinas To: will@kernel.org, rppt@kernel.org, Yaxiong Tian Cc: keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, akpm@linux-foundation.org, ryan.roberts@arm.com, wangkefeng.wang@huawei.com, ardb@kernel.org, david@redhat.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, xiongxin Subject: Re: [PATCH v3] arm64: hibernate: Fix level3 translation fault in swsusp_save() Date: Fri, 19 Apr 2024 17:44:08 +0100 Message-Id: <171354500626.1387030.2608430533776260920.b4-ty@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240417025248.386622-1-tianyaxiong@kylinos.cn> References: <20240417025248.386622-1-tianyaxiong@kylinos.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Wed, 17 Apr 2024 10:52:48 +0800, Yaxiong Tian wrote: > On ARM64 machines using UEFI, if can_set_direct_map() return false by > setting some CONFIGS in kernel build or grub,such as > NO CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT、NO CONFIG_KFENCE > NO CONFIG_RODATA_FULL_DEFAULT_ENABLED.Also with setting rodata=off、 > debug_pagealloc=off in grub and NO CONFIG_KFENCE. > swsusp_save() will fail due to can't finding the map table under the > nomap memory.such as: > > [...] Applied to arm64 (for-next/fixes), thanks! I tidied up the commit log a bit. [1/1] arm64: hibernate: Fix level3 translation fault in swsusp_save() https://git.kernel.org/arm64/c/50449ca66cc5 -- Catalin