All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: thnkslprpt@gmail.com, brads@mainlining.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] profile: account for partial /proc/profile reads
Date: Tue, 20 Oct 2026 17:51:37 -0700	[thread overview]
Message-ID: <20261020175137.c57485e7e7121d708effc68e@linux-foundation.org> (raw)
In-Reply-To: <feaa6c8de4df451f98efb7a337541321.1@linux-foundation.org>

On Tue, 20 Oct 2026 17:47:06 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:

> read_profile() returns -EFAULT without advancing the file position
> when a user copy faults, even if earlier header bytes or a prefix of
> the counters were successfully copied.  A retry can therefore copy
> the same bytes again despite the previous read having delivered data.
> 
> Return the number of successfully copied bytes and advance *ppos by
> that amount.  Return -EFAULT only if the fault occurs before any bytes
> are copied.  Preserve the four-byte sampling-step header, raw counter
> representation, and normal successful-read behavior.
> 
> Avi Weiss's "profiling: fix sampling step on 64-bit big-endian
> systems" is unchanged.  This patch changes only short-read and
> fault reporting, not the output format.

Sashiko: "Failed To Apply".

bah.  I'll resend all three.

      parent reply	other threads:[~2026-10-21  0:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-21  0:47 [PATCH 1/2] profile: account for partial /proc/profile reads Andrew Morton
2026-10-21  0:47 ` [PATCH 2/2] profile: simplify /proc/profile read layout Andrew Morton
2026-10-21  0:51 ` Andrew Morton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261020175137.c57485e7e7121d708effc68e@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=brads@mainlining.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thnkslprpt@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.