From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD577C433F5 for ; Tue, 30 Nov 2021 19:26:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E22E66B0072; Tue, 30 Nov 2021 14:25:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DD2746B0073; Tue, 30 Nov 2021 14:25:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C74816B0075; Tue, 30 Nov 2021 14:25:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0124.hostedemail.com [216.40.44.124]) by kanga.kvack.org (Postfix) with ESMTP id B584D6B0072 for ; Tue, 30 Nov 2021 14:25:57 -0500 (EST) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 7155918047608 for ; Tue, 30 Nov 2021 19:25:47 +0000 (UTC) X-FDA: 78866576292.11.32B3488 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by imf21.hostedemail.com (Postfix) with ESMTP id C463BD0369D7 for ; Tue, 30 Nov 2021 19:25:43 +0000 (UTC) Received: by mail-ed1-f49.google.com with SMTP id z5so26094742edd.3 for ; Tue, 30 Nov 2021 11:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mUe1etHTeAh3A2xC3mRSG89zpXC1bCrhy9fylkJ/lXk=; b=l7SSwJJsh3Dg1tolC6JDaZE65vqBeF+DWW4JEX7SK8u/Bc5JOX45lyYGuxXNt4ohmt dzLJRk/olbLvNfAQAuAaisTAxYTL4LSzmKlMzxpWU3KQMq+cWhyVPpQ0aR/x+V0GF9F+ D1dTINT6K6t9wQL4kIUh7i4XMhHNMubDqTsYP+/nmsYJ3GUryuRtov5FeXoBhCCjbYMe YlGIFHCLGRvsejevuXFXpcGY/Ij9cn8Q+cGhIsaCcu6Y8gAqEsZS5FRxoKBVtoqZ6JgB hxmNrIdNUtvqmi2U+QHr6lsXfqQuJDHMS6WValSK1DBjBemRLAvx6QNEeB35xWNZaIid snkw== 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=mUe1etHTeAh3A2xC3mRSG89zpXC1bCrhy9fylkJ/lXk=; b=fpAU2Tk03ecYKjLUx4Vg9wB1f1YBtmD0ULBsZ3qKWSISbKRh38qH1EPMdkJsbpTsH7 ZiEIZf53RfSYLTOqQp6RQz4DFMeANHoDVyWWPYTrYztWY1o0diaUcylPwePrG1xdQK2t s2+ac/fOjjo+nEJTybZnjNAYoDDLzY8MMYPFyiOV6Rc9TbB6nTM1rK2L0volovvOcl9x eot4zndyu2/d6i5LkdoWlzv4eE9eGl/KKZJ9ZeBulCHKSiE/ebIEQq8zspUqo+w7V8dN ZVuB+0Jq2ca9Dy9+066obSAgbX7M+uxePQHZvpKkVDubsVlRZdQ09D1hAQHxwq1K4XIG t0Zg== X-Gm-Message-State: AOAM532W1zHB/xKRtA0PpOL5c+hcq4tXmzqzgHBTR7mbPLgM/Obr3z+t GgzAWVhqKs/XKwP74OQw/z0YbyHDjW3L2xC9kIrFCg== X-Google-Smtp-Source: ABdhPJxTaOkNeqHy63NuVfX5HVhSVZk5X1GCRN36lztXyJE++faH21KWi2lLIRlKAgTyh5rggcRNpmE6mEV6Y+GzSlA= X-Received: by 2002:a17:906:2b12:: with SMTP id a18mr1206115ejg.254.1638300345509; Tue, 30 Nov 2021 11:25:45 -0800 (PST) MIME-Version: 1.0 References: <20211123214814.3756047-1-pasha.tatashin@soleen.com> <20211123214814.3756047-3-pasha.tatashin@soleen.com> <6d82e674-76dc-f3b0-2e53-a92eeb249eff@gmail.com> <7d339956-27fb-4eb6-bd73-791807ddef56@gmail.com> <9e0014e8-e251-360c-ad82-334ad0f28303@gmail.com> In-Reply-To: From: Pasha Tatashin Date: Tue, 30 Nov 2021 14:25:09 -0500 Message-ID: Subject: Re: [PATCH 2/3] mm: page table check To: Fusion Future Cc: LKML , linux-mm , Linux Doc Mailing List , Andrew Morton , David Rientjes , Paul Turner , weixugc@google.com, Greg Thelen , Ingo Molnar , Jonathan Corbet , Will Deacon , Mike Rapoport , Kees Cook , Thomas Gleixner , Peter Zijlstra , masahiroy@kernel.org, Sami Tolvanen , Dave Hansen , "maintainer:X86 ARCHITECTURE" , frederic@kernel.org, "H. Peter Anvin" , "Aneesh Kumar K.V" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: C463BD0369D7 Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=soleen.com header.s=google header.b=l7SSwJJs; dmarc=none; spf=pass (imf21.hostedemail.com: domain of pasha.tatashin@soleen.com designates 209.85.208.49 as permitted sender) smtp.mailfrom=pasha.tatashin@soleen.com X-Stat-Signature: e6ug9rkxcipmtnbpfe9o1machbiwb7xg X-HE-Tag: 1638300343-201814 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, Nov 28, 2021 at 9:57 PM Fusion Future wrote: > > On 2021/11/29 00:57, Pasha Tatashin wrote: > > This commit by itself would not cause the freeze or BUG_ON(), but the > > next commit which enables it on x86 arch might. > > Yes, you are right. At the commit > "[1e67abff1820489435aad3fcf258708c21c283ef] x86: mm: add x86_64 support > for page table check" my system starts to experience the freeze. > > I can now reproduce the freeze by following the steps below: > > 1. Open 20 YouTube video pages, and a YouTube Music page. > 2. Play music in the background. (The step can be omitted) > 3. Run `git clone > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git ln` Thanks, I found a reliable way to reproduce this problem on my workstation: reduce the amount of physical memory to 4G via memmap kernel parameter, and use a script that starts chrome browser with 20 tabs each pointing to a youtube.com page. I will send an update after root cause. > git will never successfully clone the repo because the system will > freeze during the operation. > > I also tried adding `page_table_check=off` to the boot option but still I will add support for page_table_check=off even when CONFIG_PAGE_TABLE_CHECK_ENFORCED is set Thanks, Pasha