Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Abhay Kandpal <abhay@linux.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gcore: Handle unreadable pages within readable memory regions
Date: Fri, 13 Feb 2026 11:44:27 -0700	[thread overview]
Message-ID: <20260213114427.7da9d1dc@f42-zbm-amd> (raw)
In-Reply-To: <f2f0ab5f-36dc-4780-b6eb-bc0a49518ab3@linux.ibm.com>

On Tue, 10 Feb 2026 23:28:27 +0530
Abhay Kandpal <abhay@linux.ibm.com> wrote:

> Hi Kevin,
> 
> Thanks for sharing this patch and for the detailed end-to-end explanation — it matches exactly what I’ve been seeing.
> 
> I’ve independently hit the same issue with glibc 2.42 on kernels > 6.3, due to the MADV_GUARD_INSTALL change.
> The behavior is reproducible with both upstream and custom GDB.
> 
> I tested your patch on ppc64le and x86_64, and it fixes the problem on both.
> This looks like a generic GDB issue triggered by the new glibc stack layout rather than an architecture-specific problem.
> 
> The approach of falling back to page-by-page reads on failure looks correct to me.
> Thanks again for the clear analysis and fix.

Hi Abhay,

Thanks for your review!

I ended up posting a v2 patch which does not use the constant
SPARSE_BLOCK_SIZE.  It is used for other purposes in the file.  The
number associated with this constant makes sense, but it seemed better
to instead define a new constant for the size of  the fallback memory reads.

The v2 patch is here:

https://sourceware.org/pipermail/gdb-patches/2026-February/224948.html

Kevin


      reply	other threads:[~2026-02-13 18:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-30  8:22 Kevin Buettner
2026-02-10 17:58 ` Abhay Kandpal
2026-02-13 18:44   ` Kevin Buettner [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=20260213114427.7da9d1dc@f42-zbm-amd \
    --to=kevinb@redhat.com \
    --cc=abhay@linux.ibm.com \
    --cc=gdb-patches@sourceware.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox