Message ID | 20220921031924.2354693-9-acelan.kao@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Ps0/lJ9D; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MXNvN0HYKz1yqL for <incoming@patchwork.ozlabs.org>; Wed, 21 Sep 2022 13:20:00 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1oaqHC-0001E5-5X; Wed, 21 Sep 2022 03:19:54 +0000 Received: from mail-pj1-f54.google.com ([209.85.216.54]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <acelan@gmail.com>) id 1oaqH7-0000uX-2y for kernel-team@lists.ubuntu.com; Wed, 21 Sep 2022 03:19:49 +0000 Received: by mail-pj1-f54.google.com with SMTP id j6-20020a17090a694600b00200bba67dadso4393293pjm.5 for <kernel-team@lists.ubuntu.com>; Tue, 20 Sep 2022 20:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:from:to:cc:subject:date; bh=v9TS6xYp3IpbdM0m6y7q7f0GtXuZA3I90gtnPK9hWtU=; b=Ps0/lJ9DqaxrftkDJ3U7/UFlTlcBNCcU3x4c3XHFvk+vOTiKs0AkUL/LQs+FMl+/3P POhB8AZg2DFpf/KoU/rpR3EepnZjzRVe71JXqTMd5fzBiNT2CuqZ6MONxCurx8Zjk40Y 9sVSokL3GnmV8o/zr9/RRPMPffUSEn6ebvgwPnikEThYKuPqCh8/bwFlnXmkOWwyu5Y6 klsgJARO93z2iKxFkcuxJa7Sq1qsv03EQqhScAYU7VoTL4cBAfsQG5NkXwNvhtp+wUTO vp7MVS6j/qu27krOen6XSreb4YkGGv5x29UwGMHb1WHs0PbhCUDRqry7i2dKQ3oJUsjt 5Iog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:x-gm-message-state:from:to :cc:subject:date; bh=v9TS6xYp3IpbdM0m6y7q7f0GtXuZA3I90gtnPK9hWtU=; b=5n7pOY0WSTIA776iUvwWjxFNJQ/Be7w5eR9cq3uQ9dXWpG3nVRZ6QGCut3o6kIkwYZ JoiWNihuKgERsSyDQu89+Wp9u1VCcgf85r6Czsqh2mQOaF1ay4Hal8Oz5a3H20ZgCqzV n0Te90giL9oKrBhai7s3H6s4Tzw5b2XfzujN685iBjnKo57DhX9MmhDNAQtDLoa0tzsd 5Pe72yP11nRb35DGH3u8UbBVNIYXoivathpenqYf1cEa4dvKZKdOOJGicUOLuml4B/LN 2GNA+lntLalUnQACFwkhH5K7GV2YOpWEpIxJd8Ge509IB+QCxdr1ihVrK2/JqCW8LGF4 jqAA== X-Gm-Message-State: ACrzQf3YJJI/I+hX5z+w7h3fMiMupjJksPwpZB9eoUHUGxejubNcBM6D noUDeUD70cojdn2ww/CmF4gu3zilrN0= X-Google-Smtp-Source: AMsMyM7GsQSmOYnHWIs1vGg0aWf7fS4hWO/J6vj49i+crBj3rL0HLID+n9xooQ1/1M51iGnhZ6Gqiw== X-Received: by 2002:a17:903:2309:b0:176:de48:e940 with SMTP id d9-20020a170903230900b00176de48e940mr2710759plh.15.1663730381794; Tue, 20 Sep 2022 20:19:41 -0700 (PDT) Received: from localhost (220-135-95-34.hinet-ip.hinet.net. [220.135.95.34]) by smtp.gmail.com with ESMTPSA id 13-20020a63134d000000b0042fe1914e26sm734841pgt.37.2022.09.20.20.19.41 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 20:19:41 -0700 (PDT) From: AceLan Kao <acelan.kao@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH 8/8][SRU][OEM-5.17] mm/memremap: avoid calling kasan_remove_zero_shadow() for device private memory Date: Wed, 21 Sep 2022 11:19:24 +0800 Message-Id: <20220921031924.2354693-9-acelan.kao@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220921031924.2354693-1-acelan.kao@canonical.com> References: <20220921031924.2354693-1-acelan.kao@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.54; envelope-from=acelan@gmail.com; helo=mail-pj1-f54.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
System hang during S3 test
|
expand
|
diff --git a/mm/memremap.c b/mm/memremap.c index e8f4d22d650f..618991026ab9 100644 --- a/mm/memremap.c +++ b/mm/memremap.c @@ -282,7 +282,8 @@ static int pagemap_range(struct dev_pagemap *pgmap, struct mhp_params *params, return 0; err_add_memory: - kasan_remove_zero_shadow(__va(range->start), range_len(range)); + if (!is_private) + kasan_remove_zero_shadow(__va(range->start), range_len(range)); err_kasan: untrack_pfn(NULL, PHYS_PFN(range->start), range_len(range)); err_pfn_remap: