Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1712231pxp; Thu, 10 Mar 2022 10:35:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7EinvXT96cdHLBq6SEd9gYLMoZVtup5Q+JNZOj47YPJKYcE+opJGdOokDuYHqu04oW52X X-Received: by 2002:a05:6a00:cd3:b0:4f7:58c9:7fab with SMTP id b19-20020a056a000cd300b004f758c97fabmr6162031pfv.66.1646937311136; Thu, 10 Mar 2022 10:35:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646937311; cv=none; d=google.com; s=arc-20160816; b=YdVKeuhuSaXIwg5EBdpzAUGXu7LBUw9iOiP3ZsZx4dyywiMFEww+R5FnCujIHb/WoY Fu4xQzHFkoXdjT83kvF/3oTQk8fyd6A5g8jq0kaLqTvOVyLko4Zv5fFslJynwkzYg1sB XzyO3NeXj92QiLy9Rn86orMbg48sIXPjXD52rHjvtJGoVPuq3Dw4/JeE8UPE/cRNiq6R u19iy6WoD4S8Sedby1fULXq9T+8D3bvPxURT1IqUhXYjCOSawED8bGAnHeaBTnSKkt7D 0exabX8KlNlmPmm6InwvccIwmPuGsejH+1oYLwxpMm+iSPvQLUdb5c+pJ+lPfWvrnncm 7HBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3pJ+I2YdNs/yLkLBmuj/ECVh0Vo8H7W59XBvWovNF/w=; b=OkmYRBU9DDbETPEKL0b5tldEN9GVr1nkb7Rv/RzTBhTG+4ZMHmN18LRQthhiiLfDUN yH3RfH3hZGJ9ymHAxSC9tHoRj7OV/aB0xXSUk4+7uB4iurEp8yYiUqTtl0BjQX+siG70 po/dxpUzYCY6MpSOHo/CaXwWPL8C9DlRZ6cqFLw8I+1o8sjv/kX+1SMq5w0awRvdfScM PhxMEdPcFlXTZw9hrqHCSazNLssDSNvzQj7mzspBkFFfPe3PnZSJWXs63C0SXHYz+Ur+ iW8hICOFVFajoZoLb13/k9y3T5dW2qPRz6baPZ+ZVX43k1QXPDGUfqTAOHlPEDW/mnmt bsiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DTm9QGRf; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a656a87000000b00378d9d69e5csi6301361pgu.655.2022.03.10.10.34.55; Thu, 10 Mar 2022 10:35:11 -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=@gmail.com header.s=20210112 header.b=DTm9QGRf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241514AbiCJLPT (ORCPT + 99 others); Thu, 10 Mar 2022 06:15:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232901AbiCJLPR (ORCPT ); Thu, 10 Mar 2022 06:15:17 -0500 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 775E83B03C for ; Thu, 10 Mar 2022 03:14:17 -0800 (PST) Received: by mail-yb1-xb2b.google.com with SMTP id v130so10100883ybe.13 for ; Thu, 10 Mar 2022 03:14:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3pJ+I2YdNs/yLkLBmuj/ECVh0Vo8H7W59XBvWovNF/w=; b=DTm9QGRf4V8etnToR2oxMCKXzh6s4jheFkE16EHIlg1Wj7kIx9Z3rejll7vRqy1YwH OBWSgwDFHbs1ECPVu5WczTtpj/WKDikPD4S2PR2VYSM+ftyjq//IF/9K+3o3s+l8MryJ NyRU5apXPEzjmPFX0yKW7aQnn+frc+gT5aHnTw7iE2hIJ5lg3x0nL7MwydKWhoBNLNlx s8ZB9k+TiVagYqoWq6lV4OJbDf0SKdtZeXNQZjCv9y+hJr778Keh24+J/QfrcGoQLUxN a1Ba7/m+dN7Ssy22Q236LVmXi/+3NuqNuNMTzACb7QcyaZnSo7f/jna7gfhaG0YnH7CX aTaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3pJ+I2YdNs/yLkLBmuj/ECVh0Vo8H7W59XBvWovNF/w=; b=iWX3i2faaynnDDxAJeISo3pczALj5WF0ejhfyhKdpomRSyDg54gbOpD58D6S1ANYQs V14/HuQNbfW3no57KVOiNTZ0S1sshav/x+bov8lVdqIIgxxMd5jtxFe1MmBrNZ3SNqnm 6iIkVttZ3YSoNbIGmAwLCSG8FxDP8rZmkb7UdLBivwXb17DEvlmaBJwXHqzhJkIQTAth jtziLS4mDcN3jEY0aCc4uQ/hhf3Nh7xGrYMhrLFjc1z/QLlg8GNshlYQd7v7VLFXtend njvVCZ8T0YAVv8Yo0SzX4wNlOv9tYjaHmN9czBtU252kctcZwd7km0IYX0l0o8N5nlBn 0YHQ== X-Gm-Message-State: AOAM533T1C5bsg3g3UjiZDSe+30tDha2D6ZnCLegpGUiqwxl/ndjx52F T2GU+U6YqspIAA9G1idXy7UGcGw9ydvbdIq0/FA= X-Received: by 2002:a25:cfc1:0:b0:629:15c3:e17 with SMTP id f184-20020a25cfc1000000b0062915c30e17mr3402014ybg.534.1646910856534; Thu, 10 Mar 2022 03:14:16 -0800 (PST) MIME-Version: 1.0 References: <20220308141437.144919-1-david@redhat.com> In-Reply-To: From: Oded Gabbay Date: Thu, 10 Mar 2022 13:13:49 +0200 Message-ID: Subject: Re: [PATCH v1 00/15] mm: COW fixes part 2: reliable GUP pins of anonymous pages To: David Hildenbrand Cc: Linus Torvalds , Linux Kernel Mailing List , Andrew Morton , Hugh Dickins , David Rientjes , Shakeel Butt , John Hubbard , Jason Gunthorpe , Mike Kravetz , Mike Rapoport , Yang Shi , "Kirill A . Shutemov" , Matthew Wilcox , Vlastimil Babka , Jann Horn , Michal Hocko , Nadav Amit , Rik van Riel , Roman Gushchin , Andrea Arcangeli , Peter Xu , Donald Dutile , Christoph Hellwig , Oleg Nesterov , Jan Kara , Liang Zhang , Pedro Gomes , Linux-MM , Khalid Aziz Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, Mar 9, 2022 at 10:00 AM David Hildenbrand wrote: > > On 08.03.22 22:22, Linus Torvalds wrote: > > On Tue, Mar 8, 2022 at 6:14 AM David Hildenbrand wrote: > >> > >> This series fixes memory corruptions when a GUP pin (FOLL_PIN) was taken > >> on an anonymous page and COW logic fails to detect exclusivity of the page > >> to then replacing the anonymous page by a copy in the page table [...] > > > > From a cursory scan of the patches, this looks sane. > > Thanks for skimming over the patches that quickly! > > > > > I'm not sure what the next step should be, but I really would like the > > people who do a lot of pinning stuff to give it a good shake-down. > > Including both looking at the patches, but very much actually running > > it on whatever test-cases etc you people have. > > > > Please? I can take this patch-set and test it in our data-center with all the DL workloads we are running on Gaudi. David, Any chance you can prepare me a branch with your patch-set based on 5.17-rc7 ? I prefer to take a stable kernel and not 5.18-rc1 as this is going to run on hundreds of machines. Thanks, Oded > > My proposal would be to pull it into -next early after we have > v5.18-rc1. I expect some minor clashes with folio changes that should go > in in the next merge window, so I'll have to rebase+resend either way, > and I'm planning on thoroughly testing at least on s390x as well. > > We'd then have plenty of time to further review+test while in -next > until the v5.19 merge window opens up. > > By that time I should also have my selftests cleaned up and ready, and > part 3 ready to improve the situation for FOLL_GET|FOLL_WRITE until we > have the full FOLL_GET->FOLL_PIN conversion from John (I'll most > probably sent out an early RFC of part 3 soonish). So we *might* be able > to have everything fixed in v5.19. > > Last but not least, tools/cgroup/memcg_slabinfo.py as mentioned in patch > #10 still needs care due to the PG_slab reuse, but I consider that a > secondary concern (yet, it should be fixed and help from the Authors > would be appreciated ;) ). > > -- > Thanks, > > David / dhildenb >