From mboxrd@z Thu Jan 1 00:00:00 1970 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=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 13856C433DB for ; Mon, 11 Jan 2021 14:29:34 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD85B22473 for ; Mon, 11 Jan 2021 14:29:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD85B22473 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=shutemov.name Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QqFABzpNOgxAhc/1/dmel1z+3fOqYPnnT/iqk5yxFc0=; b=Hfmr7gZ3TL/w4Z0cpRW3anBuM tVqvBV4BrRoMdKLk8BX19W1+T4vV7+iOnk5etiZtuYuNeMnbH1pJAhoZddT9Jq8BAl0lRy6q4OB8Y 17bjVOlSXlNSkpYQZSSK/GTvIB+xfKd9N2WpDrVYS+Lgh4CA/pLI14mLqicsbkDTJYc3EfjCBjGXa 7mXdS6I40d5pM6icBPAcy7AmrMs/5ctV9sJVt8dS0Os9Thc3/NJUWEU+vLNncBsLlUIFiBaPxTam7 dffQfbMcv2KjgUL2kI+7PGslFxX7RX1LpF08YofLuwh5UwYV3CzJwovdEYk/HBSumXeCtuY0REBJh Wohg5gXkw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kyyAe-0005WD-JJ; Mon, 11 Jan 2021 14:27:48 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kyy6x-0003TP-0f for linux-arm-kernel@lists.infradead.org; Mon, 11 Jan 2021 14:24:00 +0000 Received: by mail-lf1-x129.google.com with SMTP id h205so37980567lfd.5 for ; Mon, 11 Jan 2021 06:23:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AUnHjmoZBMPPrCWzaTempqIXz+G+HPhuggI2H5BxADg=; b=NYTw7WWk1Zf7aSea06TGNnxIUYEc7qq9AW/lldbVIlJWFwcFfjUZfoog7LIDmbomQT 4Ji/pCiUBy/Pvci3hJLsfml51b/4OYHgCYH4usuGLc9BYLPBS8Y+4CYEzlI+KLerC4mo euxtuBpAYikzhBtptV3Xzt0M8bEon0shmqoSYFufDnj8HNvqVXDrVTpmig6MMDU8p2jx 25RftUJXI7+SCtdFIWtP4yxlAtQoYFXLf8D+XQUUs5oU1AuI7YWugV2r114YA9HR46kM cf7/Xcv8oKNI1EpyOw6GOwJwUXCAvwi6v0reLfn4RacXEr4OCuBK5zxbX6JYIJSbxoza +lFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AUnHjmoZBMPPrCWzaTempqIXz+G+HPhuggI2H5BxADg=; b=tsCdDK5AwF2mrRcCophNW9yZAyJf5k2Hw6XODZuSJaqcVPbMS1UBjH85Nkqimla0i+ boXX9hdwu+VDmfNy5E4Ja7EgqM4B04MYIhy4PBeY6M5vccq8dhumNxlLhf4GAWBPPV2Z UUzKyPPOUXZxvgNRAbZltuu9B9dseTKOXRohjqjU9rqskkUTc7pnhZIi6cpLxTCasbVr dUNlFKoQdQ2qCOtPWvO54aCS2JsfLOw6CEFxU3mfGzGg0tJWRzvfI00H4h64xuM9ns2D r0obBEJA5je1GMZed5fNh0AYbbXn1TQc84BM/P/pqszEr6vNsXAK3RZrbOW7/6PlrvGK kxeQ== X-Gm-Message-State: AOAM532ge50yuUWw9fv+cGo/Y7iD10sVhSvRhYLbFCrp4LEvK1GiMEmy 1cL+f3CqjT3Cag0crSRbVW3WRg== X-Google-Smtp-Source: ABdhPJymqRDS7aCC5+LCmHPbk12XaMGmyO8JI869mpSwvL1L+s3a8s0ee2CPCpojY5XXzdU39KLClA== X-Received: by 2002:a05:6512:2f7:: with SMTP id m23mr6896463lfq.517.1610375037710; Mon, 11 Jan 2021 06:23:57 -0800 (PST) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id w23sm2310181lff.84.2021.01.11.06.23.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 06:23:57 -0800 (PST) Received: by box.localdomain (Postfix, from userid 1000) id 3623C102238; Mon, 11 Jan 2021 17:24:02 +0300 (+03) Date: Mon, 11 Jan 2021 17:24:02 +0300 From: "Kirill A. Shutemov" To: Linus Torvalds Subject: Re: [PATCH v2 0/3] Create 'old' ptes for faultaround mappings on arm64 with hardware access flag Message-ID: <20210111142402.6euyktmcnpemanf7@box> References: <20210108171517.5290-1-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210111_092359_818831_BDAD5DBC X-CRM114-Status: GOOD ( 12.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Android Kernel Team , Jan Kara , Minchan Kim , Catalin Marinas , Hugh Dickins , Linux Kernel Mailing List , Linux-MM , Vinayak Menon , "Kirill A . Shutemov" , Andrew Morton , Will Deacon , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jan 08, 2021 at 11:34:08AM -0800, Linus Torvalds wrote: > I still dislike how we basically randomly modify the information in > that 'vmf' thing. I wounder if it would be acceptable to pass down to faultaround a copy of vmf, so it mess with it without risking to corrupt the original one? We would need to transfer back prealloc_pte, but the rest can be safely discarded, I believe. But it's somewhat wasteful of stack. sizeof(vmf) == 96 on x86-64. -- Kirill A. Shutemov _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel