Message ID | 1593641660-13254-1-git-send-email-bhsharma@redhat.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=IaD5=AM=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 69FE792A for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 1 Jul 2020 22:17:55 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 42E0320853 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 1 Jul 2020 22:17:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GGdae2y9"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GwrgqCjo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42E0320853 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=tqKtVYhqiV6d6u5+5mS3l1ixBIp2VJ7asyKPQ5l1HWE=; b=GGdae2y9NVMY/RF1N0on7LwzK4 9nwHCSmUun55LEJE4GN34VgLFFrM+edQAUFj5IAOq3PU2w2RIMjLDBAILN/EQdKmX9JolGV4n3Upt D03NghVT24UzicXTYfHZffe5ZcTL3IGP+aqrL0fOrJbmzUI/vp+TunRe1h5tyk7TkQFXCcAviB30a 0MtSXobXEyxSA6SJeQS1FzPjr9ste2vb4fRm2p5fpbbV8UbvYMe5+mYpv4HAc1RRbSKo5YRcfZwFa cYjFkCrmH4CPtNWPMTmBniulLT20vE953LXVKymMMHwapvjO/DHp9laTRGB2INRS+36xO1gUwrq5O rJ2uBxVA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jql1l-00023f-6r; Wed, 01 Jul 2020 22:16:25 +0000 Received: from us-smtp-2.mimecast.com ([205.139.110.61] helo=us-smtp-delivery-1.mimecast.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jql1g-00021k-D3 for linux-arm-kernel@lists.infradead.org; Wed, 01 Jul 2020 22:16:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593641779; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type; bh=glPotn+K1T613CjdKByq3iS5Ne25OlUyrCXDnz2IEJI=; b=GwrgqCjoGhZrtzxFMlB5x6q5Uj0JoZ1P07w4Xj4Sy8ncxr360IaPHTB0wVw40CYfTasg34 WqWGb1v74BzTc+fzjobKhwZ0K4cf0oVcQqtloFZ8Af3EHRWIsacRzRKiQceFvFlXhdOKEm zoBVaea1Qf9HP/8qSyA2mc7Sm6ZAVMQ= Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-67-QqQoPlLbPLu4Buw9pJcXhQ-1; Wed, 01 Jul 2020 18:14:43 -0400 X-MC-Unique: QqQoPlLbPLu4Buw9pJcXhQ-1 Received: by mail-pg1-f197.google.com with SMTP id s8so1281692pgs.9 for <linux-arm-kernel@lists.infradead.org>; Wed, 01 Jul 2020 15:14:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=glPotn+K1T613CjdKByq3iS5Ne25OlUyrCXDnz2IEJI=; b=eHq0j/C228EX2z6Gebz73xE+b/K5Y6+IodtYcMYC1es783tdSj1eMRlPBR/6tMXfYE LDT9pzPDUH6Vjj+tTZ+HPo2wmeAeJEunww8jwl4N8JmFKEkMcc7d7eMqzKt04seDV7W6 9ypZdC9G0Xx7C5ojX2IYehpQ11BUtuicepR6CEPvwI9YKSa+NPtuUDvJhzJlFygWFXdV f7zSzSrWBkCnz80V2v+LPxwm7PUqH1wlgyzrZ0n6qCo1M8MMN9ki0D/JLo6IQvZ3nrRq n0s2szhIjiUOv8k/dDAR/KrjWShAU3Vbsy9SoMYAzNlajkUl3d0UCjTralK1uKtLg0/5 k5zQ== X-Gm-Message-State: AOAM532oSb6mxOmhEzl2dpuYe/LgFuO05DNA1lB4Dc7AjDl/ThbJfjFC OBDn2gOjPYRc9QQLzjw63Ljz3HZZma8toUKzV+D/afasWSVnCCGu1+DjF5Q7m4cuFfmWI7h+cT+ tSZvfIQq7uTlAB+5YQuMMDzhAcWeB1RVxFuo= X-Received: by 2002:a17:90a:c295:: with SMTP id f21mr17700634pjt.208.1593641681967; Wed, 01 Jul 2020 15:14:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPvPqACXXwd/bD0e/FXP/qE7VfvMYJ9AYKG238E3SOIkFKDcqV3tvp0NbqgZNbAots/y7ygA== X-Received: by 2002:a17:90a:c295:: with SMTP id f21mr17700609pjt.208.1593641681705; Wed, 01 Jul 2020 15:14:41 -0700 (PDT) Received: from localhost ([110.227.183.4]) by smtp.gmail.com with ESMTPSA id i196sm6902130pgc.55.2020.07.01.15.14.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2020 15:14:41 -0700 (PDT) From: Bhupesh Sharma <bhsharma@redhat.com> To: cgroups@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/2] arm64/kdump: Fix OOPS and OOM issues in kdump kernel Date: Thu, 2 Jul 2020 03:44:18 +0530 Message-Id: <1593641660-13254-1-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=bhsharma@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200701_181620_547304_007F6504 X-CRM114-Status: GOOD ( 12.18 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [205.139.110.61 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [205.139.110.61 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, bhsharma@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Hocko <mhocko@kernel.org>, James Morse <james.morse@arm.com>, Vladimir Davydov <vdavydov.dev@gmail.com>, Johannes Weiner <hannes@cmpxchg.org>, bhupesh.linux@gmail.com, Will Deacon <will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
arm64/kdump: Fix OOPS and OOM issues in kdump kernel
|
expand
|
Prabhakar recently reported a kdump kernel boot failure on ThunderX2 arm64 plaforms (which I was able to reproduce on ampere arm64 machines as well), (see [1]), which is seen when a corner case is hit on some arm64 boards when kdump kernel runs with "cgroup_disable=memory" passed to the kdump kernel (via bootargs) and the crashkernel was originally allocated from either a ZONE_DMA32 memory or mixture of memory chunks belonging to both ZONE_DMA and ZONE_DMA32 regions. While [PATCH 1/2] fixes the OOPS inside mem_cgroup_get_nr_swap_pages() function, [PATCH 2/2] fixes the OOM seen inside the kdump kernel by allocating the crashkernel inside ZONE_DMA region only. [1]. https://marc.info/?l=kexec&m=158954035710703&w=4 Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Vladimir Davydov <vdavydov.dev@gmail.com> Cc: James Morse <james.morse@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: cgroups@vger.kernel.org Cc: linux-mm@kvack.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: kexec@lists.infradead.org Reported-by: Prabhakar Kushwaha <pkushwaha@marvell.com> Signed-off-by: Bhupesh Sharma <bhsharma@redhat.com> Bhupesh Sharma (2): mm/memcontrol: Fix OOPS inside mem_cgroup_get_nr_swap_pages() arm64: Allocate crashkernel always in ZONE_DMA arch/arm64/mm/init.c | 16 ++++++++++++++-- mm/memcontrol.c | 9 ++++++++- 2 files changed, 22 insertions(+), 3 deletions(-)