Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2419523imj; Mon, 18 Feb 2019 05:47:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IaOgRSCMNMCxjy9WXdBPQmDpVYlaYLVTkUWqwktrrgQbZIHRbosVxGndqodKXuyDWB9TcaP X-Received: by 2002:a17:902:22f:: with SMTP id 44mr25425950plc.137.1550497635521; Mon, 18 Feb 2019 05:47:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550497635; cv=none; d=google.com; s=arc-20160816; b=RUs/Xz0eiA3hfFyIjZ6010+9fm8Lgq8G0gM1Y7jXdgkVvSqP+aV9FvRPq56pe2pWYO rZtdT5Q+P8kHWPitF0MAJwFAbaw+Adelt5fBJTz0cno65rbHpJE3gCcmSH1G2mYwQrnF F6kTiWHCBx+t/xvrHDCQvzqhOeP0n5UYuLe3heM0rJv6zIAsMpfvJ8N5sTYMrXJ2fmDw k2Hs5T63lbS8lhF2A5hUodiHNHqKg5iee1dYHvSyCfOhCZHMVU8ACDDyafV/+aW3ZT5f SNEcvrKYWL7qQ13rnDd1x7/iBgPKAThdH0mWKvE/GlGysKr4/N/3/9NgCQGl8CK4s4nR fSyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wFz5T/gKS4sQKCfoA+LnrdX7HOe7jBqNz1iE1oIU+e8=; b=hZ/ZthC3co+26o5hIseWP/pbITV6cwyQSMIhYJXJlDI8ZOg5hJbruVe4CEhDdBxTqS pgcINBM5gH6+XprIpj9u9FwBOKtWPKGlmWQVcwQBb+yseJaPhOZxqMoMVa/u+jCtmiMM 3buDBT+5GfEnxlBfv5hYruyHf1swBl/MNvxkOEKas++HGNq+tyhHxHAgxp4Pmza0kRdK RA1WHPyt/kMLdLCxBNscGZVcBCmgIA6Em9K0JdG3vm/oOTyqTalA1+go2+OF5xm/yEZ2 abmv5Qdyq3ChjDSHiOIla49Z2aTxjNn55/k5CrVKTocPLROWYGAygnlhJfjPJcJDYFjz HYdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bofh-nu.20150623.gappssmtp.com header.s=20150623 header.b=drdfA6Ux; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si13307504pgi.443.2019.02.18.05.46.59; Mon, 18 Feb 2019 05:47:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bofh-nu.20150623.gappssmtp.com header.s=20150623 header.b=drdfA6Ux; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730167AbfBRNoM (ORCPT + 99 others); Mon, 18 Feb 2019 08:44:12 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:42400 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbfBRNoL (ORCPT ); Mon, 18 Feb 2019 08:44:11 -0500 Received: by mail-ot1-f67.google.com with SMTP id i5so28252708oto.9 for ; Mon, 18 Feb 2019 05:44:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bofh-nu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wFz5T/gKS4sQKCfoA+LnrdX7HOe7jBqNz1iE1oIU+e8=; b=drdfA6UxeMOkGPRrukDac0Pfot+RfjI7X4llH+DqvnrjuMY14f/nJfGe9lu88QsPA/ ZG+V3FrYSD0bDqmCdl24m/ZWWYDoA8rp728t/jWwPlfuS1GTSCKeidWlo71ssgQE47iL PyKI7cSnwttBv0anKgfK/L5qrEGekLuWaV3xKcgGv89ZcatVbOQzWTF6QNJU/4+vqlxb O/3Tq4j8ZHvn4VTXW7JRzwh54XLEo4u5JwT6MXn4ZfgH3jH8ch+uDCje+Fxe2Q1OR5+d sGz9crjI6+erc0Q9MNo0UseeJgH+u4Y8TnhOL5l7m1g9FRAnZr7PmPvs6//v8lcxwust sTgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wFz5T/gKS4sQKCfoA+LnrdX7HOe7jBqNz1iE1oIU+e8=; b=IIkzohsr2Qa0gMpIQ7zkW/4DdcLRdROUAeMd0ZDEJIV6vb4t6DixvWzAzL91ZWCc2d VV5cxr3Jo0NGpXia/OkuwHCKlCYcsqATPMbYhORsfd5udHc5VRuLjotEAB/6agLRAEgz O8tWdgPgFNfezYFwArtZ0N3v7+KNBRkyhQ6LX9VlRFLBTftpSAOHSxDBMiEbl3ZeX0ov tFthAII05jwSkJrchisIvk0DhqwAMiSIFg7JHLFGMu1f+Am+2WwLa7rZV/EEfCmdUo4J CO/KNUpJh8TT4OwHptFbygaL4QSaAAp784FoHpD2Hs68wqXmneeFYCb4uAbzwGljXIHU G2NQ== X-Gm-Message-State: AHQUAuZY9Yj5smiAS9qeTdOXRoEmmYVFbX282ExkNm38ZsGmS+uf1Kj9 Wl1tGp0G4vcTMpzuNMvrZnjM/1v5S4mVWQmGYtJXLA== X-Received: by 2002:aca:fd4c:: with SMTP id b73mr14874883oii.33.1550497449575; Mon, 18 Feb 2019 05:44:09 -0800 (PST) MIME-Version: 1.0 References: <997509746.100933786.1549350874925.JavaMail.zimbra@redhat.com> In-Reply-To: <997509746.100933786.1549350874925.JavaMail.zimbra@redhat.com> From: Lars Persson Date: Mon, 18 Feb 2019 14:43:58 +0100 Message-ID: Subject: Re: [PATCH v2] mm: page_mapped: don't assume compound page is huge or THP To: Jan Stancek Cc: linux-mm@kvack.org, lersek@redhat.com, alex williamson , aarcange@redhat.com, rientjes@google.com, kirill@shutemov.name, mgorman@techsingularity.net, mhocko@suse.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 5, 2019 at 8:14 AM Jan Stancek wrote: > Hi, > > are you using THP (CONFIG_TRANSPARENT_HUGEPAGE)? > > The changed line should affect only THP and normal compound pages, > so a test with THP disabled might be interesting. > > > > > The breakage consists of random processes dying with SIGILL or SIGSEGV > > when we stress test the system with high memory pressure and explicit > > memory compaction requested through /proc/sys/vm/compact_memory. > > Reverting this patch fixes the crashes. > > > > We can put some effort on debugging if there are no obvious > > explanations for this. Keep in mind that this is 32-bit system with > > HIGHMEM. > > Nothing obvious that I can see. I've been trying to reproduce on > 32-bit x86 Fedora with no luck so far. > Hi Thanks for looking in to it. After some deep dive in MM code, I think it is safe to say this patch was innocent. All traces studied so far points to a missing cache coherency call in mm/migrate.c:migrate_page that is needed only for those evil MIPSes that lack I/D cache coherency. I will send a write-up to linux-mips about this. Basically for a non-mapped page it does only a copy of page data and metadata but no flush_dcache_page() call will be done. This races with subsequent use of the page. BR, Lars