Message ID | YxDyZLfBdFHK1Y1P@bfoster (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 0BB42ECAAD3 for <linux-mm@archiver.kernel.org>; Thu, 1 Sep 2022 17:56:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 95E6680038; Thu, 1 Sep 2022 13:56:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 90DB98000D; Thu, 1 Sep 2022 13:56:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7D5F280038; Thu, 1 Sep 2022 13:56:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 712B28000D for <linux-mm@kvack.org>; Thu, 1 Sep 2022 13:56:58 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 49322AAA71 for <linux-mm@kvack.org>; Thu, 1 Sep 2022 17:56:58 +0000 (UTC) X-FDA: 79864272516.07.A0C9E6B Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf31.hostedemail.com (Postfix) with ESMTP id DE9C720057 for <linux-mm@kvack.org>; Thu, 1 Sep 2022 17:56:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662055017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=fnQitAajMTUQGbQt1ES06rzCtlDP/HCEkKiJfG4MWrk=; b=OrfhbfFxLvmm3Zj5KCVw+lJIBSnwPXxw/maQvgREDFtxHk60ovcbJ1E5rb3kLBbYnA2kZ+ fC6RVH1bI+YUG8Rnwtvzm/9XEr8CgBNulMEkzTjaaXX0amDm1W0kBSM7o80UNk5LcMPrS3 mz849fn92LuDAuXIXbwf636JYY59NV0= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-609-WnhkIXhmOfijTgqbEaLQwg-1; Thu, 01 Sep 2022 13:56:56 -0400 X-MC-Unique: WnhkIXhmOfijTgqbEaLQwg-1 Received: by mail-qt1-f198.google.com with SMTP id z6-20020ac875c6000000b0034454b14c91so14288427qtq.15 for <linux-mm@kvack.org>; Thu, 01 Sep 2022 10:56:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=fnQitAajMTUQGbQt1ES06rzCtlDP/HCEkKiJfG4MWrk=; b=CK3o/5FirjxQncHm84jmwzq7M6OFDmpiXytOW6knNlyl4DacpzrS4E1un5NONtZOpd kzyFRzP7FOm61okaEuLdRAUveo49IW9E5fixualHIh80Eqz0IX0yxJNHUjiVy/VCZh0T q3h9IvkfVjuUKL39GY6A/c0yVyyMbPNYCeb02mRTRRnjB5wtiMMDR+IxXZIDol8m5k8N qI7GTWMdGe73My9jRl/wmXMbM+LN8muN2kX7Ehj+aoq7bKBPFZasLxURrkfbmnTILK11 RinPNheSoDtGjNYBdUts27rH8BIhL09xzojLZU8jGi4Tw9VgsrSBUWymwXuwJgLLH+S2 rzsA== X-Gm-Message-State: ACgBeo0sHTrlXpW5ONnpkWSfC6Wfh72UqdFel7OuEblOBE9zZmseQGTY l7ysJVQc1oC9mHWRAkaJl3cfKUNNT6khdc9NxU7Egx/upsnIt8zItHeP9aVX09pXp4MYYWog0BJ +MNdSqzweI9maoBGODUmPqJTxP0ieGfrtQdPx0vhk9TRztRRmUdhUr8KMqkIvEQ== X-Received: by 2002:a05:620a:2681:b0:6b5:b613:cbe with SMTP id c1-20020a05620a268100b006b5b6130cbemr20152969qkp.341.1662055015440; Thu, 01 Sep 2022 10:56:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ZK4bdxOL0hHQBK4EQfKfldNk+sY0PsAQW9fCHvdjjXABJPmb7frlq5drlh0i2a1Rv3fTw8g== X-Received: by 2002:a05:620a:2681:b0:6b5:b613:cbe with SMTP id c1-20020a05620a268100b006b5b6130cbemr20152951qkp.341.1662055015005; Thu, 01 Sep 2022 10:56:55 -0700 (PDT) Received: from bfoster (c-24-61-119-116.hsd1.ma.comcast.net. [24.61.119.116]) by smtp.gmail.com with ESMTPSA id bl8-20020a05620a1a8800b006bbdcb3fff7sm11687951qkb.69.2022.09.01.10.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 10:56:54 -0700 (PDT) Date: Thu, 1 Sep 2022 13:56:52 -0400 From: Brian Foster <bfoster@redhat.com> To: linux-mm@kvack.org Cc: Matthew Wilcox <willy@infradead.org> Subject: hugepage/swap: kernel BUG at mm/swap_state.c:154! Message-ID: <YxDyZLfBdFHK1Y1P@bfoster> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662055017; a=rsa-sha256; cv=none; b=5mGMqGR0sFwLNE/fd+jtSvEpIUR/O7BAltTH4f59+HgRye025Q6Sx5u8cbWWocA3p/RY5c x3C7hAKOIKtmi80eY3p0QEJhIQZNH/4MLdJm51d0KbuvKmUWsr+6iB2yWUeoBsAmSOH2cl SiT8OvpWk/1UhgjjL0JCdOS/CZtuF8g= ARC-Authentication-Results: i=1; imf31.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=OrfhbfFx; spf=pass (imf31.hostedemail.com: domain of bfoster@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bfoster@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662055017; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=fnQitAajMTUQGbQt1ES06rzCtlDP/HCEkKiJfG4MWrk=; b=iRjCgpdjIaMw54mFW8KyfcdZt0GQpN/c2U54S9hW8iNj1Wvun3PKHDKXYqMeu/o2xLUaeA qe5aQz2VQf9eU8h7Cebz6M7VUCGOOOkZPAEiB33TPltE+7fpPFG3wMoNFD4mE+s2FUkp8d AKKe7ny83qiGCLHoon2b/RJXqCaglOY= X-Stat-Signature: ja57u9yswf9u3aeb3pjtgohmap1cdzo5 X-Rspam-User: X-Rspamd-Queue-Id: DE9C720057 X-Rspamd-Server: rspam07 Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=OrfhbfFx; spf=pass (imf31.hostedemail.com: domain of bfoster@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bfoster@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-HE-Tag: 1662055017-194412 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: <linux-mm.kvack.org> |
Series |
hugepage/swap: kernel BUG at mm/swap_state.c:154!
|
expand
|
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index e9414ee57c5b..c2ddbb81a743 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -2445,7 +2445,8 @@ static void __split_huge_page_tail(struct page *head, int tail, page_tail); page_tail->mapping = head->mapping; page_tail->index = head->index + tail; - page_tail->private = 0; + if (!PageSwapCache(page_tail)) + page_tail->private = 0; /* Page flags must be visible before we make the page non-compound. */ smp_wmb();