Message ID | 20230206084020.174506-5-bhe@redhat.com (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 12626C61DA4 for <linux-mm@archiver.kernel.org>; Mon, 6 Feb 2023 08:40:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A81A26B0072; Mon, 6 Feb 2023 03:40:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A0AE06B0075; Mon, 6 Feb 2023 03:40:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8ABAD6B0078; Mon, 6 Feb 2023 03:40:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 7D1D16B0072 for <linux-mm@kvack.org>; Mon, 6 Feb 2023 03:40:52 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4B44AAB0D8 for <linux-mm@kvack.org>; Mon, 6 Feb 2023 08:40:52 +0000 (UTC) X-FDA: 80436221544.18.D3A03D3 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf27.hostedemail.com (Postfix) with ESMTP id 78E984000C for <linux-mm@kvack.org>; Mon, 6 Feb 2023 08:40:50 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=SBnRwipB; spf=pass (imf27.hostedemail.com: domain of bhe@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1675672850; a=rsa-sha256; cv=none; b=CBFSPVhybWLqEpt5MzGBRZLhXLx9BG2Q3g8eDDd3cIed3U/j8V/F/G30/HGOKaFgBpEW5+ 47qT5rjlQAsu8J1U1fAdj/K1iS4ovXymXFjmcqUaJKukz/nVJIYVfRAZdFaQb9Of2yaII4 3d7KmnFZ7yIaFd9CzGFnZV2TwMnUhNM= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=SBnRwipB; spf=pass (imf27.hostedemail.com: domain of bhe@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=bhe@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=1675672850; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=sogBXQhtIR7vZucKmKsbqW5MbruC+cj6YTx4qBV1xD0=; b=QLWRtwQamuQvyHWhpYH+c/788+KLx3iRLETG/eHtNLnUtH7nkvUOeAkHmmnCrKFIgOIBN7 p1XQVgS1XMWEeyZbw27CzQVaLLqdJ4u3M1H9aEj0ly0zc9VfqApx9ngT4l7dryS/2o9ciT WBpojT8pWWhZZ2geaHUpmrZ5fvykLZc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675672849; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sogBXQhtIR7vZucKmKsbqW5MbruC+cj6YTx4qBV1xD0=; b=SBnRwipBMGSBwZ4qJCCTBAkSWR9fICktvVn8EpJOnR/Cn3FMsN2xBLAH7RF/9FeCrvVSzg G33yuqH04uXQ2uKCTYLIzH40Az5tYskmASczj+cGVGkYKTH5U2btiREgMeuW3pI5BGGDGV 7eFtDyvRFgh7c984aZUevYiS+NwZQGU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-608-T_gvIW3LMJm5jXCXZZ71cw-1; Mon, 06 Feb 2023 03:40:47 -0500 X-MC-Unique: T_gvIW3LMJm5jXCXZZ71cw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 28E7D80D0ED; Mon, 6 Feb 2023 08:40:47 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-71.pek2.redhat.com [10.72.12.71]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0267E2166B2A; Mon, 6 Feb 2023 08:40:42 +0000 (UTC) From: Baoquan He <bhe@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, stephen.s.brennan@oracle.com, urezki@gmail.com, lstoakes@gmail.com, error27@gmail.com, Baoquan He <bhe@redhat.com> Subject: [PATCH v5 4/7] mm/vmalloc: explicitly identify vm_map_ram area when shown in /proc/vmcoreinfo Date: Mon, 6 Feb 2023 16:40:17 +0800 Message-Id: <20230206084020.174506-5-bhe@redhat.com> In-Reply-To: <20230206084020.174506-1-bhe@redhat.com> References: <20230206084020.174506-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Rspam-User: X-Rspamd-Queue-Id: 78E984000C X-Rspamd-Server: rspam01 X-Stat-Signature: isho91bw7ffnf8fux33oyma74t5isteh X-HE-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XMJplrlAcZUgpflHjNzqt8NoE2fo5o7m7WftEJmUTAV9T/TUCN6mhYwq3dG7ZTvmm9+8ZztyqF9DafxZVmUJtphtMFudcIhQaBwVRUGDF7XWbhlJFdufOVSiIIkXvX5teLUiExrLpYSuhctGDI2VzwV1i/lDjVzktZNBzjY2VEB2cSMa9vwwPGus6Pj+O 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 |
mm/vmalloc.c: allow vread() to read out vm_map_ram areas
|
expand
|
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 4bb78ebd70f6..dea76e73e57c 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -4233,14 +4233,11 @@ static int s_show(struct seq_file *m, void *p) va = list_entry(p, struct vmap_area, list); - /* - * s_show can encounter race with remove_vm_area, !vm on behalf - * of vmap area is being tear down or vm_map_ram allocation. - */ if (!va->vm) { - seq_printf(m, "0x%pK-0x%pK %7ld vm_map_ram\n", - (void *)va->va_start, (void *)va->va_end, - va->va_end - va->va_start); + if (va->flags & VMAP_RAM) + seq_printf(m, "0x%pK-0x%pK %7ld vm_map_ram\n", + (void *)va->va_start, (void *)va->va_end, + va->va_end - va->va_start); goto final; }