Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2136179pxb; Fri, 25 Mar 2022 11:43:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU8Xle+6ZDTvRJq+ur0oAFz1tNRw/IFB/8NbZJMnVmEE2c3+e7j/oangv0Hs4YTzHzq8fN X-Received: by 2002:a17:902:b490:b0:154:57e1:96ae with SMTP id y16-20020a170902b49000b0015457e196aemr13075389plr.86.1648233837912; Fri, 25 Mar 2022 11:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648233837; cv=none; d=google.com; s=arc-20160816; b=1G8HbjwXniE9HxxZ77fjilEFwtqdbQSMLMYgBhbF8t62QzFpPzbUfiqHqpuskwPYrP GizPiYF/g6mx9H9qetoIcIsSTivOEGujWPGWJjgOP8qPIpUFHeRiMjCRqlLDzVUZO+lN SduD/lAzJI4Kp5xJnN8zAnwzACLavENvprOE3fM5C7V+249RXzJgGYX5FpgIvLBhy6Y4 BRYhwiRmuFd8vlFEWUBDJXiJItLBbShwkQ4LeXXg5GRA66AIf/OwakTgZUjHDLt4pUWf o0H7zzO/cG04buKSFuQ0pUzdHzbPqkqjbMz6r/3E0gXZCuVfWVaAp1ttwF5SN4s9sYwV lkjQ== 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=IKwNBEs3tASJWL7vN74tIrUm9dV+sBlNlNaJ5KwKgTs=; b=XFFn2fPL2dfXdSZ1bP3ZZ4b++8ltN+2DbyQUOO4j8gmXXLoCZH+SbETDgj2UDy74ap YgrIQ0yRVi+Mt+JVkIxq6npe9E7mOZhbJhZGjXEnJSXWdMKK8E92BFQoNq3i7u59uKL6 trlVHKIFsjwqLRAu5gYi1yjvpFpNIF5acBYb1OCZ+4zix8fIYaUIici40zaB71lVZY0X wSLzpKA5hgsiK8PzH6XtfZL6xskw8o8Ars5v+4pqmKcRsKvBImxVw8+z1p3a5v2brkdd CxgfsNHGOORci20jcRWJ+gY7vYNt3a+lbjluAoPj7y3wtl6k/zckq6OcvjvhKUTgk/R9 Kgbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=cbc3BGe5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i7-20020a635847000000b003816043ee7asi3182740pgm.111.2022.03.25.11.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=cbc3BGe5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D28F10877D; Fri, 25 Mar 2022 11:00:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357755AbiCYCMc (ORCPT + 99 others); Thu, 24 Mar 2022 22:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357753AbiCYCMO (ORCPT ); Thu, 24 Mar 2022 22:12:14 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4AB9A147B for ; Thu, 24 Mar 2022 19:10:25 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id x20so11544151ybi.5 for ; Thu, 24 Mar 2022 19:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IKwNBEs3tASJWL7vN74tIrUm9dV+sBlNlNaJ5KwKgTs=; b=cbc3BGe5+zL07UFEV9pbFjATQyTFfHkL8NRVARYGOxWmh0lxE1dNlskSSeW2JkMs2k sFZgeI9XI06R2An17rGJRCrVBd+4KlMmefFE0nM82JlLERTRrgyL+1O3jRbO/hSqr9ZS Pvf+cXGQaP182cb0VU8dTVUGy9z7Ic0Nmx+vQ= 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=IKwNBEs3tASJWL7vN74tIrUm9dV+sBlNlNaJ5KwKgTs=; b=LvDWwcR1aUyVmJid6wKJyqEl7Z50dxnvQWWb4iBQiY+0hE4hzXN/NRF0+rO1xL21y5 //rP+h45TnJBcCkXSNx4mqvYF3Q29F6Z4Hp1yybGwaxEOJxN7seRC37YNE3LxE+cFsX2 ScUgO0dex0PZ5xqTV82Jv2bkadvtHTzI7dJ8Zk/TrhUcTF7JZH1dOxpFAzYvx6enodmz nTNn6mYTJnD0nRhoZpNQ+LJ2YCNy5EDeUxPdy68YgdSBhTPbc7ZFSoAq5CNUkZ+9fUs0 9YzvLYkJtGI7HbhKVEYVaAPjGAZUVUy5VfG3Do6amyQEm0YZLMraaAsUQhQ3FruRiozo LiSw== X-Gm-Message-State: AOAM530LWdmWjaJjuNLA3OcdDnYbdxxKHu2tKLDH9Uc9DYEjNVy85v/r K7e7i9aA+NyW04DE3QqXUGw4ImCrW27kfUp/9yOnAw== X-Received: by 2002:a25:3f43:0:b0:633:bdd8:4ae6 with SMTP id m64-20020a253f43000000b00633bdd84ae6mr7423462yba.134.1648174224922; Thu, 24 Mar 2022 19:10:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ivan Babrou Date: Thu, 24 Mar 2022 19:10:14 -0700 Message-ID: Subject: Re: zram corruption due to uninitialized do_swap_page fault To: Minchan Kim Cc: Andrew Morton , Linux MM , linux-kernel , Nitin Gupta , Sergey Senozhatsky , Jens Axboe , linux-block@vger.kernel.org, kernel-team Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Mar 18, 2022 at 11:54 AM Minchan Kim wrote: > > On Fri, Mar 18, 2022 at 10:32:07AM -0700, Minchan Kim wrote: > > On Fri, Mar 18, 2022 at 09:30:09AM -0700, Ivan Babrou wrote: > > > On Wed, Mar 16, 2022 at 11:26 AM Ivan Babrou wrote: > > > > I'm making an internal build and will push it to some location to see > > > > how it behaves, but it might take a few days to get any sort of > > > > confidence in the results (unless it breaks immediately). > > > > > > > > I've also pushed my patch that disables SWP_SYNCHRONOUS_IO to a few > > > > locations yesterday to see how it fares. > > > > > > I have some updates before the weekend. There are two experimental groups: > > > > > > * My patch that removes the SWP_SYNCHRONOUS_IO flag. There are 704 > > > machines in this group across 5 datacenters with cumulative uptime of > > > 916 days. > > > * Minchan's patch to remove swap_slot_free_notify. There are 376 > > > machines in this group across 3 datacenters with cumulative uptime of > > > 240 days. > > > > > > Our machines take a couple of hours to start swapping anything after > > > boot, and I discounted these two hours from the cumulative uptime. > > > > > > Neither of these two groups experienced unexpected coredumps or > > > rocksdb corruptions. > > > > > > I think at this point it's reasonable to proceed with Minchan's patch > > > (including a backport). > > > > Let me cook the patch and then will post it. > > > > Thanks for the testing as well as reporting, Ivan! > > From 1ede54d46f0b1958bfc624f17fe709637ef8f12a Mon Sep 17 00:00:00 2001 > From: Minchan Kim > Date: Tue, 15 Mar 2022 14:14:23 -0700 > Subject: [PATCH] mm: fix unexpected zeroed page mapping with zram swap Is there any action needed from me to make sure that this lands into the mm tree and eventually into stable releases?