Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3637487pxv; Mon, 19 Jul 2021 05:19:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm1kd9bJKCz4Z8o4BwrwAzy5YePQ+m9nQHs2yBYt9R8g6pHwJWuAq71KnN+TPNnw6YsZvF X-Received: by 2002:a5e:9e02:: with SMTP id i2mr18775825ioq.198.1626697140780; Mon, 19 Jul 2021 05:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626697140; cv=none; d=google.com; s=arc-20160816; b=Acw9Djefagt/7G2ct6EC8GRXkOQ4bXqoY4uAHEyqshm3qIPB0R007Rxx3OBt0cZDUx elLXLaN9TepI4miiFZQMUQ0Hvren+EW+RKI6cTdbmqF7mBprGsqgeSBQHE+KonJCe6u4 BF65eW5YtwC297Ifdr7+HhYTo49VkjZfKTp8gc0OYxccJRYBpB9Ivt4CFdATf/9OuCfM BF6m3OVZzgRiB+NXBVD6njDSsUSPg+9hG2fXbYuC6oA/x8D5r8FxlyOOk8NzoFTL4IlV LQDdnLHVMyg/EZlNT5UqBXieS0FvGKzfyv4tE/E9Or+uZyNhbk+31Xza6YohbPtmcpOE jmtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yk584Xxi5JgreijLkhmyuMqT8hsuugiWPk0sXg85DPc=; b=fAP/VYVtw2/bN6vUA4f+Y8ybwrGqb4tRUGWe0VOgJfem+AkCDQH5XRk3cjVBwYPpqU AMAqNsZdmqvQ1TUvKCXW/XLpZOaDjVEphbwWKmhmDpUp7Qe8K8iDhetORviqquXaDaJq zYE9JmOtNMYJbvfpbsNDEMjqTOAnD9YtUV1Sj9i0se/1iGXS6N4Ttj80cYlsOj9iqNeL dHlmhiFOjilm77IxDwWyJ58OkMBPJP6TMYGy4Uyl9NO0vQgHYtXmzT4WzZlRBrw7R1C3 kzx2XvkbZe6Pr0m0FLMbE2/HP4WV+qQRqo2c6+6XyebtI92mc4dhoBRYJD0J6tiefxDF ibBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fVTrgIpd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si11872715ilu.88.2021.07.19.05.18.48; Mon, 19 Jul 2021 05:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fVTrgIpd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236782AbhGSLga (ORCPT + 99 others); Mon, 19 Jul 2021 07:36:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbhGSLg3 (ORCPT ); Mon, 19 Jul 2021 07:36:29 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04C15C061574; Mon, 19 Jul 2021 04:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=yk584Xxi5JgreijLkhmyuMqT8hsuugiWPk0sXg85DPc=; b=fVTrgIpdtJ9zMf/WiHGbzqdL/0 Bjbdh5PCrSP+9Y/SwPO+aV6jq6I2rweBoW3mrLFiQkQbMYbB5LlKjJvQFox9RXXs/ASPDJF8D8XGI q9ORMHpta7I5TqdS0YjnA/F315lDS2K5GQsLhCdt7z7cw4H1RmOCErBJMOJzP39u7jFb2pCA4iog9 UnhCPPKrehawCcmlnWv0NNLbIzv+f+/VdNYuKudkRQNgR282rAGFASZv2/XpnxAITFhG5bbJAL1ST Tv37ctw54UCI5ghCgR3to1iNYoKo8z2Cfe3nRZSCnJF2z1nI3/bjRzlAAAM4OQsxxWNc9KvsRYNgK PoLDfmnQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5SBo-006pjW-Ob; Mon, 19 Jul 2021 12:16:14 +0000 Date: Mon, 19 Jul 2021 13:16:04 +0100 From: Matthew Wilcox To: Oleksandr Natalenko Cc: Miaohe Lin , Boqun Feng , Zhouyi Zhou , paulmck@kernel.org, linux-kernel , stable@vger.kernel.org, Chris Clayton , Chris Rankin , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , rcu , Andrew Morton , Linux-MM , "Huang, Ying" , gregkh@linuxfoundation.org Subject: Re: linux-5.13.2: warning from kernel/rcu/tree_plugin.h:359 Message-ID: References: <2145858.R0O0FObHBN@natalenko.name> <688a2cb1-5cd8-2c00-889c-4d48021371f8@huawei.com> <5812280.fcLxn8YiTP@natalenko.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5812280.fcLxn8YiTP@natalenko.name> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 19, 2021 at 02:12:15PM +0200, Oleksandr Natalenko wrote: > On pondělí 19. července 2021 14:08:37 CEST Miaohe Lin wrote: > > On 2021/7/19 19:59, Oleksandr Natalenko wrote: > > > On pondělí 19. července 2021 13:50:07 CEST Miaohe Lin wrote: > > >> On 2021/7/19 19:22, Matthew Wilcox wrote: > > >>> On Mon, Jul 19, 2021 at 07:12:58PM +0800, Miaohe Lin wrote: > > >>>> When in the commit 2799e77529c2a, we're using the percpu_ref to > > >>>> serialize > > >>>> against concurrent swapoff, i.e. there's percpu_ref inside > > >>>> get_swap_device() instead of rcu_read_lock(). Please see commit > > >>>> 63d8620ecf93 ("mm/swapfile: use percpu_ref to serialize against > > >>>> concurrent swapoff") for detail. > > >>> > > >>> Oh, so this is a backport problem. 2799e77529c2 was backported without > > >>> its prerequisite 63d8620ecf93. Greg, probably best to just drop > > >> > > >> Yes, they're posted as a patch set: > > >> > > >> https://lkml.kernel.org/r/20210426123316.806267-1-linmiaohe@huawei.com > > >> > > >>> 2799e77529c2 from all stable trees; the race described is not very > > >>> important (swapoff vs reading a page back from that swap device). > > >>> . > > >> > > >> The swapoff races with reading a page back from that swap device should > > >> be > > >> really uncommon as most users only do swapoff when the system is going to > > >> shutdown. > > >> > > >> Sorry for the trouble! > > > > > > git log --oneline v5.13..v5.13.3 --author="Miaohe Lin" > > > 11ebc09e50dc mm/zswap.c: fix two bugs in zswap_writeback_entry() > > > 95d192da198d mm/z3fold: use release_z3fold_page_locked() to release locked > > > z3fold page > > > ccb7848e2344 mm/z3fold: fix potential memory leak in z3fold_destroy_pool() > > > 9f7229c901c1 mm/huge_memory.c: don't discard hugepage if other processes > > > are mapping it > > > f13259175e4f mm/huge_memory.c: add missing read-only THP checking in > > > transparent_hugepage_enabled() > > > afafd371e7de mm/huge_memory.c: remove dedicated macro > > > HPAGE_CACHE_INDEX_MASK a533a21b692f mm/shmem: fix shmem_swapin() race > > > with swapoff > > > c3b39134bbd0 swap: fix do_swap_page() race with swapoff > > > > > > Do you suggest reverting "mm/shmem: fix shmem_swapin() race with swapoff" > > > as well? > > > > This patch also rely on its prerequisite 63d8620ecf93. I think we should > > either revert any commit in this series or just backport the entire series. > > Then why not just pick up 2 more patches instead of dropping 2 patches. Greg, > could you please make sure the whole series from [1] gets pulled? Because none of these patches should have been backported in the first place. It's just not worth the destabilisation.