Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2984765rwb; Fri, 16 Dec 2022 08:45:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf6c6fXYTJL6p0j0jFHm3FL1N2FeuGjWomXQ+pbSc/D/kEUktD9pXT71bNpRf6cdYk8/EcGF X-Received: by 2002:a17:90b:2315:b0:219:8b27:e065 with SMTP id mt21-20020a17090b231500b002198b27e065mr41738846pjb.17.1671209135639; Fri, 16 Dec 2022 08:45:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671209135; cv=none; d=google.com; s=arc-20160816; b=VBmmn5irV3WFRD8nA2A1flZkGc0Q1HcRP8p6xKgMuei2NMJuzjwqaYyBq4lPeeysM1 AgSDOoTB8uCDAwOEXITWPH5HeFgUvyLYlBdQv9DrEaotDv2ZVWHwceIuxJY5kxaw7WgU swq0ShvLNSlS8i0VlFdRpZLKqGn8ETKtOB+WHi70KWewZeiYfSdRZiLgtYhD1XSMTAg5 7t9Wd8BbAOJj2D4fA1E/wsVVGsHEQWFVJgrI3zumJ6IAGenZPiB9xOkYw+5tYMcuscP3 DF1BByR5qQR1z8f6+FYMnFpr8yNnPapm091a5HJFVurIHQIv5Qfmxylzx/rYT/1tID+v ZRlA== 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 :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=qKpV/VqJnDWZ/oVpmuV6caL/79sgF/1JHTzTx6G1qmI=; b=fyoIKO7WsgcgLbMVudvDgEJW06FBM2T29P9GNaZywUhW/5Kl18rFKAbGcK8k8t2Z4/ +vC9PUS1nFwNjMsmANRTGBTiIEh+JR04IRfoJxX02af4TT5ukXb2bTOzw3e9T77caa2g 79WWDsNZQeyjNJRQnLEJIR6GjUYoaphuZ4i48j8AFfvjr4RXEQm446Hw66YyuS0vdpNe QhGXBb06YAGJQ2Zwa6afqArI3CLt95A/vJE54Wp+AG5Q9GrWJkXn+5Z3S4MsRRAtgi93 WZHTGQ/vaYoINP7F/Y/ZwDzjVgLMH2etzM4BsV9v7B5Y8d7eBTm+mlgyh7dS4mL195p3 Owqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q8qDUksM; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ng6-20020a17090b1a8600b00219c3bb5a63si3129074pjb.38.2022.12.16.08.45.26; Fri, 16 Dec 2022 08:45:35 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=Q8qDUksM; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231577AbiLPQiT (ORCPT + 68 others); Fri, 16 Dec 2022 11:38:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230219AbiLPQiQ (ORCPT ); Fri, 16 Dec 2022 11:38:16 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7884B871 for ; Fri, 16 Dec 2022 08:37:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671208648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qKpV/VqJnDWZ/oVpmuV6caL/79sgF/1JHTzTx6G1qmI=; b=Q8qDUksMC01wGcr8hdCmpnfbvkCYKMXZtAMouiwFkRorX6dwqGUJjuuPhIngIh22lt6uBH wzucYuaijhOMXB8gOrn+jTaSwWuzaY4PJqg79LxV8Xnq/ufllG7vyxhilR2sXUI7qB4qeO nx2HkbrFbNJY9gh/lM9jFv2bQ2KE0M0= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-605-gty2jWNdOM2GqJMXJqiK6Q-1; Fri, 16 Dec 2022 11:37:26 -0500 X-MC-Unique: gty2jWNdOM2GqJMXJqiK6Q-1 Received: by mail-wr1-f71.google.com with SMTP id x1-20020adfbb41000000b002426b33b618so621945wrg.7 for ; Fri, 16 Dec 2022 08:37:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qKpV/VqJnDWZ/oVpmuV6caL/79sgF/1JHTzTx6G1qmI=; b=gHnB/GOm9s00FZ9hzfbnifMdOlkbcOuWZU4XQmz2KU+ERsvT255EWTxNOnFgcZ21xO i0ACMzD8YiRBk5fLViBAWTkIVTUhKJY9WHoHt5+c3ulUtAbOyzickbEe7XZOPRgR9Uw3 esiT2Pr4FEP0Lcb5oMYV6I6d9er7ZeV6EsTTpg9xVYvEwF1u43SbOmn5iHuwbCuLMJXK FQ+6BfnSQRYht7v7l4wUt0tLwVawpaE3RDLFEdalncTUMmnbPtVPIeIXMdeG6HHk+28F h7pci7Z9YLe1yfGylPFBd31iu6V6mMwt0pDW4ANp8fL/bJLgZSvkeJgVzVD5VzV5fpaR clzw== X-Gm-Message-State: AFqh2kp/KRAie44lmT92bb8IhQj7AKsEQ7NMEO+ZMXaGrurMWt2/+CwL McmFXrdmKCruTspzZkrZh2ddMfKsQPZBlxdYikpc27lAlYs4UwPtgHhj/fmkcS1wqXEIe9CDng3 qmj1ME1P8LwQoSUDglBJ313Qf X-Received: by 2002:a05:600c:1d06:b0:3d3:4aa6:4fe6 with SMTP id l6-20020a05600c1d0600b003d34aa64fe6mr121472wms.3.1671208645699; Fri, 16 Dec 2022 08:37:25 -0800 (PST) X-Received: by 2002:a05:600c:1d06:b0:3d3:4aa6:4fe6 with SMTP id l6-20020a05600c1d0600b003d34aa64fe6mr121455wms.3.1671208645494; Fri, 16 Dec 2022 08:37:25 -0800 (PST) Received: from [192.168.3.108] (p4ff23686.dip0.t-ipconnect.de. [79.242.54.134]) by smtp.gmail.com with ESMTPSA id i6-20020a05600c290600b003cf5ec79bf9sm2867736wmd.40.2022.12.16.08.37.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Dec 2022 08:37:24 -0800 (PST) Message-ID: <19b49f1f-9d2d-6cf1-e764-ca4219b22ab9@redhat.com> Date: Fri, 16 Dec 2022 17:37:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH 1/2] mm/uffd: Fix pte marker when fork() without fork event To: Peter Xu Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrea Arcangeli , Pengfei Xu , Nadav Amit , Andrew Morton , Miaohe Lin , Huang Ying , stable@vger.kernel.org References: <20221214200453.1772655-1-peterx@redhat.com> <20221214200453.1772655-2-peterx@redhat.com> <618b69be-0e99-e35f-04b3-9c63d78ece50@redhat.com> <8c36dd0a-90be-91bf-0ded-55b34ee0a770@redhat.com> Content-Language: en-US From: David Hildenbrand Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 On 16.12.22 17:24, Peter Xu wrote: > On Fri, Dec 16, 2022 at 04:57:33PM +0100, David Hildenbrand wrote: >> I'm more concerned about backports, when one backports #1 but not #2. In >> theory, patch #2 fixes patch #1, because that introduced IMHO a real >> regression -- a possible memory corruption when discarding a hwpoison >> marker. Warnings are not nice but at least indicate that something needs a >> second look. > > Note that backporting patch 1 only is exactly what I wanted to do here - it > means his/her tree should not have the swapin error pte markers at all. > > The swapin error pte marker change only existed for a few days in Linus's > tree, so no one should be backporting patch 2. Right, and these patches are supposed to land in 6.2 as well. Makes sense to me then. Especially, the other parts in patch #2 are worth being in a separate patch. Acked-by: David Hildenbrand -- Thanks, David / dhildenb