Re: [PATCH] dump read-only anonymous memory in core files

From: Dave McCracken
Date: Tue Oct 07 2003 - 09:36:00 EST



--On Tuesday, October 07, 2003 02:06:34 -0700 Linus Torvalds
<torvalds@xxxxxxxx> wrote:

> What about shared mappings (that test should be VM_MAYSHARE)?
>
> My inclination would be to not dump them if they are backed by a file,
> even if the mmap is writable.

All shared areas are 'file backed' but some of them are only backed by
shmfs. I think we should at least dump those areas since they can't be
retrieved later. I agree it'd be reasonable to not dump areas backed by
real files, but it'd require a simple way to distinguish them from
shmfs-backed areas.

Dave McCracken

======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@xxxxxxxxxx T/L 678-3059

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/