Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2239545rwl; Thu, 30 Mar 2023 07:49:10 -0700 (PDT) X-Google-Smtp-Source: AKy350ZOQu2zkx6i2iz2ROCaV8+xScwjhOg/abIHhZZhcM6BIVyyiIU1WfniFoc0EeQiLIt8JoBZ X-Received: by 2002:a05:6a21:32a2:b0:df:e8b2:ffb4 with SMTP id yt34-20020a056a2132a200b000dfe8b2ffb4mr17705056pzb.3.1680187750426; Thu, 30 Mar 2023 07:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680187750; cv=none; d=google.com; s=arc-20160816; b=uPyqp6OfoRtDlWwsGlHC/s1fu3785AlXJQzXkNQvQxvK9LrPOncXi372nG/7T30br4 0V1nzM6nZeT3DKvoT0oVkWTzXwHbtNIp7dKrUfzV7AGvyop1j3cGuMDdB7JNIyi/ICXl NiGGDLh4PQKXgqstgfsgJTca9oVBB6QbjfyifDth3GBfXmXK7RkTBVr4pPJcfbybs7z6 1Wd/LQYbucj7LpWnxSZkp6h8zIs7JS8uMD7eYV4qza8U3v2tKtKW4Le2wA98S9eGwjnP EPRDRL8Xk+a6YWHKlPPLlgShaRoLAco1Wyd3KBzBkZ7SF0eMaAspNfY5rNrFDFiUrtfU zdUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=VO0en26O8PrSdBFVkwG8Ovp3sfiCyZcbgKZ05t43wVo=; b=FImByhozGcNXq2vkAGRLQ5C5Q998oZYz3f3PjIt6CNij2x1B486YhLgYdfTKPCpqBm d5N+HtK4TmouL41lkJG1X03V/5NO3YrXLEW6heHBRchodXZRO8e70KKNYv3ls6MJH6Y6 nY+wFrqVFnfJ96tzVOazUXcOXhozgPWpH84qu8UM26iJSwmYDqsPBjMHpvu6WTABJGEt A6gzDKrwNhefhjkbvetm/8r9CmhdXeCzfcWpkl82vUhD/KaFvyljVbxXSZZ0aUtz/jZI KJGIAgSnoLhupHWCjWOFoal0pFjc43mVuSeuKkBK3cExYN++s6R3n48fv/9+4WxvSYpy qDBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b="O/7CKkWa"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k62-20020a638441000000b0050f6f93a402si29188804pgd.8.2023.03.30.07.48.57; Thu, 30 Mar 2023 07:49:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b="O/7CKkWa"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232151AbjC3Op2 (ORCPT + 99 others); Thu, 30 Mar 2023 10:45:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbjC3Op0 (ORCPT ); Thu, 30 Mar 2023 10:45:26 -0400 Received: from forward500b.mail.yandex.net (forward500b.mail.yandex.net [178.154.239.144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E74F98691 for ; Thu, 30 Mar 2023 07:45:21 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:4a05:0:640:40c8:0]) by forward500b.mail.yandex.net (Yandex) with ESMTP id A12DB5F188; Thu, 30 Mar 2023 17:45:17 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id FjKuDP2Wsa60-57BudbbW; Thu, 30 Mar 2023 17:45:17 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1680187517; bh=VO0en26O8PrSdBFVkwG8Ovp3sfiCyZcbgKZ05t43wVo=; h=In-Reply-To:Cc:Date:References:To:From:Subject:Message-ID; b=O/7CKkWaZyOy3O41HRO8zV/wpVY3aZIpsOKGpwMZGKsuSAkXXcqUEudtVGNKe94/m a9YJnF3pBF0u+pfblVjgQ3P4jLBNDlFDAOn9anDWCJILCaQhIluyFdvAirZB46bhjQ lG+BmmXUYEoj3OAFLukyIz6yzC6A+sPaiwTUV2cU= Authentication-Results: mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <38c80313-ba1c-092c-ae31-f58fe6ffa82c@yandex.ru> Date: Thu, 30 Mar 2023 19:45:14 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: MREMAP_DONTUNMAP corrupts initial mapping Content-Language: en-US From: stsp To: Linux Kernel Mailing List Cc: linux-mm@kvack.org, Brian Geffon , Li Xinhai , Dmitry Safonov <0x7f454c46@gmail.com> References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a few CCs. 30.03.2023 17:38, stsp пишет: > Hello. > > Attached is a small test-case that > demonstrates the problem. > The problem happens if you change > some data in a file-backed private > mapping and then use mremap on > it with MREMAP_DONTUNMAP flag. > The result is: > - destination copy is valid > - source copy restored from the original file > > So the 2 copies do not match.