Message ID | 20210205140652.662436384@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2654343jah; Fri, 5 Feb 2021 14:06:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxy51dyNiHXTKyiFlfItyLOzDhRr1Ey+nyKz6RuyWYc/c6f28tM48AaNk1O7oHrqP4f3Dkq X-Received: by 2002:aa7:c98e:: with SMTP id c14mr2158717edt.213.1612562805649; Fri, 05 Feb 2021 14:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612562805; cv=none; d=google.com; s=arc-20160816; b=03vTOjMm1h5rC0YKA6VtvcMjAy+3HQEsVlGtfLsLgf63lY6pGr7nsL+vy6R8f1MwUb FHBMToWPWLvnDVc2fJArDhjtJi8f8LgiOZs74yx7jzFFRqQ1Ax0GsgJepFqIbCZFa1rT aVdAyZ3GvEtpWo+OIf+9nMC3ndO5B1tjGpVZCeY6S9o1tAoswazvZyUJGXTTc6gwpC0L B8bnegqrjZbqBlcfNwZVR7NlvU8MbNwUHhxXTrNB3FFh7g32U4YN2SvL7CsopMGNdI7N jXPs5LHT9rA+ERF/rE4z4nluGnFS/fC6jLtVIGGjum6tE39cg1Eb/r8d138MFwCF9ola c7Ow== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=60fcILSf34BmRtQ4bhEov3WGdLTCbZ/pZ+tX73VY6Gk=; b=x6CbNoY+k8NMzvM5gDhAxV1yeCWB1I8DCFx2o9vHAqIVIZpfEAsCJ9gDc1DaaLieOE ujmFt8SnkYmOJlySyhv2yq2mpusGBYPKC1aT+JEf7/Bu0zLagDI8ViJYXe7NoDvVLBmU qHuP1w92X9BKWHqEkE+DKU3w/ttk1hoZg088nNJMnfeJAo1v7eAb8ebS1R1p3JNde5jw uCPhBsJF8w71vjSXZAjc4xq8lq6NI+BQmPfGHJCuMWEsWSGD9dd3n/yph0bsibEPe2NL WwIB3PYZsrnppdCiBD4cyMbTxDoSI1kjrH82b3jO8UNg7Z4uixEd2FMV6CYRO+I6k2zA 4snQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qH+8jweQ; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k4si6264367edq.62.2021.02.05.14.06.44; Fri, 05 Feb 2021 14:06:45 -0800 (PST) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qH+8jweQ; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231703AbhBEWE6 (ORCPT <rfc822;semen.protsenko@linaro.org> + 13 others); Fri, 5 Feb 2021 17:04:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:44984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232931AbhBEO5T (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 5 Feb 2021 09:57:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E047765058; Fri, 5 Feb 2021 14:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612534352; bh=sUCSMGgYb319zNRdR6buytA8eu3g59oCfCt50woq2ZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qH+8jweQmF1ScmxlAY4XyZibgZvFvh6Za8CmaxDY5m5k53GVqtyo6hJkgGTwYtb4r Hef/+W1mygKMbcaihiaiWNQblNLbMfYBlX0IPwq6oDDano03VzgmgGirO1G5Bt9jtX jb4uDWegSlyytFViOghKDY/V7JpfX9GTbYhnYGrM= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Catalin Marinas <catalin.marinas@arm.com>, Ard Biesheuvel <ardb@kernel.org>, Will Deacon <will@kernel.org>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Mark Rutland <mark.rutland@arm.com> Subject: [PATCH 5.4 07/32] arm64: Do not pass tagged addresses to __is_lm_address() Date: Fri, 5 Feb 2021 15:07:22 +0100 Message-Id: <20210205140652.662436384@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210205140652.348864025@linuxfoundation.org> References: <20210205140652.348864025@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/arch/arm64/include/asm/memory.h +++ b/arch/arm64/include/asm/memory.h @@ -332,7 +332,7 @@ static inline void *phys_to_virt(phys_ad #endif /* !CONFIG_SPARSEMEM_VMEMMAP || CONFIG_DEBUG_VIRTUAL */ #define virt_addr_valid(addr) ({ \ - __typeof__(addr) __addr = addr; \ + __typeof__(addr) __addr = __tag_reset(addr); \ __is_lm_address(__addr) && pfn_valid(virt_to_pfn(__addr)); \ }) --- a/arch/arm64/mm/physaddr.c +++ b/arch/arm64/mm/physaddr.c @@ -9,7 +9,7 @@ phys_addr_t __virt_to_phys(unsigned long x) { - WARN(!__is_lm_address(x), + WARN(!__is_lm_address(__tag_reset(x)), "virt_to_phys used for non-linear address: %pK (%pS)\n", (void *)x, (void *)x);