Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1611551pxp; Thu, 17 Mar 2022 12:41:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKQkLmX0cM8vJ9G63SLeBqoEn7rRzR7y0yLcj1AiF0kKesU0JoS2sXhYElOjJZATs9eJ8F X-Received: by 2002:a63:4756:0:b0:373:e14b:5848 with SMTP id w22-20020a634756000000b00373e14b5848mr5064094pgk.337.1647546074143; Thu, 17 Mar 2022 12:41:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647546074; cv=none; d=google.com; s=arc-20160816; b=kyjVcA4zd53OSjh6ZXnNEsktJSCEfgOm8KfFNlNhgTp9hS0ckq9iAcGBXkIkhrw6yP C4lA9BkY/cGqOsgnwmLR39+gHNv8w+wt/aU/bo+510uvwLKRmjXtwlkPTidCh3QB29pc Xr9eIntPhOyJOC4rkSLKEhtppHwIK30ayvZmkYLkc7Q1TLFmqiAU1kcLHbPJ3mNP23ao 6yLnLCx0kWxYHud3Xlfw9Fe3p2/pudJw6nGZ0xYCxpZtUchQgAWSSoNjjUnAgvLmqyo0 3lHWrGKbptK8Wad1hvMUb7RXg67ZZyZC8hYgNAmH6sIMaqcwOGUrHagyhqvxggwtj7B6 zqLQ== 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=Ls5p6VA534Iw1IExTs/u1d7nC2HX+uKuD3TTQdakQZ8=; b=WOfES7Ge8rXyM+KjUVMDV/6rPZlLM/iwyKh6he+jteHOfnrHaHQT7J43SsJU5QkFK1 XXnZQbOFjQoHRQH5ve4d47R8N5BAMyw+IV+GW+siYOLrixjzJBZbkwHAVDRnLYRNuT6m KPEU3+Hf4uvI9EBKvzjL57pGiMdkhv8hUZmGe8PGJHgJ67QYeVs6/UjncqTGUnGjg4aF C6iMU62vBd1YQ2YxXnKl/DLMbule0El/PX4CP/mJboOC0qauD89cJWsgGfEi1WDwTka3 V4I4Y47crwj5WnwUh2YyxgxM0LgH/xUZh0OqtC58QHXqqrjYDKYrpTRqiMX4Lo8zfzsI Q8oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="kxUOCJ/f"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id gb3-20020a17090b060300b001bf4e57a5d4si3308446pjb.35.2022.03.17.12.41.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 12:41:14 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="kxUOCJ/f"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1157202155; Thu, 17 Mar 2022 12:40:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236677AbiCQQyM (ORCPT + 99 others); Thu, 17 Mar 2022 12:54:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231928AbiCQQyI (ORCPT ); Thu, 17 Mar 2022 12:54:08 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08A21217956 for ; Thu, 17 Mar 2022 09:52:51 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-2e5a8a8c1cdso56528167b3.3 for ; Thu, 17 Mar 2022 09:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ls5p6VA534Iw1IExTs/u1d7nC2HX+uKuD3TTQdakQZ8=; b=kxUOCJ/fJRZJGrt9ZKe0pYGGy98fNm2IIaEqQPugg5M4QHB5mp6gI566pfVXEUKcQZ TFowxqYFTpQ3SX9MFnyxvlEbSacpeM7JFyAX2EuQe3DvTYOiSvjT1V8TVYJW4QIrKZPc 5MLt2TGnVGftiJLRK/MusjrLz0LvNZp1D+7ULggI5mDZr/AE/MPtiXYuHdcP3i1vF7C0 57rmkqKGKGvkbNzUXlZrij2YmqzbiifaFndxFwhVFh1pyIFx+OAXLpcjFg3s2trEYyY6 rQABZnd4oocMuXAoyWZ5JT5qVjnZM9wQySVkzCzT6iNzKJ/2Chi5NShHQIJitvdUwm/v 7PvQ== 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=Ls5p6VA534Iw1IExTs/u1d7nC2HX+uKuD3TTQdakQZ8=; b=VFjBm9r0rZC/M7nTwDDelg4CfanH2I7hiTBsZTQed+Q+Qp9+5YI8cMuMA9/MfEJdbj RT9k4ch1hMS2+dVh8E85HBBEYOK0wB8ZkUMyZP732d4ilTy/kqgb7ozGts0vHm3MOUHE jDi5t3Mo6g9idJgpVI1c/tTrEQ15pTF8yHZ12q9+2Mus7N3+B0f1FX4reW46DLLx8/cb qTCgM5EJYMqD+9xIyfOcGq3m+qm0zNPsQCfH6xTD9GFKb/2YNxNwLBMkswj3jvFRiQbC aA1XYMqkSpqU6cFU/m3YWbUYzO2jxBO1ErLh3VuqQfjS1Ge7C2x4kXwrhidJbHwWKg8R Z8hQ== X-Gm-Message-State: AOAM531fHtO57tp9Z46j7XjTWN/0m4ocuyznNPJa8PxDBoP/M7duMZS5 zXstDZMU8RyLDPUWdU11UqVTk+z5BneMGrrhPzMYNQ== X-Received: by 2002:a0d:f685:0:b0:2e2:22e6:52d7 with SMTP id g127-20020a0df685000000b002e222e652d7mr7120428ywf.418.1647535970257; Thu, 17 Mar 2022 09:52:50 -0700 (PDT) MIME-Version: 1.0 References: <20220317080504.GC735@xsang-OptiPlex-9020> In-Reply-To: <20220317080504.GC735@xsang-OptiPlex-9020> From: Muchun Song Date: Fri, 18 Mar 2022 00:50:58 +0800 Message-ID: Subject: Re: [mm] f886cdb769: kernel_BUG_at_include/linux/swapops.h To: kernel test robot Cc: Johannes Weiner , Alexander Viro , Alistair Popple , Christoph Hellwig , Dan Williams , Hugh Dickins , Jan Kara , "Kirill A. Shutemov" , Matthew Wilcox , Ralph Campbell , Ross Zwisler , Xiongchun Duan , Xiyu Yang , Yang Shi , Andrew Morton , LKML , lkp@lists.01.org, kernel test robot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Thu, Mar 17, 2022 at 4:05 PM kernel test robot wrote: > > > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: f886cdb76920131b030ffae13e752d8d0ff440f0 ("mm: pvmw: add support for walking devmap pages") > url: https://github.com/0day-ci/linux/commits/Petr-Mladek/kthread-Make-it-clear-that-kthread_create_on_node-might-be-terminated-by-any-fatal-signal/20220315-182614 > > in testcase: will-it-scale > version: will-it-scale-x86_64-a34a85c-1_20220312 > with following parameters: > > nr_task: 100% > mode: process > test: lock1 > cpufreq_governor: performance > ucode: 0x2006c0a > > test-description: Will It Scale takes a testcase and runs it from 1 through to n parallel copies to see if the testcase will scale. It builds both a process and threads based test in order to see any differences between the two. > test-url: https://github.com/antonblanchard/will-it-scale > > > on test machine: 104 threads 2 sockets Skylake with 192G memory > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > > Thanks for your report. I knew the reason. Because pmd_devmap() is only reliable when pmd_present() returns true and pmd_devmap() could returns tue for pmd swap entry. I should test pmd_present() before pmd_devmap(). Will be fixed in the next version. Thanks.