Received: by 10.213.65.68 with SMTP id h4csp79944imn; Thu, 15 Mar 2018 10:06:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELso7gJZ41RCskgv9Sw9wDLe0TuJVOvf9XeuzmjdfAyxssmrJPAw2ICK8QgOoGJkwOA58wQR X-Received: by 10.101.97.139 with SMTP id c11mr7261847pgv.443.1521133595921; Thu, 15 Mar 2018 10:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521133595; cv=none; d=google.com; s=arc-20160816; b=FciUg4nhZXSRiqkLQ0lwOkoZqrJ5sp0JnqQHhthD3capQurtJkheB/GM7VoCWbkCzL TkQ2R4N8H2upWzqVGbg08jndY57mbX6q3kGO6hvWctErXSrQ+5AL9ql0RsWNXmRhgyF/ I1CRYymfd3/BfhYAETfnXtUu50VxnrDDJFj35VcXVYbF/mEFurIhBdVs8fp37l9/SOUf ttBlG1ZkkidI2GUo7THh9Sh5lC34D9rPNiW9cBtaZFxmflw07/lVT+/Hf+XgjA9CsYoB A+AN79Nf2lM6trQLfE0mOGKPEz+OuvO0pePRBs1u1/CBP4hPrE4u2MG+GhdbFGJm21Qx 2KdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=X0ykJG6O/pZ7TNthJAZvCr2hEt7wl64te5a7ORiXLdM=; b=lttFg3uOe//DC5e6FSw3ciWFbC+KeMq15e7Y6tasKVTfDV+nJlYIPVw3XmAk6HhgKj 1hXT1WHUbiZm/diJj6QmGrMSLkgZjm0C4tyMS1u12bXJfARbvDUOE2O1O3mbgW5DjKMZ bbPJu4++FTkXsO1Tu3HODKepGxWXYCLjyLHZGmg87yZrIp7/EvD+Fu2aSoemcdFsqin2 p52N4LCQsnHLCaJ19XMi5prmvvUKIo2UMp5oBR3Uguen5rXdqxjZLVyPT4vyLdUmdfz/ kFf/AlE2PA0RlnC6Ta/zGBuP7Dl4ew+3X5DMQO26/Z9mYXU+71eHw9GmIJOW00YibaMI FJ6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mae8n/eU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si4410018plx.24.2018.03.15.10.06.21; Thu, 15 Mar 2018 10:06:35 -0700 (PDT) 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=@chromium.org header.s=google header.b=mae8n/eU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752253AbeCORFG (ORCPT + 99 others); Thu, 15 Mar 2018 13:05:06 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:41728 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbeCORFD (ORCPT ); Thu, 15 Mar 2018 13:05:03 -0400 Received: by mail-pl0-f68.google.com with SMTP id b7-v6so64165plr.8 for ; Thu, 15 Mar 2018 10:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=X0ykJG6O/pZ7TNthJAZvCr2hEt7wl64te5a7ORiXLdM=; b=mae8n/eU3aShazHtlFymD2pKQ+RNNFQF3Xw5xqAFG3Co8nj9b7p1D2mZwDbGNvLNVZ 1bIngv5lw95jFINU6qNgHpo9dICdv7FFQbuHcJvp7g2r2af2mZBPLAYllva8mzdP8STc oXpX1fi8A6F5KqNJT65qM1+n/ERHqSJdV9xQg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=X0ykJG6O/pZ7TNthJAZvCr2hEt7wl64te5a7ORiXLdM=; b=QOD5u4ocGz++1ww9iGw/KtYwKsZ4IPaAvAhPKFiW/WpDt4Qznr9NLUXBacNokDeB2l tBNBYiiWLza3F9s45OqC21rcyIgn4Z22FxNDzQNqOcpKTN9VDNKaxKmT9+Rw4Vg2US+u hNHIyUX1ek8t96ROCkfmtFwa9Te+ewxhg8V8M5U86pNFjseBIt7TAPEY5ueRC+egXjFP 7pLzCeN09HFhz548bOqgV51dc+3gMChgxCdvImXkScThqJrBdDXAW3ZIcWaS/XZMFMSe ZlboW2YZmWm6EBolM2h++kinrVgpKx0PcurRGFSgUPHC7j+MqGH8Xsbq6ASgGnc/t5t9 DnvA== X-Gm-Message-State: AElRT7HlZjk43Qh4GQPoFmGBKSQzefVXY3H2pnYiugD9+/7Z4ckTHBbS A4DGvFgl8RVZmHcwRqziw7y2oQ== X-Received: by 2002:a17:902:7885:: with SMTP id q5-v6mr8711976pll.207.1521133503540; Thu, 15 Mar 2018 10:05:03 -0700 (PDT) Received: from rodete-desktop-imager.corp.google.com ([2620:0:1000:1501:bc2f:3082:9938:5d41]) by smtp.gmail.com with ESMTPSA id v4sm9739414pgq.8.2018.03.15.10.05.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Mar 2018 10:05:02 -0700 (PDT) Date: Thu, 15 Mar 2018 10:05:00 -0700 From: Brian Norris To: Arend van Spriel Cc: Greg Kroah-Hartman , LKML , Johannes Berg , Kees Cook Subject: Re: [PATCH for-4.16 1/3] sysfs: improve devices-coredump description with user-space perspective Message-ID: <20180315170459.GA120116@rodete-desktop-imager.corp.google.com> References: <1521107725-25027-1-git-send-email-aspriel@gmail.com> <1521107725-25027-2-git-send-email-aspriel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521107725-25027-2-git-send-email-aspriel@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 10:55:23AM +0100, Arend van Spriel wrote: > Instead of referring to kernel internals, describe the ABI from user-space > perspective to clarify what can be expected when using it. > > Signed-off-by: Arend van Spriel > --- > Documentation/ABI/testing/sysfs-devices-coredump | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/Documentation/ABI/testing/sysfs-devices-coredump b/Documentation/ABI/testing/sysfs-devices-coredump > index e459368..d5a4c75 100644 > --- a/Documentation/ABI/testing/sysfs-devices-coredump > +++ b/Documentation/ABI/testing/sysfs-devices-coredump > @@ -2,9 +2,13 @@ What: /sys/devices/.../coredump > Date: December 2017 > Contact: Arend van Spriel > Description: > - The /sys/devices/.../coredump attribute is only present when the > - device is bound to a driver, which provides the .coredump() > - callback. The attribute is write only. Anything written to this > - file will trigger the .coredump() callback. > + When present the /sys/devices/.../coredump attribute can be used > + to trigger a coredump of the device. The coredump contents are > + device driver specific and thus vary. The coredump attribute is > + writeonly. Anything written to this file will trigger creation > + of the coredump. When the coredump is made available under > + /sys/class/devcoredump it will generate a uevent. When the > + coredump can not be successfully generated no ueven will occur. s/ueven/uevent/ > > - Available when CONFIG_DEV_COREDUMP is enabled. > + Available when CONFIG_DEV_COREDUMP is enabled and the device > + driver supports coredump generation. What about /sys/class/devcoredump/disabled? Maybe we just need a sysfs-class-devcoredump too, now that there's a formal method for triggering devcoredumps. Brian > -- > 1.9.1 >