Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1814101ybk; Thu, 21 May 2020 16:16:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4PoH4L97E39+XZxqe5FcXt7KXgLorCoqi+A8wAeXuhYivSMvRCBeEvGjgdafhnoSVuPDP X-Received: by 2002:a17:906:dbc9:: with SMTP id yc9mr5940776ejb.157.1590102963806; Thu, 21 May 2020 16:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590102963; cv=none; d=google.com; s=arc-20160816; b=N6LrsJwp8DIROQEs7nUkXVdmhbDXdZM+70KvTWYaKAQAyW7u2W80LjEC/HlYoBiGvK OQ91Dnv+188cKs51iAHlWqDPWlaajuTXidMZW5JdGHo7PbMnm2oTCRCAXNwMFmdDEKsE YO3ziMVy91nC0hGOqsfhXfoxUEwi6azOglc7CGVuiZuVxFr9SIUsZvADEMLFCEmLPdva R5oEWMDBb4uWh8WZTZ/JcBB8zvvJbpf6uTSPS9MBaePrAOsA1A8kKAqdGW6uydU23mfE a2fmKI40i1esgGyZM7dosExy0OLUSekKrvpeLJTX0tfcJ+zV8NYbU8wVSy7rqJfQXmdD D6vQ== 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=prum5QcrbZCO0F65OHvFGChvc11UJdGytJaiM86CTfc=; b=vfKBHszvOKREywIYpkwESnbSmkd7VuX8Sfe9crpN8dvn0sP5jJhc59nwgoJXsu7iM1 AD3RK8ZGmz9/9OObD/zxkVMqMG+c+UhSeVRj0r8tIESLxA6PwtevMM2IVhWegMZcW5Nk NpPveGyyyNe1RzK436YuEWAiVzkz9922dd268tIzBI9yWmOqvo2fYnvv96W7K7PNrvke O4HAOmOKA8dBtDypoeqXtyNKXVWyuoDzc+5/EV5fb9CMByVY4ifOcMOW97JG7VeFt6Nt E+qC3ADvychwllD707pnPQCuQQSiPm71CJJ/paLl1+m0HNJRVRCh4JD4JJAj0PEaR+X/ GVjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=EJO8Lmra; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si4294249edm.54.2020.05.21.16.15.39; Thu, 21 May 2020 16:16:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=EJO8Lmra; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730756AbgEUXOD (ORCPT + 99 others); Thu, 21 May 2020 19:14:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730748AbgEUXOC (ORCPT ); Thu, 21 May 2020 19:14:02 -0400 Received: from mail-yb1-xb44.google.com (mail-yb1-xb44.google.com [IPv6:2607:f8b0:4864:20::b44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B089C05BD43 for ; Thu, 21 May 2020 16:14:01 -0700 (PDT) Received: by mail-yb1-xb44.google.com with SMTP id l67so44005ybl.4 for ; Thu, 21 May 2020 16:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=prum5QcrbZCO0F65OHvFGChvc11UJdGytJaiM86CTfc=; b=EJO8LmragjkCPmJ41c+po3zpR8kk9FxzpYkfolWjsWm/p7Z1mDP1PIVanxntgtIjlu IIEJgNn+vOewvEKC794pIXsbPqh8K8K8K/z05EU22q84qbvWwXurP8L8pN2CTB1Lxn07 wllQh86f2e/faYICaeOC4O1GSbyjHy6ie2HEZ5z7EIzd2FayPfgAoow1OdWChmponEJE qvX2TW9MTEBvPOGdbNguA6cGVH2G2Atn7Kta5orCn1jcJQ4/e2CD17+qZZDgy5e7Zgt7 TvRbB7OI5BqzzfXt6+2b29plh5CGUZ4d80DMgmw4moH55QZMIUJEtiP0CnYYwk4t5Sck CiRw== 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=prum5QcrbZCO0F65OHvFGChvc11UJdGytJaiM86CTfc=; b=EMnqCX6Ieyc1D3Y6zxILs1WPxx857Q/0tsU7KxNYq9I4JdDTkxk1WhaXY5IMBX67Ey Im3kLWeQTkU2krKOuCM7PeP9ZlG4p3mjtVrE09y88oIZPxJQolMKE+iUE9/ADkmlmIuJ ev2Fv2j/bZq5Ki2AWT15q2GuFVGiqeVHKUFS7arh7M1fAzb6Hv8k+r/AZ/4rJDcW7dvp 0HHuXXOadOG7FTU7FlMJKgHKbC42XI2lsFU/dGe0620pWBWxI7qX4N+TSpHAsYoTATp0 s/TjFsdy9NCA4kEXEhIWu+R5E2N2JO7w3lTG9C8SJFGF2dHQiqbN98yLxPO4VIPza4Jk fgrA== X-Gm-Message-State: AOAM532Qa23/FZWfPmFvKT8I1Sn5LzsZzT/vz6pY8y480n+ZEOcwpHUE XsFtlwagtmdB0/TXEWKUDENuArKFu5pnLppmkVyopg== X-Received: by 2002:a25:bb42:: with SMTP id b2mr18715117ybk.383.1590102840392; Thu, 21 May 2020 16:14:00 -0700 (PDT) MIME-Version: 1.0 References: <20200521222551.259804-1-irogers@google.com> In-Reply-To: <20200521222551.259804-1-irogers@google.com> From: Ian Rogers Date: Thu, 21 May 2020 16:13:48 -0700 Message-ID: Subject: Re: [PATCH] proc.5: add "wf" to VmFlags in /proc/[pid]/smaps To: Rik van Riel , mtk.manpages@gmail.com Cc: linux-man@vger.kernel.org, LKML , linux-mm@kvack.org, linux-api@vger.kernel.org, nilal@redhat.com, Florian Weimer , =?UTF-8?Q?Colm_MacC=C3=A1rtaigh?= , Mike Kravetz 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 Thu, May 21, 2020 at 3:25 PM Ian Rogers wrote: > > This patch documents a flag added in the following kernel commit: > > commit d2cd9ede6e193dd7d88b6d27399e96229a551b19 > Author: Rik van Riel > Date: Wed Sep 6 16:25:15 2017 -0700 > > mm,fork: introduce MADV_WIPEONFORK > > This was already documented in man2/madvise.2 in the commit: > > commit c0c4f6c29c494c466f3a2a6273c5b55b76a72927 > Author: Rik van Riel > Date: Tue Sep 19 20:32:00 2017 +0200 > > madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK > > Signed-off-by: Ian Rogers Doing a quick audit of fs/proc/task_mmu.c having noticed this flag was missing I note: - "mp" isn't documented, only possible with INTEL_MPX - "nl" is documented but not present in show_smap_vma_flags - "um" and "uw" aren't documented Thanks, Ian > --- > man5/proc.5 | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/man5/proc.5 b/man5/proc.5 > index 46d603f28..3e5b91af0 100644 > --- a/man5/proc.5 > +++ b/man5/proc.5 > @@ -2020,6 +2020,7 @@ encoded using the following two-letter codes: > ht - area uses huge tlb pages > nl - non-linear mapping > ar - architecture specific flag > + wf - wipe on fork > dd - do not include area into core dump > sd - soft-dirty flag > mm - mixed map area > -- > 2.27.0.rc0.183.gde8f92d652-goog >