Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4516743pxj; Tue, 25 May 2021 09:43:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLbiqTegUP96CbGqymq+Leg8h5w66bHVxwQx44Q9rp8nsUb8meCvzfFgf275M9ExhflDeW X-Received: by 2002:aa7:c548:: with SMTP id s8mr33008623edr.114.1621960988619; Tue, 25 May 2021 09:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621960988; cv=none; d=google.com; s=arc-20160816; b=dPZyB2F4nxO/IOkqt5GEmgdKmeYK3bk27AlBHay1hDQs7oAgcxU+oVEHOU726Qm0fc SWXBGlcTty+eSgLoGGubE+lpKhwYpgrByTuYzIFmU5hrk3B1Ga1qxadiNYKuRwt1KwKp 1HKxsSJ1ockz7de1L9oNHeNJA1RFC9vXI3nnrlwvR7xS9oC/V4382ny7zhpPdCTAiTXP BiKE6tVlsrKWuUcr71VR+Yt4OIyYHUrLE4+Rl9uasaP2vcM+BiVkZrAyLDuHMkMG707K 6HOT4mn2IG+45D6tKKdWZgLS1mblCkFK8LHnCbsBigycWQXHqs054CGAGZd75K31AHIY CDkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=gag1aUwZPmypGZZ1Dj08AhANtQ1DUMgHBw4SiOrnwxU=; b=oMZZdAB3oS8ngl+ZUgRodLJAS0l5RfqUxmHVZXe6LywlLDORC/8mKViUkj8VYidIdP 61anKrd19VTvisk3wtDywZMP5COC7sQbmRncdRSpkosJmr7j4/al11Yi7SnUrTa4+2vb dSXb8uMNDOlrFLHOu+IpQsIaP+xqgSQKl2EE0KhBkVqaHDxzKMM3lDHsZC3xd61M8M4P Vg9v6YGF3b4nLZmhJh8WvAM220RSd61CFPn0GI+KPB0KWvWFeeSHi9AT5sSg5LeSXbUK LuuYzQ7Svy8r/3l1CtGWVQMgF1+0YNJh5TYybCHLivaP6ZLibOMd0KlZ55dxqHYVdCea BB7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si12128238ejh.703.2021.05.25.09.42.45; Tue, 25 May 2021 09:43:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233449AbhEYODh (ORCPT + 99 others); Tue, 25 May 2021 10:03:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:35010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233273AbhEYODh (ORCPT ); Tue, 25 May 2021 10:03:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5DCB26141B; Tue, 25 May 2021 14:02:06 +0000 (UTC) From: Catalin Marinas To: Marco Elver , Jisheng Zhang , Mark Rutland , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Potapenko Subject: Re: [PATCH v2] arm64: mm: don't use CON and BLK mapping if KFENCE is enabled Date: Tue, 25 May 2021 15:02:04 +0100 Message-Id: <162195131724.26304.9816849348015861632.b4-ty@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210525104551.2ec37f77@xhacker.debian> References: <20210525104551.2ec37f77@xhacker.debian> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 25 May 2021 10:45:51 +0800, Jisheng Zhang wrote: > When we added KFENCE support for arm64, we intended that it would > force the entire linear map to be mapped at page granularity, but we > only enforced this in arch_add_memory() and not in map_mem(), so > memory mapped at boot time can be mapped at a larger granularity. > > When booting a kernel with KFENCE=y and RODATA_FULL=n, this results in > the following WARNING at boot: > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: mm: don't use CON and BLK mapping if KFENCE is enabled https://git.kernel.org/arm64/c/e69012400b0c -- Catalin