Message ID | cover.1532563124.git.osandov@fb.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 73CE7112E for <patchwork-linux-fsdevel@patchwork.kernel.org>; Thu, 26 Jul 2018 00:00:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 631F72A9D4 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Thu, 26 Jul 2018 00:00:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57B622A9D9; Thu, 26 Jul 2018 00:00:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF4EE2A9D4 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Thu, 26 Jul 2018 00:00:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728369AbeGZBNc (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Wed, 25 Jul 2018 21:13:32 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:40191 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728119AbeGZBNc (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Wed, 25 Jul 2018 21:13:32 -0400 Received: by mail-pl0-f65.google.com with SMTP id s17-v6so3956499plp.7 for <linux-fsdevel@vger.kernel.org>; Wed, 25 Jul 2018 16:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=VSMJxf/6uVfYxcHQaf1S4C5watcXM8cOx6S+2yMNguA=; b=zmZuZPhbUF6K08BI3WE0sSA9HAH4gnvBzaFG/v18k1RkjWlTv2wFRc+Mit8+mUbdtw z+NEKmvhktknQRruec/KAHxE5R1NqEkjMMlkbTxU8TvFcfLrBQKO5VMjj2xBPwboVbgU AKUab7s9AbyAdWhC2S31AlR/xuCYaHmoNQjXTjvNSnCuu6W25rcVaSA9+fa1AXrNx3v6 qGbTATlpKVRZk/EFSLYo1A1If4lbRWh4ty3I5NLVQpBISuk3ZaSJJIshoPh+uFK1ZAOh +lvH0SFn5tEUEksHdM1u82z6nleUGJvKbqzMu/UexTGTzcYjZtAh4i0qyke1B+kaH3v6 XmFg== 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=VSMJxf/6uVfYxcHQaf1S4C5watcXM8cOx6S+2yMNguA=; b=Bn8anNt8zLsl+Q5Y6AUHc/R7BrxNO/pca3hIosbXE2w1+VBYzB4SjeWW6Prxf79ZIj wpMEEtDf/vISlLPYZ7wzZOK/bK8x8ZG0TXFbfCEZgBB9UACyvDbcCUVFe/w7nfi5Zoz1 vAzhMMheUitZmiHipVPjBzWJ83SyIZFsd3juYqglzno5PuKfmjRFafBHiio5BStUJDoS u9OpGqAFteLp+kP89LzR/XUGKSSJvubs/MzLDHOooXg69ONnm3tCvvLuUL9E9C3m8hUN D6CSR+i0HlKZ25BVgUmBCJGs00L+h3CIBP2kHyLKnHVMPU/xy4FkvU2YKiUsvPugCCRh T07A== X-Gm-Message-State: AOUpUlEfSmCfxJarQLCAei90gclfrmrH8ExxhhHcqPnqiXKV++hxXUF4 bW54sHUTlkHopSgxVuwBKFiUqQ== X-Google-Smtp-Source: AAOMgpcjHMeCKBcFB+lgYtKo2RxBnN4601T1Dthk4I//DedqnpYou1OOtsFz01QsRKtpno50O2/3Bg== X-Received: by 2002:a17:902:24e:: with SMTP id 72-v6mr17438952plc.74.1532563167527; Wed, 25 Jul 2018 16:59:27 -0700 (PDT) Received: from vader.thefacebook.com ([2620:10d:c090:180::1:8d38]) by smtp.gmail.com with ESMTPSA id 65-v6sm23188753pfq.81.2018.07.25.16.59.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 16:59:27 -0700 (PDT) From: Omar Sandoval <osandov@osandov.com> To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org> Cc: Alexey Dobriyan <adobriyan@gmail.com>, Eric Biederman <ebiederm@xmission.com>, James Morse <james.morse@arm.com>, Bhupesh Sharma <bhsharma@redhat.com>, kernel-team@fb.com Subject: [PATCH v4 0/9] /proc/kcore improvements Date: Wed, 25 Jul 2018 16:59:11 -0700 Message-Id: <cover.1532563124.git.osandov@fb.com> X-Mailer: git-send-email 2.18.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
/proc/kcore improvements
|
expand
|
From: Omar Sandoval <osandov@fb.com> Hi, This series makes a few improvements to /proc/kcore. It fixes a couple of small issues in v3 but is otherwise the same. Patches 1, 2, and 3 are prep patches. Patch 4 is a fix/cleanup. Patch 5 is another prep patch. Patches 6 and 7 are optimizations to ->read(). Patch 8 makes it possible to enable CRASH_CORE on any architecture, which is needed for patch 9. Patch 9 adds vmcoreinfo to /proc/kcore. Based on v4.18-rc6 + James' patch in the mm tree, and tested with crash and readelf. Thanks! Changes from v3: - Fixes a mixed up up_write() instead of up_read() in patch 5 reported by Tetsuo Handa - Added patch 8 to fix a build failure reported by Stephen Rothwell Changes from v2: - Add __init to kclist_add() as per Andrew - Got rid of conversion of kcore_need_update from int to atomic_t and just used xchg() instead of atomic_cmpxchg() (split out into a new patch instead of combining it with the rwlock -> rwsem conversion) - Add comment about the increase in file size to patch 8 Changes from v1: - Rebased onto v4.18-rc4 + James' patch (https://patchwork.kernel.org/patch/10519739/) in the mm tree - Fix spurious sparse warning (see the report and response in https://patchwork.kernel.org/patch/10512431/) Omar Sandoval (9): proc/kcore: don't grab lock for kclist_add() proc/kcore: don't grab lock for memory hotplug notifier proc/kcore: replace kclist_lock rwlock with rwsem proc/kcore: fix memory hotplug vs multiple opens race proc/kcore: hold lock during read proc/kcore: clean up ELF header generation proc/kcore: optimize multiple page reads crash_core: use VMCOREINFO_SYMBOL_ARRAY() for swapper_pg_dir proc/kcore: add vmcoreinfo note to /proc/kcore fs/proc/Kconfig | 1 + fs/proc/kcore.c | 534 +++++++++++++++++-------------------- include/linux/crash_core.h | 2 + include/linux/kcore.h | 2 +- kernel/crash_core.c | 6 +- 5 files changed, 252 insertions(+), 293 deletions(-)